WorksheetsControl Statements
Total questions: 25
Worksheet time: 15mins
What is the modulus value for 2%2 ?
0
1
2
3
What is the modulus value for 4%2 ?
0
1
2
3
What is the modulus value for 6%3 ?
0
1
2
3
What is the modulus value for 90%3?
0
1
2
3
How do you write a Less than or equal to Relational operator
<=
=<
>=
=>
What is the output of this code?
spam = 7
if spam > 5:
print("five")
if spam > 8:
print("eight")
eight
five
nothing
Is python an interpreter or compiler programming language?
Compiler
Interpreter
What output will the console show, if 15 and 30 are entered by the user?
Syntax error
The sum of the two numbers - 45
The concatenation of the two numbers - 1530
Complier error
What result will display in the shell if 15 and 20 is entered by the user?
"num1 + num2"
1520
35
What datatype will the answer be if the user enters 15 and 30?
Integer
String
Boolean
Float
Which of the following is used in Python to calculate ten squared?
print("Hello" + "world!")
