WGU D278 OBJECTIVE ASSESSMENT 70
ACTUAL QUESTIONS WITH CORRECT
ANSWERS
◉ Whitespace.
Answer: Refers to blank spaces (space and tab characters) between
items within a statement, and to newlines. Whitespace helps
improve readability for humans, but for execution purposes is
mostly ignored.
◉ Pseudocode.
Answer: Text that resembles a program in a real programming
language but is simplified to aid human understanding.
◉ Assignment statement.
Answer: Assigns a variable with a value, such as x = 5. An
assignment statement's left side must be a variable. The right side is
an expression.Examples: x = 5, y = a, or z = w + 2.
◉ =.
Answer: In programming, = is an assignment of a left-side variable
with a right-side value. It does not represent equality like in
mathematics.
, ◉ Variable declaration.
Answer: Declares a new variable, specifying the variable's name and
type.
◉ Identifier.
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.
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.
Answer: Abuts multiple words, capitalizing each word except the
first, such as numApples.
◉ Underscore separated.
Answer: Words are lowercase and separated by an underscore, such
as num_apples.
◉ Expression.
ACTUAL QUESTIONS WITH CORRECT
ANSWERS
◉ Whitespace.
Answer: Refers to blank spaces (space and tab characters) between
items within a statement, and to newlines. Whitespace helps
improve readability for humans, but for execution purposes is
mostly ignored.
◉ Pseudocode.
Answer: Text that resembles a program in a real programming
language but is simplified to aid human understanding.
◉ Assignment statement.
Answer: Assigns a variable with a value, such as x = 5. An
assignment statement's left side must be a variable. The right side is
an expression.Examples: x = 5, y = a, or z = w + 2.
◉ =.
Answer: In programming, = is an assignment of a left-side variable
with a right-side value. It does not represent equality like in
mathematics.
, ◉ Variable declaration.
Answer: Declares a new variable, specifying the variable's name and
type.
◉ Identifier.
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.
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.
Answer: Abuts multiple words, capitalizing each word except the
first, such as numApples.
◉ Underscore separated.
Answer: Words are lowercase and separated by an underscore, such
as num_apples.
◉ Expression.