Looks like a scene out of STAR TREK original series. Am I right?
Yep - first season, IIRC. One of the many “Kirk outsmarts a computer” episodes.