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