1
AssignmentMultiple Select

Unit Test

Question 1 • VA-Information Technology Fundamentals B

Which sentences describe the value of a conditional statement? Check all that apply.

Answer
A
It allows a programmer to designate a portion of the code that will be run only when a condition is met.
B
It creates new program code when a condition is met.
C
It allows a programmer to set a condition that must be met.
D
It incorporates decision-making into a program.

Explanation

A conditional statement lets a programmer specify a condition and run a portion of code only if that condition is met, so A and C describe its value. Because the program can choose what to do based on whether the condition is true or false, it also incorporates decision-making, as D says. It does not create new program code when the condition is met, so B is incorrect.

AI-written and checked against the verified answer.

Next