NEW
Font size
S
M
L
XL
WorksheetsPython
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
Why do we learn Python?
a)
It's a really big snake
b)
It's the name of a very funny comedy show
c)
It's simple and easy to learn
d)
It's so rare that no one else knows it
2.
Which function takes a users input
a)
print()
b)
int()
c)
input()
d)
def
3.
A data type consisting of numbers, letters and symbols.
a)
String
b)
Integer
c)
Float
d)
Boolean
4.
A location in memory used to store data that can be changed.
a)
Constant
b)
Value
c)
Variable
d)
Iteration
5.
The number or word we give to a variable
a)
Value
b)
Bug
c)
Information
d)
Text
6.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus +
c)
forward slash /
d)
asterisk *
7.
In python the ' INTEGER data type' can be defined as...?
a)
holds alphanumeric data as text
b)
holds whole numbers
c)
holds numbers with a decimal point
d)
holds either ‘true’ or ‘false’
8.
In python the ' FLOAT data type' can be defined as...?
a)
holds alphanumerical data
b)
holds whole numbers
c)
holds a decimal point in a number
d)
hold either true or false
9.
what is correct code for INTEGER in python?
a)
in
b)
ing
c)
int
10.
What best defines an IF statement in python?
a)
Is an embedded string with a variable
b)
An IF statement checks to see if a statement is true or false and then does one of two things depending on the result.
Reset
