WorksheetsPython Programming Quiz
Total questions: 20
Worksheet time: 10mins
Python is a __________ language.
Low-level
Machine
High-level
Assembly
Python is easy to learn because it has:
Difficult symbols
Simple syntax
Long commands
Only numbers
Python programs are easy to read because they use:
English-like words
Only numbers
Codes only
Symbols only
Python is an example of a:
Non-programming language
Programming language
Markup language
Hardware language
Python can be used to make:
Games
Websites
Applications
All of these
Which of the following is NOT an application of Python?
Web development
Game development
Cooking food
Data analysis
Python is used in schools mainly to:
Draw pictures
Teach programming
Repair computers
Play music
Python is popular because it is used in:
Science
Artificial Intelligence
Data Science
All of these
A variable is used to:
Store data
Print data
Delete data
Draw data
Which symbol is used to assign a value to a variable in Python?
==
=
+
:
Which is a correct variable name?
1name
my-name
my_name
my name
What will be the value of x? x = 10
x
0
10
None
Which data type is used to store whole numbers?
float
string
int
bool
Which of these is a string?
25
3.5
"Hello"
True
Which data type stores True or False?
int
string
float
bool
What is the data type of 5.6?
int
float
string
bool
Which of the following is an output statement in Python?
input()
print()
int()
type()
Python programs are written using:
Compiler only
Interpreter
Printer
Scanner
Which part of Python shows errors while running the program?
Keyboard
Monitor
Interpreter
Mouse
Which component is used to type Python code?
Text editor
Speaker
Printer
Scanner
