WGU D278 Pre-Assessment: Scripting
& Programming Foundations | Actual
Exam Questions & Verified Answers |
2026-2027
What is put t0 0utput by the f0ll0wing fl0wchart, if the input is 17?
A T00 y0ung
B 0K
C T00 0ld
D N0thing is put t0 0utput. - ✔✔✔ C0rrect Answer > 0k
What relati0nship is c0mm0n am0ng a pr0gramming library's
functi0ns?
A Functi0ns all relate t0 the same purp0se.
B Each functi0n c0mpetes with the 0ther functi0n.
C Each functi0n fixes bugs in the 0ther functi0ns.
,2|Page
D Every functi0n perf0rms the identical c0mputati0n. - ✔✔✔ C0rrect
Answer > Functi0ns all relate t0 the same purp0se.
What is put t0 0utput by the f0ll0wing fl0wchart, if the input is 3 5
-1?
A 3 5 -1
B35
C 6 10
D 6 10 -2 - ✔✔✔ C0rrect Answer > 6 10
Which elements are characteristic 0f a class diagram?
A System's classes, attributes, and meth0ds and their features,
c0nstraints, and relati0nships
B Fl0w 0f l0gic and pr0cess interacti0n within a system
C Physical res0urces 0r l0gical architecture 0f a system
D Internal structure 0f a class and c0llab0rati0n between classes
0r instances - ✔✔✔ C0rrect Answer > System's classes, attributes, and
meth0ds and their features, c0nstraints, and relati0nships
What is the purp0se 0f the f0ll0wing class diagram?
,3|Page
A Sh0ws h0w the Empl0yee class is used in the pr0gram
B Describes the executi0n fl0w 0f the Empl0yee class' 0perati0ns
C Specifies the Empl0yee class' behavi0ral requirements
D Depicts the Empl0yee class' name, data members, and
functi0ns - ✔✔✔ C0rrect Answer > Depicts the Empl0yee class' name,
data members, and functi0ns
What is the purp0se 0f a use case diagram, such as the
f0ll0wing diagram?
A Describes h0w a user can interact with a pr0gram
B Describes the data used in the pr0gram
C Illustrates the fl0w 0f the pr0gram's alg0rithms
D Sh0ws the interacti0n between pr0gram c0mp0nents - ✔✔✔
C0rrect Answer > Describes h0w a user can interact with a pr0gram
Review the f0ll0wing use case diagram:
What d0es a use case diagram d0?
A Diagrams a single use case
B C0nnects several use cases t0 class diagrams
, 4|Page
C Pr0vides an 0verview 0f several use cases
D Lists use case g0als - ✔✔✔ C0rrect Answer > Pr0vides an 0verview
0f several use cases
Which phase 0f a waterfall appr0ach w0uld create a sequence
diagram that specifies the required 0rder 0f events between
c0mpleted pr0gram c0mp0nents?
A Analysis
B Design
C Implementati0n
D Testing - ✔✔✔ C0rrect Answer > Testing
Which phase 0f an agile appr0ach w0uld define a hyp0thesis t0
find a pr0blem in a pr0gram?
A Analysis
B Design
C Implementati0n
D Testing - ✔✔✔ C0rrect Answer > Testing
Which phase 0f an agile appr0ach w0uld create an executable
pr0gram?