1
AssignmentMultiple Choice

Use Conditional Statements

Question 1 • VA-Information Technology Fundamentals B

What is a control flow statement?

Answer
A
a programming statement that changes the order in which lines of code in a program are run
B
a programming statement that sets up an if-then condition
C
a line of code that counts down the number of times a loop should iterate
D
a line of code that sets up a timer for how long a loop should iterate

Explanation

A control flow statement changes the order in which a program’s instructions run. For example, a conditional can choose which code runs, and a loop can repeat code. Choice A describes this general purpose; choice B is only one kind of control flow statement.

AI-written and checked against the verified answer.