WGU D278 2026 EXAM STUDY GUIDE
COMPLETE QUESTIONS WITH ANSWERS
◉Array. Answer: An ordered list of items of a given data type, like an
array of integers or an array of floats. Array indices start from 0, not
1.
◉Constant. Answer: A named value item that holds a value that
cannot change.
◉Element. Answer: Each item in an array.
◉Index. Answer: In an array, each element's location number.
◉Scalar variable. Answer: A single-item (non-array) variable.
◉Branch. Answer: A sequence of statements only executed under a
certain condition.
◉Nested branches. Answer: A branch's statements can include any
valid statements, including another if-else branch.
, ◉Equality operator. Answer: Checks whether two operand's values
are the same (==) or different (=!). Note that equality is ==, not just
=.
◉Relational operator. Answer: Checks how one operand's value
relates to another, like being greater than.
◉Logical operator. Answer: Treats operands as being true or false,
and evaluates to true or false. Logical operators include and, or, not.
◉Epsilon. Answer: The difference threshold indicating that floating-
point numbers are equal.
◉if-else statement. Answer: An if expression with the true branch's
sub-statements, followed by an else part with any false branch sub-
statements.
◉if statement. Answer: An if expression followed by sub-statements,
with no else part.
◉if-elseif statement. Answer: Starts with an if expression, followed
by elseif expressions, and ending with else; when a program reaches
the statement, exactly one of those branches will execute. When the
else branch has no statements, the else part is omitted.
COMPLETE QUESTIONS WITH ANSWERS
◉Array. Answer: An ordered list of items of a given data type, like an
array of integers or an array of floats. Array indices start from 0, not
1.
◉Constant. Answer: A named value item that holds a value that
cannot change.
◉Element. Answer: Each item in an array.
◉Index. Answer: In an array, each element's location number.
◉Scalar variable. Answer: A single-item (non-array) variable.
◉Branch. Answer: A sequence of statements only executed under a
certain condition.
◉Nested branches. Answer: A branch's statements can include any
valid statements, including another if-else branch.
, ◉Equality operator. Answer: Checks whether two operand's values
are the same (==) or different (=!). Note that equality is ==, not just
=.
◉Relational operator. Answer: Checks how one operand's value
relates to another, like being greater than.
◉Logical operator. Answer: Treats operands as being true or false,
and evaluates to true or false. Logical operators include and, or, not.
◉Epsilon. Answer: The difference threshold indicating that floating-
point numbers are equal.
◉if-else statement. Answer: An if expression with the true branch's
sub-statements, followed by an else part with any false branch sub-
statements.
◉if statement. Answer: An if expression followed by sub-statements,
with no else part.
◉if-elseif statement. Answer: Starts with an if expression, followed
by elseif expressions, and ending with else; when a program reaches
the statement, exactly one of those branches will execute. When the
else branch has no statements, the else part is omitted.