Actual Exam Questions and CORRECT
Answers
computer program - CORRECT ANSWER- ✔✔Consists of instructions that a computer
executes (or runs), like multiplying numbers or printing a number to a screen.
task decomposition - CORRECT ANSWER- ✔✔Means to reduce a complex task into
simpler basic steps, making the whole task easier to solve.
algorithm - CORRECT ANSWER- ✔✔A recipe or a methodical step-by-step procedure to
perform a task.
computational thinking - CORRECT ANSWER- ✔✔Evaluating a problem's most basic parts
and then creating an algorithm to solve that problem is commonly known as
Python interpreter - CORRECT ANSWER- ✔✔An application that can be used on various
operating systems, including Microsoft Windows, Linux, and MacOS.
interactive interpreter - CORRECT ANSWER- ✔✔A program that allows the user to execute
one line of code at a time.
code - CORRECT ANSWER- ✔✔A common word for the textual representation of a
program
line - CORRECT ANSWER- ✔✔A row of text
prompt - CORRECT ANSWER- ✔✔Indicates the interpreter is ready to accept code ">>>"
statement - CORRECT ANSWER- ✔✔A program instruction
,expression - CORRECT ANSWER- ✔✔code that returns a value when evaluated;
variables - CORRECT ANSWER- ✔✔Named references to values stored by the interpreter.
assignment - CORRECT ANSWER- ✔✔Creates a new variable by using the = value
comments - CORRECT ANSWER- ✔✔used to explain portions of code to a human reader.
"# PA1"
print() - CORRECT ANSWER- ✔✔displays variables or expression values
string literal - CORRECT ANSWER- ✔✔Text enclosed in quotes is known as this. ('hello
world')
new line character - CORRECT ANSWER- ✔✔A new line can also be output by inserting \n.
ex: "1/n2/n3"
input - CORRECT ANSWER- ✔✔Reads text entered by the user, and assigns the entered text
to a variable. Causes the interpreter to wait until the user has entered some text and has
pushed the return key.
string - CORRECT ANSWER- ✔✔Always surrounded by single or double quotes, for
example 'Hello' or "#Goodbye# Amigo!".
type - CORRECT ANSWER- ✔✔Determines how a value can behave
int() - CORRECT ANSWER- ✔✔used to convert that string to the integer
syntax error - CORRECT ANSWER- ✔✔Violates a programming language's rules on how
symbols can be combined to create a program.
, runtime error - CORRECT ANSWER- ✔✔a program's syntax is correct but the program
attempts an impossible operation, such as dividing by zero or multiplying strings together
crash - CORRECT ANSWER- ✔✔Abrupt and unintended termination of a program
logic error - CORRECT ANSWER- ✔✔A logically flawed program. It works but the output
is not correct for the given goal for the program.
bug - CORRECT ANSWER- ✔✔another name for a logic error
integrated development environment - CORRECT ANSWER- ✔✔Code development. A way
to create programs and test them all in one.
bit - CORRECT ANSWER- ✔✔0s and 1s (another way to call "binary numbers")
processor - CORRECT ANSWER- ✔✔created to process (aka execute) a list of desired
calculations
instruction - CORRECT ANSWER- ✔✔each calculation output from processors
memory - CORRECT ANSWER- ✔✔circuits that can store 0s and 1s in each of a series of
thousands of addressed locations
program, application, or "app" - CORRECT ANSWER- ✔✔The programmer -created
sequence of instructions
machine instructions - CORRECT ANSWER- ✔✔Instructions represented as 0s and 1s
executable program - CORRECT ANSWER- ✔✔a sequence of machine instructions