Font size
WorksheetsALB Basic Python Quiz
Total questions: 25
Worksheet time: 15mins
What is Python?
Compiled
Interpreted
Static
Dynamic
Which mode allows you to enter Python commands interactively?
Compile mode
Edit mode
Interactive mode
Static mode
What is the purpose of the print command in Python?
Take input from the user
Display output on the screen
Define variables
Concatenate strings
How do you open and close a string in Python when using the print statement?
Square brackets
Parenthesis
Quotation marks
Curly braces
What is the role of a variable in Python?
Display output
Store data in memory
Concatenate strings
Define constants
How is a constant different from a variable in Python?
Constants cannot be changed during program execution
Variables cannot be changed during program execution
Both can be changed during program execution
Constants are used for mathematical operations
Which symbol is used for concatenation in Python?
Period (.)
Exclamation mark (!)
Comma (,)
Question mark (?)
What does the input function in Python do?
Display output
Concatenate strings
Take input from the user
Define variables
How do you request the user to enter their name using the input function?
input("Your name: ")
get_input("Your name: ")
input_name("Enter: ")
enter_name("Input: ")
What is the purpose of the comma in print statements?
Multiply values
Concatenate strings
Separate arguments(variables)
Define constants
In Python, where can you use the split screen?
Interactive mode
Edit mode
Both A and B
None of the above
Which symbol is used for concatenation in Python?
Plus (+)
Minus (-)
Comma (,)
Asterisk (*)
How do you define a variable in Python?
var x
variable x
x = value
define x
What is the purpose of the IDLE in Python?
Input handling
Code execution
Integrated Development and Learning Environment
Concatenation
Which command is used to run a Python program?
execute
play
run run module F5
What does the term "evidence" refer to in Python programming?
Code documentation
Debugging information
Output display
None of the above
What is the purpose of the Chevron symbol in Python?
Code indentation
Concatenation
Splitting strings
Input handling
When using the print statement, what must always be opened and closed?
Which command is used to print the value of a variable in Python?
display
show
output
Python is a ‘general purpose’ programming language, used daily by Google, YouTube, NASA, CERN, and the New York Stock Exchange (to name but a few examples).
True
False
Python is a freely available programming language
You can download it and run it at home.
False
True
Python was invented by Guido van Rossum.
Born 31st January 1956
UK
Currently works for Dropbox
(as of early 2014)
True
False
Python got its name from Monty Python’s Flying Circus ... Guido really liked Monty Python!
True
False
Python Programming is coding in......
High Level Programming Language
Low Level Programming Language
The # symbol is used in Python to add comments/explanations to the code. Comments are used to explain the code and make it more readable but not part of the code.
True
False
