7
QuizMultiple Choice

Readable Code — Unit test

Question 7 • VA-Information Technology Fundamentals B

An unexpected result is returned by the computer when a program is executed. Which has likely occurred?

Answer
A
an error
B
a compiler
C
an interpreter
D
a stepping function

Explanation

An unexpected result usually indicates that something went wrong while the program was running, such as a mistake in its code. That is an error. A compiler and an interpreter are tools for translating or executing code, and a stepping function helps move through code step by step; none of these is itself the unexpected result.

AI-written and checked against the verified answer.

Next