NEW
Font size
WorksheetsPython Programming Quiz
Total questions: 20
Worksheet time: 20mins
Python is widely used for:
Web development
Data science
Automation
All of the above
Which of the following is NOT a common use of Python?
Game development
Machine learning
Operating system kernel design
Web applications
Python is popular mainly because it is:
Very fast
Easy to learn and readable
Hardware dependent
Low-level language
Which Python library is commonly used for data analysis?
NumPy
Pandas
Matplotlib
All of the above
What is the output of type(10)?
int
float
str
bool
Which data type is used to store text in Python?
char
string
str
text
Which data type is immutable?
list
dictionary
set
tuple
Which data type stores key-value pairs?
list
tuple
set
dictionary
Which data type does not allow duplicate values?
list
tuple
set
string
What is the output of type(True)?
int
bool
str
float
Which of the following is a numeric data type?
int
float
complex
All of the above
Which data type is used to store multiple items in a single variable?
int
float
list
bool
Which operator is used to find remainder?
/
//
%
**
What does ** operator do?
Division
Multiplication
Exponentiation
Modulus
Which statement is used for decision making?
for
while
if
break
Which keyword is used to exit a loop?
stop
exit
break
pass
Which keyword is used for multiple conditions?
if
else
elif
switch
Which operator performs bitwise OR?
||
or
|
^
Which operator is used for left shift?
>>
<<
<<<
<
What is the result of 8 << 2?
16
32
4
8
