WGU D278 Scripting and Programming - Foundations
(Latest 2024/ 2025 Update) | Questions and Verified
Answers| 100% Correct| Grade A
variable - ANSWER In a program, a ________ is a named item, such as x or
numPeople, used to hold a value.
assignment statement - ANSWER An ________ ________assigns a variable with a
value, such as x = 5.
variable declaration - ANSWER A ________ ________ declares a new variable,
specifying the variable's name and type.
integer - ANSWER A variable that can hold whole number values, like 1, 999, 0, or -
25 (but not 3.5 or 0.001).
assignment statement - ANSWER assigns the variable on the left-side of the = with
the current value of the right-side expression.
expression - ANSWER may be a number like 80, a variable name like numApples,
or a simple calculation like numApples + 1.
identifier - ANSWER name created by a programmer for an item like a variable or
function.
case sensitive - ANSWER Identifiers are ________ ________, meaning upper and
lower case letters differ.
naming conventions - ANSWER A set of style guidelines defined by a company,
team, teacher, etc., for naming variables.
Lower camel case - ANSWER abuts multiple words, capitalizing each word except
the first, as in numApples or peopleOnBus.
expression - ANSWER a combination of items, like variables, literals, operators, and
parentheses, that evaluates to a value. Ex: 2 * (x + 1) is an expression. If x is 3, the
________ evaluates to the value 8.
literal - ANSWER a specific value in code, like 2.
operator - ANSWER a symbol that performs a built-in calculation, like the + which
performs addition.
evaluates - ANSWER An expression ________ to a value, which replaces the
expression. Ex: If x is 5, then x + 1 ________ to 6, and y = x + 1 assigns y with 6.
(Latest 2024/ 2025 Update) | Questions and Verified
Answers| 100% Correct| Grade A
variable - ANSWER In a program, a ________ is a named item, such as x or
numPeople, used to hold a value.
assignment statement - ANSWER An ________ ________assigns a variable with a
value, such as x = 5.
variable declaration - ANSWER A ________ ________ declares a new variable,
specifying the variable's name and type.
integer - ANSWER A variable that can hold whole number values, like 1, 999, 0, or -
25 (but not 3.5 or 0.001).
assignment statement - ANSWER assigns the variable on the left-side of the = with
the current value of the right-side expression.
expression - ANSWER may be a number like 80, a variable name like numApples,
or a simple calculation like numApples + 1.
identifier - ANSWER name created by a programmer for an item like a variable or
function.
case sensitive - ANSWER Identifiers are ________ ________, meaning upper and
lower case letters differ.
naming conventions - ANSWER A set of style guidelines defined by a company,
team, teacher, etc., for naming variables.
Lower camel case - ANSWER abuts multiple words, capitalizing each word except
the first, as in numApples or peopleOnBus.
expression - ANSWER a combination of items, like variables, literals, operators, and
parentheses, that evaluates to a value. Ex: 2 * (x + 1) is an expression. If x is 3, the
________ evaluates to the value 8.
literal - ANSWER a specific value in code, like 2.
operator - ANSWER a symbol that performs a built-in calculation, like the + which
performs addition.
evaluates - ANSWER An expression ________ to a value, which replaces the
expression. Ex: If x is 5, then x + 1 ________ to 6, and y = x + 1 assigns y with 6.