wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Conditional Control Statements

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.
  1. 1. The decision control statements are the decision-making statements that decides the order of execution of statements based on the __________.

a)

Functions

b)

Output

c)

Operators

d)

Conditions

2.
  1. 2. In the decision-making statements the programmer specify which conditions are

to be _______.

a)

Executed

b)

Evaluated

c)

Applied

d)

Compiled

3.
  1. 3. The statement used if to specify a block of code to be executed, if a specified condition is true.

a)

Break

b)

else if

c)

if

d)

else

4.
  1. 4. It requires that the programmer specify one or more conditions to be evaluated or tested by the program.

a)

Compiling

b)

Decision making structures

c)

Conditional operators

d)

Conditional variable

5.
  1. 5. The following are conditional control statements EXCEPT:

a)

else if

b)

if

c)

else

d)

break

6.
  1. 6. Use else to specify a block of code to be executed, if the same condition is false.

a)

else

b)

if

c)

else if

d)

break

7.
  1. 7. Used to specify a new condition if the first condition is false.

a)

if

b)

break

c)

else if

d)

else

8.

  1. 8. The (a)     control statements are the decision making statements that decides the order of execution of statements based on the conditions.

9.

  1. 9. Use the if statement to specify a block of code to be executed if a condition is (a)   .

10.

  1. 10. Use the else statement to specify a block of code to be executed if the condition is (a)   .