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 {70 Q & A} ALREADY
GRADED A+/ D278 PRE-ASSESSMENT SCRIPTING
AND PROGRAMMING FOUNDATIONS | BRAND NEW! |
WGU
What is put to output by the following flowchart, if the input is 17?
A Too young
B OK
C Too old
D Nothing is put to output. - ✔✔✔ Correct Answer > Ok
What relationship is common among a programming library's
functions?
A Functions all relate to the same purpose.
B Each function competes with the other function.
C Each function fixes bugs in the other functions.
,2|Page
D Every function performs the identical computation. - ✔✔✔ Correct
Answer > Functions all relate to the same purpose.
What is put to output by the following flowchart, if the input is 3 5
-1?
A 3 5 -1
B35
C 6 10
D 6 10 -2 - ✔✔✔ Correct Answer > 6 10
Which elements are characteristic of a class diagram?
A System's classes, attributes, and methods and their features,
constraints, and relationships
B Flow of logic and process interaction within a system
C Physical resources or logical architecture of a system
D Internal structure of a class and collaboration between classes
or instances - ✔✔✔ Correct Answer > System's classes, attributes, and
methods and their features, constraints, and relationships
What is the purpose of the following class diagram?
,3|Page
A Shows how the Employee class is used in the program
B Describes the execution flow of the Employee class' operations
C Specifies the Employee class' behavioral requirements
D Depicts the Employee class' name, data members, and
functions - ✔✔✔ Correct Answer > Depicts the Employee class' name,
data members, and functions
What is the purpose of a use case diagram, such as the following
diagram?
A Describes how a user can interact with a program
B Describes the data used in the program
C Illustrates the flow of the program's algorithms
D Shows the interaction between program components - ✔✔✔
Correct Answer > Describes how a user can interact with a program
Review the following use case diagram:
What does a use case diagram do?
A Diagrams a single use case
B Connects several use cases to class diagrams
, 4|Page
C Provides an overview of several use cases
D Lists use case goals - ✔✔✔ Correct Answer > Provides an overview
of several use cases
Which phase of a waterfall approach would create a sequence
diagram that specifies the required order of events between
completed program components?
A Analysis
B Design
C Implementation
D Testing - ✔✔✔ Correct Answer > Testing
Which phase of an agile approach would define a hypothesis to
find a problem in a program?
A Analysis
B Design
C Implementation
D Testing - ✔✔✔ Correct Answer > Testing
Which phase of an agile approach would create an executable
program?