WGU D681 TASK 2 MURISON SCRIPT
COMPLETE QUESTIONS AND SOLUTIONS
TESTED ANSWERS
◉ Expression
Answer: A combination of items, like variables, literals, operators,
and parentheses, that evaluates to a value. Example: 2 * (x+1)
◉ Literal
Answer: A specific value in code, like 2.
◉ Operator
Answer: A symbol that performs a built-in calculation, like the
operator + which performs addition.
◉ Unary minus
Answer: The subtraction sign (-) used as a negative.
◉ Note about integer literal
Answer: Commas are not allowed, so 1,333,555 must be written
as 1333555.
◉ Incremental development
, 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
Answer: A real number, like 98.6, 0.0001, or -666.667.
◉ Floating-point literal
Answer: A number with a fractional part, even if that fraction is 0,
such as 1.0, 0.0, or 99.573.
◉ Function
Answer: A list of statements executed by invoking the function's
name, with such invoking known as a function call.
◉ Type conversion
Answer: A conversion of one data type to another, such as an
integer to a float.
◉ Implicit conversion
Answer: When a program automatically performs several
common conversions between integer and float types (as well as
others).
◉ Type cast
COMPLETE QUESTIONS AND SOLUTIONS
TESTED ANSWERS
◉ Expression
Answer: A combination of items, like variables, literals, operators,
and parentheses, that evaluates to a value. Example: 2 * (x+1)
◉ Literal
Answer: A specific value in code, like 2.
◉ Operator
Answer: A symbol that performs a built-in calculation, like the
operator + which performs addition.
◉ Unary minus
Answer: The subtraction sign (-) used as a negative.
◉ Note about integer literal
Answer: Commas are not allowed, so 1,333,555 must be written
as 1333555.
◉ Incremental development
, 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
Answer: A real number, like 98.6, 0.0001, or -666.667.
◉ Floating-point literal
Answer: A number with a fractional part, even if that fraction is 0,
such as 1.0, 0.0, or 99.573.
◉ Function
Answer: A list of statements executed by invoking the function's
name, with such invoking known as a function call.
◉ Type conversion
Answer: A conversion of one data type to another, such as an
integer to a float.
◉ Implicit conversion
Answer: When a program automatically performs several
common conversions between integer and float types (as well as
others).
◉ Type cast