2025/2026
Who developed the Python programming language?
James Gosling
Bjarne Stroustrup
Guido van Rossum
Yukihiro Matsumoto - Guido van Rossum
The Python programming language was so named after a snake was discovered in the
creator's office.
True
False - false
Python 3 is backward compatible to Python 2.
True
False - false
Python embodies elements of which programming paradigm?
Procedural programming
Object-oriented programming
Functional programming
All of the above - All of the above
Which of the following is NOT a principle embraced by the Python programming
language?
Verbose is better than succinct.
Complex is better than complicated.
Beautiful is better than ugly.
Simple is better than complex.
Readability counts.
Explicit is better than implicit. - Verbose is better than succinct.
A Python program must be enclosed in curly braces { } to be executed.
True
False - false
Which of the following statements is true?
,The print statement is a call to a function.
A print statement must be the first statement in a Python program.
The print statement sends text output to the editor.
The print statement sends text output to a printer. - The print statement is a call to a
function.
A Python program must compiled into an executable form before it can be run.
True
False - False
What is syntax coloring?
Displaying program output in particular colors
Displaying each method of a program in a different color
Showing certain elements of program code in different colors
Wrapping program output in colored boxes - Showing certain elements of program code
in different colors
What does the term case sensitive mean?
Each case of a Python print statement must be unique.
A Python program must be encased in a human-readable comment.
The difference between uppercase and lowercase letters matters.
A Python program is enclosed in, and executed relative to, a program case. - The
difference between uppercase and lowercase letters matters.
Thonny is best described as which of the following?
Integrated Development Environment (IDE)
Text editor
Package manager
Debugger
Command shell - Integrated Development Environment (IDE)
The output of a Python program run in Thonny appears in the shell window.
True
False - True
Thonny displays code using syntax highlighting.
True
False - True
,Running a program that contains errors will cause the Thonny development
environment to terminate.
True
False - False
Thonny has a package manager that lets you install and update external Python
packages.
True
False - True
Python variables are created using an assignment statement.
True
False - true
The value of a variable can change throughout a program.
True
False - True
Which of the following is NOT a valid Python identifier?
1stPlace
place1
FIRST_PLACE
first_place - 1stPlace
Which of the following identifiers follows the convention for naming Python variables?
totalValue
TOTAL_VALUE
total_value
Total_Value - total_value
In dynamically typed languages, variables are declared to store a specific type of data.
True
False - False
Python variables that represent integers are NOT object reference variables.
True
False - False
The assignment operator has higher precedence than the arithmetic operators.
True
, False - False
What value is assigned to the variable num by the following statement if the current
value of num is 4?num = num * 2
2
4
6
8-8
In Python, the assignment statement is also an expression.
True
False - False
The value assigned to a variable must be numeric.
True
False - False
The value assigned to a variable could be a floating point number.
True
False - True
What output does the following code produce?print('apple', 'banana')
apple banana
apple banana
apple, banana
applebanana - apple banana
What output is produced by the following code?print(15 + 30)
1530
"1530"
45.0
45 - 45
What output does the following code produce?print('Ready', end=' ') print('Set', end='')
print('Go')
Ready SetGo
Ready SetGo
Ready Set Go
Ready Set Go - Ready SetGo
What output is produced by the following code?print('Jan', 'Feb', 'Mar', sep='-')
Jan-Feb-Mar-
Jan - Feb - Mar
Jan- Feb- Mar-
Jan-Feb-Mar - Jan-Feb-Mar