TECHSMART PYTHON LESSON 1
EXAM 2025 QUESTIONS AND
ANSWERS
statement - ....ANSWER ...-a single line of code that performs an action
program - ....ANSWER ...-a set of step by step instructions that does a specific task
output - ....ANSWER ...-information a program gives to the user, such as text
Examples of outputs - ....ANSWER ...-print("Hello, world")
syntax - ....ANSWER ...-exact spelling, symbols, and order of the code
editor - ....ANSWER ...-box where we type our code
console - ....ANSWER ...-box where the computer prints output and the user can
type input
input - ....ANSWER ...-information a program receives from a user
Examples of inputs - ....ANSWER ...-input("What is your name? ")
string - ....ANSWER ...-a series of letters, numbers, and symbols surrounded by
double quotation marks " "
Example of a string - ....ANSWER ...-"Robins are birds"
...©️ 2025, ALL RIGHTS RESERVED 1
, comment - ....ANSWER ...-a code line ignored by the computer; used as notes
started with a #
Example of a comment - ....ANSWER ...-#Don't forget to study!
header comment - ....ANSWER ...-a special multi-line comment at the top of a
program surrounded by
"""
marks instead of using # symbols
"""
error - ....ANSWER ...-when the computer encounters something unexpected in
your code
error message - ....ANSWER ...-the message that appears in the console when an
error occurs
= (assignment operator) - ....ANSWER ...-= is assignment and stores a value from
the right side into the variable on the left.
variable - ....ANSWER ...-a storage container for for information (data)
Example of a variable - ....ANSWER ...-name = "Rover"
assignment - ....ANSWER ...-process of storing information in a variable
concatenation - ....ANSWER ...-joining two strings together with the + symbol
What type conversion should be used for the input below?
...©️ 2025, ALL RIGHTS RESERVED 2
EXAM 2025 QUESTIONS AND
ANSWERS
statement - ....ANSWER ...-a single line of code that performs an action
program - ....ANSWER ...-a set of step by step instructions that does a specific task
output - ....ANSWER ...-information a program gives to the user, such as text
Examples of outputs - ....ANSWER ...-print("Hello, world")
syntax - ....ANSWER ...-exact spelling, symbols, and order of the code
editor - ....ANSWER ...-box where we type our code
console - ....ANSWER ...-box where the computer prints output and the user can
type input
input - ....ANSWER ...-information a program receives from a user
Examples of inputs - ....ANSWER ...-input("What is your name? ")
string - ....ANSWER ...-a series of letters, numbers, and symbols surrounded by
double quotation marks " "
Example of a string - ....ANSWER ...-"Robins are birds"
...©️ 2025, ALL RIGHTS RESERVED 1
, comment - ....ANSWER ...-a code line ignored by the computer; used as notes
started with a #
Example of a comment - ....ANSWER ...-#Don't forget to study!
header comment - ....ANSWER ...-a special multi-line comment at the top of a
program surrounded by
"""
marks instead of using # symbols
"""
error - ....ANSWER ...-when the computer encounters something unexpected in
your code
error message - ....ANSWER ...-the message that appears in the console when an
error occurs
= (assignment operator) - ....ANSWER ...-= is assignment and stores a value from
the right side into the variable on the left.
variable - ....ANSWER ...-a storage container for for information (data)
Example of a variable - ....ANSWER ...-name = "Rover"
assignment - ....ANSWER ...-process of storing information in a variable
concatenation - ....ANSWER ...-joining two strings together with the + symbol
What type conversion should be used for the input below?
...©️ 2025, ALL RIGHTS RESERVED 2