6
AssignmentMultiple Choice

Conditional Statements

Question 6 • VA-Information Technology Fundamentals B

Identify when programmers use an Else statement.

Answer
A
to use an If statement in its place to make the test answer true
B
to use an expression instead of a conditional statement to make the answer false
C
to tell the program to take a different action when the If statement answer is false
D
to tell the program to give different information when the test answer is true

Explanation

An Else statement runs when the condition tested by an If statement is false. It tells the program what different action to take in that case, so the correct choice is “to tell the program to take a different action when the If statement answer is false.”

AI-written and checked against the verified answer.

Previous
Next