Assessment Scripting and Programming
Foundations Questions and 100% Correct
Answers– WGU
Identifier - correct 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.
Reserved word or keyword - correct answer A word that is part of the language, like
integer, Get, or Put. A programmer cannot use a reserved word as an identifier.
Lower camel case - correct answer Abuts multiple words, capitalizing each word
except the first, such as numApples.
Underscore separated - correct answer Words are lowercase and separated by an
underscore, such as num_apples.
Expression - correct answer A combination of items, like variables, literals, operators,
and parentheses, that evaluates to a value. Example: 2 * (x+1)
Literal - correct answer A specific value in code, like 2.
Operator - correct answer A symbol that performs a built-in calculation, like the
operator + which performs addition.
Unary minus - correct answer The subtraction sign (-) used as a negative.
, D278 (Latest Update ) Pre-
Assessment Scripting and Programming
Foundations Questions and 100% Correct
Answers– WGU
Note about integer literal - correct answer Commas are not allowed, so 1,333,555 must
be written as 1333555.
Incremental development - correct answer The process of writing, compiling, and
testing a small amount of code, then writing, compiling, and testing a small amount
more (an incremental amount), and so on.
Floating-point number - correct answer A real number, like 98.6, 0.0001, or -666.667.
Floating-point literal - correct answer A number with a fractional part, even if that
fraction is 0, such as 1.0, 0.0, or 99.573.
Function - correct answer A list of statements executed by invoking the function's
name, with such invoking known as a function call.
Type conversion - correct answer A conversion of one data type to another, such as an
integer to a float.
Implicit conversion - correct answer When a program automatically performs several
common conversions between integer and float types (as well as others).
Type cast - correct answer Converts a value of one type to another type.