wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Programming - Operations on Numeric & Boolean Data

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.
What would be the result of the expression 4 > 5?
a)
False
b)
True
2.
What would be the result of the expression (2 + 3) * 4?
a)
20
b)
12
c)
125
d)
15
3.
What would be the result of the expression 2 + 3 * 4?
a)
14
b)
22
c)
61
d)
185
4.
In an AND statement both sides need to be TRUE to produce an output of TRUE.
a)
True
b)
False
5.
In an OR statement both sides need to be TRUE to produce an output of TRUE.
a)
False
b)
True
6.
NOT TRUE is...
a)
False
b)
True
7.
The operator ** performs which mathematical function?
a)
Power of
b)
Multiply
c)
Divide
d)
Multiplication
8.
The operator // performs which mathematical function?
a)
Floor division
b)
Divide
c)
Multiply
d)
Percentage
9.
Which mathematical rule do expression follow?
a)
BODMAS
b)
BODY
c)
MASS
d)
INDEX
10.
Boolean data can be generated from numerical values.
a)
True
b)
False