Font size
WorksheetsPython
Total questions: 30
Worksheet time: 15mins
A memory location where you store values
It displays an output
What is the output from the following code?
print ("hello world")
What is the Python command used to display numbers and text on the screen?
input
output
command
What would print (10 + 16) produce?
10
16
24
26
An algorithm is a set of precise instructions designed to solve a problem.
True
False
What would be the result of 3 ** 3
(a)
What would be the result of 9 // 7
(a)
What would be the reult of 9 % 7
(a)
Which is NOT a data type in Python?
integer
boolean
anchor
float
_______ is a data type that contain a set of characters (letters, symbols, etc.) E.g. "Hello", "Ali", "Car Type"
int
float
char
String
Which value is of data type String?
64
"Cat"
True
0.5
What is a Float?
A data type that contains whole numbers as: 3, 45, 124
Numbers with decimal point as: 0.5, 2.45, 56.04
Group of characters between quotation marks as : "Maryam"
Data type that can only be True or False.
Which value is of data type Float?
64
"Cat"
True
0.5
Which value is of data type Integer?
64
"Cat"
True
0.5
Which value is a Boolean?
64
"cat"
True
0.5
What is IDE?
Integrated Development Environment
Implicit Deployment Environment
Interrogated Development Environment
100
What type of data is this?
num = 3
String
Integer
Float
What would the output be?
x = "4+3"
print(x)
7
7.0
4+3
Which is the operator used to MULTIPLY?
+
*
/
-
%
Which is the operator used to DIVIDE?
+
*
/
-
What would the output of this code be?
x = ("Bill")
print(x)
x
"Bill"
Bill
Frank
If we typed this code into Python: print(6 + 3 * 7),what output would we see on screen?
63
637
16
27
0
2
4 % 2
2.0
Error
The result is 16
The result is 8
The result is 4 ** 2
The result is 4**2
Error
2
0
1
4 / 2
Error
Which value is a String?
64
"cat"
True
0.5
