WGU D278 PROGRAMMING COMPREHENSIVE
QUESTIONS AND ANSWERS SET A+
✔✔Function - ✔✔A list of statements executed by invoking the function's name, with
such invoking known as a function call.
✔✔Type conversion - ✔✔A conversion of one data type to another, such as an integer
to a float.
✔✔Implicit conversion - ✔✔When a program automatically performs several common
conversions between integer and float types (as well as others).
✔✔Type cast - ✔✔Converts a value of one type to another type.
✔✔String - ✔✔A sequence of characters, like "Hello".
✔✔Boolean - ✔✔Refers to a quantity that has only two possible values, true or false.
✔✔Array - ✔✔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 - ✔✔A named value item that holds a value that cannot change.
✔✔Element - ✔✔Each item in an array.
✔✔Index - ✔✔In an array, each element's location number.
✔✔Scalar variable - ✔✔A single-item (non-array) variable.
✔✔Branch - ✔✔A sequence of statements only executed under a certain condition.
, ✔✔Nested branches - ✔✔A branch's statements can include any valid statements,
including another if-else branch.
✔✔Equality operator - ✔✔Checks whether two operand's values are the same (==) or
different (=!). Note that equality is ==, not just =.
✔✔Relational operator - ✔✔Checks how one operand's value relates to another, like
being greater than.
✔✔Logical operator - ✔✔Treats operands as being true or false, and evaluates to true
or false. Logical operators include and, or, not.
✔✔Epsilon - ✔✔The difference threshold indicating that floating-point numbers are
equal.
✔✔if-else statement - ✔✔An if expression with the true branch's sub-statements,
followed by an else part with any false branch sub-statements.
✔✔if statement - ✔✔An if expression followed by sub-statements, with no else part.
✔✔if-elseif statement - ✔✔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.
✔✔Loop - ✔✔A program construct that repeatedly executes the loop's statements
(known as the loop body) while the loop's expression is true; when false, execution
proceeds past the loop. Each time through a loop's statements is called an iteration.
✔✔Infinite loop - ✔✔A loop that never stops iterating. A common error is to accidentally
create an infinite loop, often by forgetting to update a variable in the body, or by creating
a loop expression whose evaluation to false isn't always reachable.
✔✔Sentinel value - ✔✔A special value indicating the end of a list, such as a list of
positive integers ending with 0, as in 1 0 1 6 3 0.
✔✔While loop - ✔✔A loop that repeatedly executes the loop body *while* the loop's
expression evaluates to true.
✔✔For loop - ✔✔A loop consisting of a loop variable initialization, a loop expression,
and a loop variable update that typically describes iterating *for* a specific number of
times.
QUESTIONS AND ANSWERS SET A+
✔✔Function - ✔✔A list of statements executed by invoking the function's name, with
such invoking known as a function call.
✔✔Type conversion - ✔✔A conversion of one data type to another, such as an integer
to a float.
✔✔Implicit conversion - ✔✔When a program automatically performs several common
conversions between integer and float types (as well as others).
✔✔Type cast - ✔✔Converts a value of one type to another type.
✔✔String - ✔✔A sequence of characters, like "Hello".
✔✔Boolean - ✔✔Refers to a quantity that has only two possible values, true or false.
✔✔Array - ✔✔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 - ✔✔A named value item that holds a value that cannot change.
✔✔Element - ✔✔Each item in an array.
✔✔Index - ✔✔In an array, each element's location number.
✔✔Scalar variable - ✔✔A single-item (non-array) variable.
✔✔Branch - ✔✔A sequence of statements only executed under a certain condition.
, ✔✔Nested branches - ✔✔A branch's statements can include any valid statements,
including another if-else branch.
✔✔Equality operator - ✔✔Checks whether two operand's values are the same (==) or
different (=!). Note that equality is ==, not just =.
✔✔Relational operator - ✔✔Checks how one operand's value relates to another, like
being greater than.
✔✔Logical operator - ✔✔Treats operands as being true or false, and evaluates to true
or false. Logical operators include and, or, not.
✔✔Epsilon - ✔✔The difference threshold indicating that floating-point numbers are
equal.
✔✔if-else statement - ✔✔An if expression with the true branch's sub-statements,
followed by an else part with any false branch sub-statements.
✔✔if statement - ✔✔An if expression followed by sub-statements, with no else part.
✔✔if-elseif statement - ✔✔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.
✔✔Loop - ✔✔A program construct that repeatedly executes the loop's statements
(known as the loop body) while the loop's expression is true; when false, execution
proceeds past the loop. Each time through a loop's statements is called an iteration.
✔✔Infinite loop - ✔✔A loop that never stops iterating. A common error is to accidentally
create an infinite loop, often by forgetting to update a variable in the body, or by creating
a loop expression whose evaluation to false isn't always reachable.
✔✔Sentinel value - ✔✔A special value indicating the end of a list, such as a list of
positive integers ending with 0, as in 1 0 1 6 3 0.
✔✔While loop - ✔✔A loop that repeatedly executes the loop body *while* the loop's
expression evaluates to true.
✔✔For loop - ✔✔A loop consisting of a loop variable initialization, a loop expression,
and a loop variable update that typically describes iterating *for* a specific number of
times.