12/3/2024 11:27AM
C++ Zybooks (All) Exam Questions With
Correct Answers
Computer Program - answer✔consists of instructions executing one at a time.
input - answer✔A program gets data, perhaps from a
le, keyboard, touchscreen, network, etc.
process - answer✔A program performs computations on that data, such as adding two values like
x+y
output - answer✔A program puts that data somewhere, such as to a
file, screen, network, etc.
variables - answer✔refers to data
computational thinking - answer✔creating a sequence of instructions to solve a problem
algorithm - answer✔A sequence of instructions that solves a problem
program - answer✔starts in main(), executing the statements within main's braces { }, one at a
time
, ©SIRJOEL EXAM SOLUTIONS
12/3/2024 11:27AM
semicolon - answer✔ends each statement
code - answer✔the textual representation of a program
cout << - answer✔output
endl or \n - answer✔newline
comment - answer✔text a programmer adds to code, to be read by humans to better understand
the
code, but ignored by the compiler.
single-line comment - answer✔starts with // and includes all the following text on that line.
multi-line comment or block comment - answer✔comment starts with /* and ends with */, where
all text between /* and */ is
part of the comment.
whitespace - answer✔refers to blank spaces (space and tab characters) between items within a
statement, and blank lines between statements (called newlines).
syntax error - answer✔to violate a programming
language's rules on how symbols can be combined to create a program.
logic error or bug - answer✔an error that occurs while a
, ©SIRJOEL EXAM SOLUTIONS
12/3/2024 11:27AM
program runs.
warning - answer✔doesn't stop the compiler from creating an
executable program, but indicates a possible logic error.
bits - answer✔binary digits, 0s and 1s
switch - answer✔controls whether or not electricity
flows through a wire.
circuits - answer✔connections of switches
processors - answer✔circuits that process (aka execute) a list of desired calculations
instruction - answer✔calculation
memory - answer✔a circuit that can store 0s and 1s in each of a
series of thousands of addressed locations
program, application, or app - answer✔The programmer-created sequence of instructions
machine instructions - answer✔Instructions represented as 0s and 1s
executable program - answer✔a sequence of machine instructions together
assemblers - answer✔automatically translate human
, ©SIRJOEL EXAM SOLUTIONS
12/3/2024 11:27AM
readable instructions into
machine instructions.
assembly language instructions - answer✔human readable instructions
high-level languages - answer✔programming languages whose instructions more closely
resemble the English language
compilers - answer✔programs that automatically translate high-level language programs into
executable programs.
screen or monitor - answer✔displays items to a user
keyboard - answer✔allows a user to provide input to the computer
disk or hard drive - answer✔stores files and other data, such as program
files, song/movie files, or office documents. Disks are non-volatile, meaning they maintain their
contents even when powered off.
RAM (random-access memory) - answer✔temporarily holds data read from storage, and is
designed such that any address can be accessed much faster than disk
byte - answer✔8 bits