Answers Graded A
Program - ANSWER -Consists of instructions Comment - ANSWER -Text added to a program,
executing one at a time. read by humans to understand the code, but ignored by
the program when executed.
Input - ANSWER -A program gets data, perhaps
from a file, keyboard, touchscreen, network, etc. 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
Process - ANSWER -A programs performs mostly ignored.
computations on that data, such as adding two values like
x + y.
Pseudocode - ANSWER -Text that resembles a
program in a real programming language but is simplified
Output - ANSWER -A programs puts that data to aid human understanding.
somewhere, such as to a file, screen, network, etc.
Assignment statement - ANSWER -Assigns a
Computational thinking - ANSWER -Creating a variable with a value, such as x = 5. An assignment
sequence of instructions to solve a problem. statement's left side must be a variable. The right side is
an expression.Examples: x = 5, y = a, or z = w + 2.
Algorithm - ANSWER -A sequence of instructions
that solves a problem. =- ANSWER -In programming, = is an assignment of
a left-side variable with a right-side value. It does not
represent equality like in mathematics.
Statement - ANSWER -Carries out some action and
executing one at a time.
Variable declaration - ANSWER -Declares a new
variable, specifying the variable's name and type.
String literal - ANSWER -Consists of text
(characters) within double quotes, as in "Go #57!".
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),
Cursor - ANSWER -Indicates where the next output underscores (_), and digits (0-9), AND start with a letter or
item will be placed in the output. underscore.
Newline - ANSWER -A special two-character Reserved word or keyword - ANSWER -A word that
sequence \n whose appearance in an output string literal is part of the language, like integer, Get, or Put. A
causes the cursor to move to the next output line. The programmer cannot use a reserved word as an identifier.
newline exists invisibly in the output.
Lower camel case - ANSWER -Abuts multiple words,
capitalizing each word except the first, such as
1/5
, WGU - Scripting and Programming Foundations Test with
Answers Graded A
numApples. Function - ANSWER -A list of statements executed
by invoking the function's name, with such invoking known
as a function call.
Underscore separated - ANSWER -Words are
lowercase and separated by an underscore, such as
num_apples. Type conversion - ANSWER -A conversion of one
data type to another, such as an integer to a float.
Expression - ANSWER -A combination of items, like
variables, literals, operators, and parentheses, that Implicit conversion - ANSWER -When a program
evaluates to a value. Example: 2 * (x+1) automatically performs several common conversions
between integer and float types (as well as others).
Literal - ANSWER -A specific value in code, like 2.
Type cast - ANSWER -Converts a value of one type
to another type.
Operator - ANSWER -A symbol that performs a
built-in calculation, like the operator + which performs
addition. String - ANSWER -A sequence of characters, like
"Hello".
Unary minus - ANSWER -The subtraction sign (-)
used as a negative. Boolean - ANSWER -Refers to a quantity that has
only two possible values, true or false.
Note about integer literal - ANSWER -Commas are
not allowed, so 1,333,555 must be written as 1333555. Array - ANSWER -An ordered list of items of a given
data type, like an array of integers or an array of floats.
Array indices start from 0, not 1.
Incremental development - ANSWER -The process
of writing, compiling, and testing a small amount of code,
then writing, compiling, and testing a small amount more Constant - ANSWER -A named value item that holds
(an incremental amount), and so on. a value that cannot change.
Floating-point number - ANSWER -A real number, Element - ANSWER -Each item in an array.
like 98.6, 0.0001, or -666.667.
Index - ANSWER -In an array, each element's
Floating-point literal - ANSWER -A number with a location number.
fractional part, even if that fraction is 0, such as 1.0, 0.0,
or 99.573.
Scalar variable - ANSWER -A single-item (non-array)
2/5