PROGRAMMING
FOUNDATIONS LATEST
FINAL EXAM 2026 GRADED
A+
QUESTIONNewline - answer-A special two-character sequence \n whose appearance
in an output string literal causes the cursor to move to the next output line. The newline
exists invisibly in the output.
QUESTIONComment - answer-Text added to a program, read by humans to
understand the code, but ignored by the program when executed.
QUESTIONWhitespace - answer-Refers to blank spaces (space and tab characters)
between items within a statement, and to newlines. Whitespace helps improve
readability for humans, but for execution purposes is mostly ignored.
Program - answer-Consists of instructions executing one at a time.
QUESTIONInput - answer-A program gets data, perhaps from a file, keyboard,
touchscreen, network, etc.
QUESTIONProcess - answer-A programs performs computations on that data, such as
adding two values like x + y.
QUESTIONOutput - answer-A programs puts that data somewhere, such as to a file,
screen, network, etc.
QUESTIONComputational thinking - answer-Creating a sequence of instructions to
solve a problem.
QUESTIONAlgorithm - answer-A sequence of instructions that solves a problem.
, QUESTIONStatement - answer-Carries out some action and executing one at a time.
QUESTIONString literal - answer-Consists of text (characters) within double quotes, as
in "Go #57!".
QUESTIONCursor - answer-Indicates where the next output item will be placed in the
output.
QUESTIONPseudocode - answer-Text that resembles a program in a real programming
language but is simplified to aid human understanding.
QUESTIONAssignment statement - answer-Assigns a variable with a value, such as x =
5. An assignment statement's left side must be a variable. The right side is an
expression.Examples: x = 5, y = a, or z = w + 2.
QUESTION= - answer-In programming, = is an assignment of a left-side variable with a
right-side value. It does not represent equality like in mathematics.
QUESTIONVariable declaration - answer-Declares a new variable, specifying the
variable's name and type.
QUESTIONIdentifier - answer-A name created by a programmer for an item like a
variable or function. An identifier must: be a sequence of letters (a-z, A-Z), underscores
(_), and digits (0-9), AND start with a letter or underscore.
QUESTIONReserved word or keyword - answer-A word that is part of the language, like
integer, Get, or Put. A programmer cannot use a reserved word as an identifier.
QUESTIONLower camel case - answer-Abuts multiple words, capitalizing each word
except the first, such as numApples.
QUESTIONUnderscore separated - answer-Words are lowercase and separated by an
underscore, such as num_apples.
QUESTIONExpression - answer-A combination of items, like variables, literals,
operators, and parentheses, that evaluates to a value. Example: 2 * (x+1)
QUESTIONLiteral - answer-A specific value in code, like 2.
QUESTIONLogical operator - answer-Treats operands as being true or false, and
evaluates to true or false. Logical operators include and, or, not.
QUESTIONEpsilon - answer-The difference threshold indicating that floating-point
numbers are equal.