5
AssignmentMultiple Choice

Unit Test

Question 5 • VA-Information Technology Fundamentals B

Which sentence describes Elif statements?

Answer
A
The program stops after the first false answer.
B
The program can have only one statement.
C
The program runs after a false Elif expression.
D
The program needs one true answer to run after the If statement is false.

Explanation

An Elif statement checks another condition when the preceding If condition is false. If an Elif condition is true, its code runs, so the program needs a true condition to run that branch after the If statement is false. Choice D describes this behavior.

AI-written and checked against the verified answer.