D278/ WGU D278 EXAM/ WGU PRE-ASSESSMENT
SCRIPTING AND PROGRAMMING FOUNDATIONS
EXAM 2025/2026 ACTUAL EXAM QUESTIONS AND
CORRECT DETAILED ANSWERS (VERIFIED
ANSWERS) ALL ANSWERED {450 Q & A} ALREADY
GRADED A+/ D278 PRE-ASSESSMENT SCRIPTING
AND PROGRAMMING FOUNDATIONS | BRAND NEW! |
WGU
Basic instruction types are: - ✔✔✔ Correct Answer > Input: A program
gets data, perhaps from a file, keyboard, touchscreen, network,
etc.
Process: A program performs computations on that data, such as
adding two values like x + y.
Output: A program puts that data somewhere, such as to a file,
screen, network, etc.
Programs use variables to refer to data, - ✔✔✔ Correct Answer > like
x, y, and z below. The name is due to a variable's value "varying"
as a program assigns a variable like x with new values.
A basic computer program. - ✔✔✔ Correct Answer > 1) A basic
computer program's instructions get input, process, and put
,2|Page
output. This program first assigns x with what is typed on the
keyboard input, in this case 2.
2) The program's next instruction gets the next input, in this case
5.
3) The program then does some processing, in this case
assigning z with x + y (so 2 + 5 yields 7).
4) Finally, the program puts z (7) to output, in this case to a
screen
algorithm. - ✔✔✔ Correct Answer > A sequence of instructions that
solves a problem
A flowchart - ✔✔✔ Correct Answer > is a graphical language for
creating or viewing computer programs. Numerous flowchart
languages exist.
A program - ✔✔✔ Correct Answer > is a list of statements, each
statement carrying out some action and executing one at a time.
OR A sequence of statements
For Coral, an interpreter - ✔✔✔ Correct Answer > runs a program's
statements.
,3|Page
Run and execute - ✔✔✔ Correct Answer > are words for carrying out a
program's statements
Statement - ✔✔✔ Correct Answer > A specific action in a program.
A first program. - ✔✔✔ Correct Answer > 1) This program declares two
integer "variables" for holding values, named wage and salary.
2) A program's execution begins from the Start node. The first
statement assigns wage with 20.
3) Execution proceeds to the next statement, which gets wage's
value, and multiplies by 40 and 52 to yield 41600. The statement
assigns salary with that 41600.
4) The next statement puts text "Salary is" to output. The last
statement puts variable salary's value, which is 41600, to output.
Execution ends when "End" is reached.
Variable - ✔✔✔ Correct Answer > A name that can hold a value.
Run - ✔✔✔ Correct Answer > The act of carrying out each statement's
action.
Interpreter - ✔✔✔ Correct Answer > A tool that runs a program's
statements.
, 4|Page
Programming terms. - ✔✔✔ Correct Answer >
Getting input - ✔✔✔ Correct Answer > 1) A parallelogram represents
an input (or output) statement.
2) The statement assigns the variable on the left (wage) with the
next value in the program's input (20).
3) This program uses that gotten value in a subsequent
calculation.
Basic input - ✔✔✔ Correct Answer >
Basic input example: Dog years to human years. - ✔✔✔ Correct
Answer >
In a Coral flowchart, - ✔✔✔ Correct Answer > a parallelogram
represents an output statement, written as: Put item to output.
string literal - ✔✔✔ Correct Answer > consists of text (characters)
within double quotes, as in "Go #57!".
character - ✔✔✔ Correct Answer > includes any letter (a-z, A-Z), digit
(0-9), or symbol (~, !, @, etc.).