Unit Test Answers

3 verified answers2 views
1
Free Preview

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

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.
2
Free Preview

Read the following statements and select the conditional statements. Check all that apply.

A
If my car starts, I can drive to work.
B
It is inconvenient when the car does not start.
C
If my car does not start, I will ride the bus to work.
D
I purchased this car used, and it is not reliable.
3

Which statements describe conditional statements? Check all that apply.

A
They are based on Boolean conditions.
B
They are used by programmers to include decision-making in programs.
C
They are constant variables.
D
They perform actions or computations.
E
They are also known as conditional constructs.

Did you find these answers helpful?