wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Selection Control Structure Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which control structure will execute an instruction only after the computer evaluates conditions to determine if a certain condition exists?

a)

Functional

b)

Loop

c)

Selection

d)

Sequence

2.

What are the three main programming structures?

a)

Machine, assembly, high-level

b)

Sequence, selection, iteration

c)

Interger, Float, String

d)

If, If-else, Interger

3.

Which control structure use If ...Else statement ?

a)

Sequence

b)

Repetition

c)

Selection

d)

Iteration

4.

Which type of statement is an example of a selection programming structure?

a)

for

b)

while

c)

If-else

d)

do-while

5.

Using the Logical Operator ( OR) What is the Result in the X symbol in the table

a)

1

b)

0

c)

I Don't Know

6.

Using the Logical Operator ( AND ) What is the Result in the X symbol in the table

a)

1

b)

0

c)

&

7.

Using the Logical Operator ( NOT ) What is the Result in the X symbol in the table

a)

1

b)

0

c)

2

8.

Faris written a section of code in his program that instructs a character to move forward unless it encounters an obstacle, such as a rock. If the character encounters an obstacle, then it should change direction before moving forward again. If it does not encounter an obstacle, it should continue moving forward. Which type of control structure has Jackson written?

a)

Functional

b)

Selection

c)

Loop

d)

Sequence

9.

Which output of the program below, if user enter 80 as input.

a)

Brilliant

b)

Good

c)

Owh No!

d)

Sorry

10.

X is refer to the ?

a)

else

b)

if-else

c)

break

d)

switch