wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Y10M2A2 - Selection

Total questions: 15

Worksheet time: 30mins

Name
Class
Date
1.
What are two components of the selection structure?
a)
Condition and statement block
b)
Condition and variable
c)
Variable and statement block
d)
Statement block and input function
2.
How many options are available in an IF THEN?
a)
1
b)
2
c)
3
d)
0
3.
How many options are available in an IF THEN ELSE?
a)
2
b)
1
c)
3
d)
0
4.
How many options are available in an IF THEN ELSE IF ELSE?
a)
3
b)
2
c)
1
d)
0
5.
What does the >= operator represent?
a)
Greater than or equal to.
b)
Less than or equal to.
c)
Greater than
d)
Less than.
6.
What does the <= operator represent?
a)
Less than or equal to.
b)
Greater than or equal to.
c)
Greater than
d)
Less than.
7.
What does the == operator represent?
a)
Identical to.
b)
Not identical to
c)
Equal to.
d)
Assign a value to a variable.
8.
What does the != operator represent?
a)
Not identical to.
b)
Indentical to.
c)
Deletes a value in a variable.
d)
Equal to.
9.
What does the > operator represent?
a)
Greater than
b)
Greater than or equal to.
c)
Less than or equal to.
d)
Less than.
10.
What does the < operator represent?
a)
Less than
b)
Greater than or equal to.
c)
Less than or equal to.
d)
Greater than.
11.
What does AND represent?
a)
Both conditions must be true.
b)
At least one condition must be true.
c)
The condition is not true.
d)
Both conditions must be false.
12.
What does OR represent?
a)
At least one condition must be true.
b)
Both conditions must be true.
c)
Both conditions must be false.
d)
The condition is not true.
13.
What does NOT represent?
a)
The condition is not true.
b)
Both conditions must be false.
c)
Both conditions must be true.
d)
The condition is wrong.
14.
What does the following program do?
a)
Checks if the weight is greater than 50. If it is then the indented print statement is displayed, otherwise the other print statement is displayed
b)
Checks if the weight is less than 50. If it is then the indented print statement is displayed, otherwise the other print statement is displayed
c)
Checks if the weight is 50. If it is then the indented print statement is displayed, otherwise the other print statement is displayed
d)
Nothing, there is an error in it.
15.
Which line of the program is incorrect?
a)
4
b)
3
c)
6
d)
1