Unit Test Answers

12 verified answers1 views
1
Free Preview

Which statements are true about conditional statements? Check all that apply.

A
They perform actions or computations.
B
They are based on conditions.
C
They can be executed only when conditions are false.
D
They are also called conditional constructs.
E
They are sometimes called compound statements.
F
They have conditions that must be Boolean (IF, AND, or NOT) in form.
3

Which statement is a real-life example of an If statement?

A
The sun is shining today because a cold front has moved through.
B
If the sun is shining today, I will go to the beach.
C
The beach is cold today because it is October.
D
The sunny day causes the beach to be warm.
4

When do programmers use If conditional statements?

A
when they want a certain event to occur when a condition is met
B
when they want to restrict an action from occurring when a condition is met
C
when they want a certain event to occur when a condition is not met
D
when they want to end a program
6

Identify when programmers use an Else statement.

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

Did you find these answers helpful?