WGU Scripting and Programming -
Foundations - D278
A variable ___ declares a new variable, specifying the variable's name and type. -
answer A variable declaration declares a new variable, specifying the variable's name
and type.
An ___ ___ assigns the variable on the left-side of the = with the current value of the
right-side expression. - answerAn assignment statement assigns the variable on the
left-side of the = with the current value of the right-side expression.
An ___ is a combination of items, like variables, literals, operators, and parentheses,
that evaluates to a value. - answerAn expression is a combination of items, like
variables, literals, operators, and parentheses, that evaluates to a value.
A name created by a programmer for an item like a variable or function is called an ___
- answerA name created by a programmer for an item like a variable or function is
called an identifier
An expression is evaluated using ___ rules that follow the evaluation order of standard
mathematics. - answerAn expression is evaluated using precedence rules that follow
the evaluation order of standard mathematics.
___ ___ is the process of writing and and testing a small amount of code -
answerIncremental development is the process of writing and and testing a small
amount of code
A variable declared as type ___ stores a floating-point number - answerA variable
declared as type float stores a floating-point number
Integer variables are typically used for values that are ___. - answerInteger variables
are typically used for values that are counted.
Floating-point variables are typically used for values that are ___. - answerFloating-
point variables are typically used for values that are measured.
Programming languages typically have built-in ___ to perform common operations
needed by programmers - answerProgramming languages typically have built-in
functions to perform common operations needed by programmers
A ___ is a list of statements executed by invoking the function's name - answerA
function is a list of statements executed by invoking it's name
Foundations - D278
A variable ___ declares a new variable, specifying the variable's name and type. -
answer A variable declaration declares a new variable, specifying the variable's name
and type.
An ___ ___ assigns the variable on the left-side of the = with the current value of the
right-side expression. - answerAn assignment statement assigns the variable on the
left-side of the = with the current value of the right-side expression.
An ___ is a combination of items, like variables, literals, operators, and parentheses,
that evaluates to a value. - answerAn expression is a combination of items, like
variables, literals, operators, and parentheses, that evaluates to a value.
A name created by a programmer for an item like a variable or function is called an ___
- answerA name created by a programmer for an item like a variable or function is
called an identifier
An expression is evaluated using ___ rules that follow the evaluation order of standard
mathematics. - answerAn expression is evaluated using precedence rules that follow
the evaluation order of standard mathematics.
___ ___ is the process of writing and and testing a small amount of code -
answerIncremental development is the process of writing and and testing a small
amount of code
A variable declared as type ___ stores a floating-point number - answerA variable
declared as type float stores a floating-point number
Integer variables are typically used for values that are ___. - answerInteger variables
are typically used for values that are counted.
Floating-point variables are typically used for values that are ___. - answerFloating-
point variables are typically used for values that are measured.
Programming languages typically have built-in ___ to perform common operations
needed by programmers - answerProgramming languages typically have built-in
functions to perform common operations needed by programmers
A ___ is a list of statements executed by invoking the function's name - answerA
function is a list of statements executed by invoking it's name