WorksheetsQuiz 1 ACEDS Python Variable Operators and datatype
Total questions: 10
Worksheet time: 8mins
Name
Class
Date
1.
Python is:
a)
A high-level programming language
b)
A low-level programming language
c)
A machine-level programming language
d)
An assembly-level programming language
2.
Who developed Python?
a)
James Gosling
b)
Guido Rossum
c)
Dennis Ritchie
d)
Bjarne Stroustrup
3.
Which of the following is a valid Python variable name?
a)
123name
b)
my-var
c)
_student
d)
first name
4.
What will be the output of:
a)
True False
b)
True True
c)
False True
d)
False False
5.
Python automatically interns small integers in the range:
a)
0 to 255
b)
-6 to 256
c)
-6 to 255
d)
-5 to 256
6.
What will be the output?
a)
True
b)
False
7.
What is the output?
a)
True
b)
False
8.
Which of the following is mutable in Python?
a)
str
b)
tuple
c)
list
d)
int
9.
The type of 3.14 in Python is:
a)
int
b)
float
c)
double
d)
decimal
10.
What is the output of:
a)
64
b)
128
c)
256
d)
512
100 %
