3
AssignmentMultiple Choice

Use Conditional Statements

Question 3 • VA-Information Technology Fundamentals B

Which of the following is true about If statements?

Answer
A
If the condition is not a boolean expression, the program returns 0.
B
If the condition evaluates as False, then the block is skipped.
C
In Python, an If statement begins with “If”, followed by the block, and ends with the condition.
D
If the block isn’t indented, Python can still interpret it properly.

Explanation

An if statement runs its indented block only when its condition is true. If the condition evaluates as False, Python skips that block and continues with the code after it. The statement begins with lowercase `if`, followed by a condition and a colon; the block must be indented.

AI-written and checked against the verified answer.