wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

8525 GCSE CS 3.2.3 - 3.2.5 Operations

Total questions: 60

Worksheet time: 33mins

Name
Class
Date
1.
Arithmetic Operators - 
What is + ?
a)
Addition
b)
Subtraction
c)
Multiplication
d)
Division
2.
Arithmetic Operator
What is a - ?
a)
Addition
b)
Subtraction
c)
Multiplication
Multiplication
d)
Modulo
3.
Arithmetic Operator
What is a * ?
a)
Addition
b)
Subtraction
c)
Multiplication
d)
Modulo
4.
Arithmetic Operators
What is a / ? 
a)
Addition
b)
Subtraction
c)
Division
d)
Modulo
5.
Arithmetic Operators
What is a % ?
a)
Multiplication
b)
Division
c)
Modulo
d)
Increment
6.
Stores whole numbers only
a)
INTEGER
b)
REAL (Float)
c)
STRING
d)
CHARACTER
7.
Stores decimal numbers
a)
INTEGER
b)
REAL (Float)
c)
STRING
d)
CHARACTER
8.
Stores single characters
a)
INTEGER
b)
REAL (Float)
c)
STRING
d)
CHARACTER
9.
Stores more than one character
a)
INTEGER
b)
REAL (Float)
c)
STRING
d)
CHARACTER
10.
Stores True or False
a)
INTEGER
b)
REAL (Float)
c)
STRING
d)
BOOLEAN
11.
What is this operator? >
a)
Greater than
b)
Less than or equal to
c)
Less than
d)
Greater than or equal to
12.
What is this operator? <
a)
Greater than
b)
Less than or equal to
c)
Less than
d)
Greater than or equal to
13.
What is this operator? >=
a)
Greater than
b)
Less than or equal to
c)
Less than
d)
Greater than or equal to
14.
What is this operator? <=
a)
Greater than
b)

Less than or equal to

c)
Less than
d)
Greater than or equal to
15.
What is this operator? %
a)
Concatenation
b)
Remainder or mod
c)
Division - only the whole number
d)
Escape character
16.
What is this operator? &&
a)
and
b)
or
c)
Remainder or mod
d)
Multiplication
17.
What is this operator? ==
a)
Equal to
b)
Used in a calculation for equals
c)
and
d)
or
18.
What is this operator? !
a)
and
b)
or
c)
not
d)
equal to
19.

What is the value of the expression 100 / 25?

a)

4

b)

4.0

c)

"4.0"

d)

'4.0'

20.

What is the output of the following code :


print 9//2

a)

4.5

b)

4.0

c)

4

d)

3

21.

What is the answer of this expression, 22 % 3 is?

a)

7

b)

1

c)

0

d)

5

22.

x = 4.5

y = 2

print(x//y)

a)

2.0

b)

2

c)

9

d)

9.0

23.

x = 5


print(x > 3 and x < 10)

a)

True

b)

False

24.

x = 10


print(x > 3 and x < 9)

a)

True

b)

False

25.

x = 8


print(x > 3 or x < 20)

a)

True

b)

False

26.

x = 14


print(x > 10 or x < 3)

a)

True

b)

False

27.

x = 5


print(x < 2 or x < 3)

a)

True

b)

False

28.

x = 5


print(not(x > 3 and x < 10))

a)

True

b)

False

29.

x = 5


print(not(x > 3 or x < 2))

a)

True

b)

False

30.

x = 5


print(not(x > 6 or x < 3 ))

a)

True

b)

False

31.

x = 5

y = 3


print(x == y)

a)

True

b)

False

32.

x = "5"

y = 5


print(x == y)

a)

True

b)

False

33.

x = 5

y = 3


print(x != y)

a)

True

b)

False

34.

x = 10

y = 10


print(x != y)

a)

True

b)

False

35.

x = 5


x%=3


print(x)

a)

2

b)

2.0

c)

3

d)

3.0

36.

What does this relational operator mean?

a != b

a)

equal to

b)

not equal to

c)

less than or equal to

d)

greater than or equal to

37.

What does this relational operator mean?

a < b

a)

equal to

b)

not

c)

less than

d)

greater than

38.

What does this relational operator mean?

a <= b

a)

less than

b)

greater than

c)

less than or equal to

d)

greater than or equal to

39.

What does this relational operator mean?

a > b

a)

less than

b)

greater than

c)

not equal to

d)

equal to

40.

What does this relational operator mean?

a >= b

a)

less

b)

greater than

c)

less than or equal to

d)

greater than or equal to

41.

What does this relational operator mean?

a == b

a)

equal to

b)

not equal to

c)

less than or equal to

d)

greater than or equal to

42.
3<=4
a)
TRUE
b)
FALSE
43.
2 = = 3
a)
TRUE
b)
FALSE
44.
4 < 5
a)
TRUE
b)
FALSE
45.
45 ! = 2
a)
TRUE
b)
FALSE
46.
3 == 3.0
a)
TRUE
b)
FALSE
47.
30 == 3.0
a)
TRUE
b)
FALSE
48.

40 > 41

a)

TRUE

b)

FALSE

49.

2 > 3

a)

TRUE

b)

FALSE

50.

The _____________ operator checks if the value of left operand is greater than the value of right operand.

a)

= =

b)

<

c)

>

d)

=

51.

How many values does a Boolean variable have?

a)

4

b)

3

c)

2

d)

1

e)

Infinite

52.

What will the result of this code be?


var = True and False


print(var)

a)

True

b)

False

c)

var

d)

none of these

53.
There are three fundamental operations in Boolean Algebra: ___
a)
Addition, Subtraction and Multiplication
b)
NOT, AND, and OR
c)
IF, AND, and BUT
d)
IF, ELSE and ELSE IF
54.
In an AND statement both sides need to be TRUE to produce an output of TRUE.
a)
True
b)
False
55.
In an OR statement both sides need to be TRUE to produce an output of TRUE.
a)
False
b)
True
56.

Which of these are boolean operators, implemented in the computer as logic gates?

Check all that apply

a)

NOT

b)

MOD

c)

OR

d)

AND

e)

DIV

57.
A variable that can only have two values, True or False.
a)
Boolean
b)
If
c)
elif
d)
else
58.
Which is the correct syntax?
a)
has_dog = true
b)
has_dog = True
c)
has_dog = Treu
d)
HAS_DOG = tRue
59.

X = 100

Y = 50

print(x and y)


What is the ouput of this code?

a)

True

b)

100

c)

False

d)

50

60.

What is the output of the following Python code?

x = 10

y = 50

if (x ** 2 > 100 and y < 100):

print(x, y)

a)

100 500

b)

10 50

c)

1 5

d)

none