D335 INTRO TO PYTHON QUESTIONS WITH
CORRECT ANSWERS 2025/2026
Computer Program - CORRECT ANSWER --Set of instructions executing one at a time.
Input - CORRECT ANSWER --Data that is entered into the computer system via an input or
storage device.
Process - CORRECT ANSWER --A series of actions or steps taken to achieve an end
Output - CORRECT ANSWER --Data that has been processed into a useful format.
Variables - CORRECT ANSWER --A named item in a program, such as x or num_people, used to
hold a value
Interactive Interpreter - CORRECT ANSWER --a program that allows the user to execute one line
of code at a time
Code - CORRECT ANSWER --Common word for the textual representation of a program
Prompt ('>>>') - CORRECT ANSWER --A signal that the interpreter is ready to accept code
Statement - CORRECT ANSWER --A program instruction
Expressions - CORRECT ANSWER --A combination of items, like variables, literals, and
parentheses, that evaluates to a value, like 2*(x=1).
Codes that return a value when evaluated
, Assignment - CORRECT ANSWER --Creates a new variable using the '=' symbol
" = " - CORRECT ANSWER --assignment operator (NOT EQUALITY)
= is an assignment of a left-side variable with a right-side value
print() - CORRECT ANSWER --Displays variables or expression values
Always adds a newline character after the output
" # " - CORRECT ANSWER --Comments
Comments - CORRECT ANSWER --Uses "#"
Can be used to explain portions of the code to human readers and will be ignored by the
program
String Literal - CORRECT ANSWER --('Hello World')
Text enclosed in quotes that will be read as actual text by the program. May have letters,
numbers, spaces, or symbols
end=' ' - CORRECT ANSWER --keeps the next print's output on the same line separated by a
single space
Comma ( , ) - CORRECT ANSWER --Allows printing multiple items using a single print() statement.
print('Wage: ', wage)
Newline Character - CORRECT ANSWER --Output can be moved to the next line by printing \n
print("'\n2\n3') gives
CORRECT ANSWERS 2025/2026
Computer Program - CORRECT ANSWER --Set of instructions executing one at a time.
Input - CORRECT ANSWER --Data that is entered into the computer system via an input or
storage device.
Process - CORRECT ANSWER --A series of actions or steps taken to achieve an end
Output - CORRECT ANSWER --Data that has been processed into a useful format.
Variables - CORRECT ANSWER --A named item in a program, such as x or num_people, used to
hold a value
Interactive Interpreter - CORRECT ANSWER --a program that allows the user to execute one line
of code at a time
Code - CORRECT ANSWER --Common word for the textual representation of a program
Prompt ('>>>') - CORRECT ANSWER --A signal that the interpreter is ready to accept code
Statement - CORRECT ANSWER --A program instruction
Expressions - CORRECT ANSWER --A combination of items, like variables, literals, and
parentheses, that evaluates to a value, like 2*(x=1).
Codes that return a value when evaluated
, Assignment - CORRECT ANSWER --Creates a new variable using the '=' symbol
" = " - CORRECT ANSWER --assignment operator (NOT EQUALITY)
= is an assignment of a left-side variable with a right-side value
print() - CORRECT ANSWER --Displays variables or expression values
Always adds a newline character after the output
" # " - CORRECT ANSWER --Comments
Comments - CORRECT ANSWER --Uses "#"
Can be used to explain portions of the code to human readers and will be ignored by the
program
String Literal - CORRECT ANSWER --('Hello World')
Text enclosed in quotes that will be read as actual text by the program. May have letters,
numbers, spaces, or symbols
end=' ' - CORRECT ANSWER --keeps the next print's output on the same line separated by a
single space
Comma ( , ) - CORRECT ANSWER --Allows printing multiple items using a single print() statement.
print('Wage: ', wage)
Newline Character - CORRECT ANSWER --Output can be moved to the next line by printing \n
print("'\n2\n3') gives