QUESTIONS & VALID CORRECT
ANSWERS
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
1
2
3
\n - Correct Answer ✔✔ Newline
Whitespace - Correct Answer ✔✔ Any space, tab, or newline
Empty space in the program
input() - Correct Answer ✔✔ Data that is entered into the computer system via an input
or storage device.
Causes the interpreter to wait until the user has entered data of some kind
String - Correct Answer ✔✔ Represents a sequence of characters
type() - Correct Answer ✔✔ returns what "type" of data ex: int, float, str
int() - Correct Answer ✔✔ Converts strings to integers
my_string = '123'
my_int = int('123')
Syntax Error - Correct Answer ✔✔ a mistake in the program where the rules of the
programming language are not followed.
Runtime Error - Correct Answer ✔✔ Error wherein a program's syntax is correct but the
program attempts an impossible operation. (dividing by zero, multiplying strings like
'Hello' * 'ABC')
Crash - Correct Answer ✔✔ An abrupt and unintended termination of a program