WGU - Scripting and Programming
Foundations Exam 2026 Questions and
Answers
Program - Correct answer-Consists of instructions executing one at a time.
Input - Correct answer-A program gets data, perhaps from a file, keyboard,
touchscreen, network, etc.
Process - Correct answer-A programs performs computations on that data, such as
adding two values like x + y.
Output - Correct answer-A programs puts that data somewhere, such as to a file,
screen, network, etc.
Computational thinking - Correct answer-Creating a sequence of instructions to
solve a problem.
Algorithm - Correct answer-A sequence of instructions that solves a problem.
Statement - Correct answer-Carries out some action and executing one at a time.
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
, String literal - Correct answer-Consists of text (characters) within double quotes, as
in "Go #57!".
Cursor - Correct answer-Indicates where the next output item will be placed in the
output.
Newline - Correct answer-A special two-character sequence \n whose appearance
in an output string literal causes the cursor to move to the next output line. The
newline exists invisibly in the output.
Comment - Correct answer-Text added to a program, read by humans to understand
the code, but ignored by the program when executed.
Whitespace - Correct 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 - Correct answer-Text that resembles a program in a real programming
language but is simplified to aid human understanding.
Assignment statement - Correct 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.
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2
Foundations Exam 2026 Questions and
Answers
Program - Correct answer-Consists of instructions executing one at a time.
Input - Correct answer-A program gets data, perhaps from a file, keyboard,
touchscreen, network, etc.
Process - Correct answer-A programs performs computations on that data, such as
adding two values like x + y.
Output - Correct answer-A programs puts that data somewhere, such as to a file,
screen, network, etc.
Computational thinking - Correct answer-Creating a sequence of instructions to
solve a problem.
Algorithm - Correct answer-A sequence of instructions that solves a problem.
Statement - Correct answer-Carries out some action and executing one at a time.
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
, String literal - Correct answer-Consists of text (characters) within double quotes, as
in "Go #57!".
Cursor - Correct answer-Indicates where the next output item will be placed in the
output.
Newline - Correct answer-A special two-character sequence \n whose appearance
in an output string literal causes the cursor to move to the next output line. The
newline exists invisibly in the output.
Comment - Correct answer-Text added to a program, read by humans to understand
the code, but ignored by the program when executed.
Whitespace - Correct 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 - Correct answer-Text that resembles a program in a real programming
language but is simplified to aid human understanding.
Assignment statement - Correct 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.
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2