1|Page
WGU D278 Pre-Assessment for Scripting and Programming –
Foundations Exam _ Detailed Questions And Answers A+
Grade ||Just Out!!!
Which text represents an algorithm?
A Cats and dogs have tails.
B Insert key, turn key, open door.
C The forecast for tomorrow is rain.
D A box has balls, bats, and hats. - ANSWER-B
Which text represents an algorithm?
A Shake bulb; if it rattles, replace it.
B Water is wet; fire is not wet.
C Staring at the sun hurts the eyes.
D The max speed is 60 mph. - ANSWER-A
An algorithm should output "OK" if a list's numbers are all non-
zero, else the output is "Not OK."
Which test is a valid test of the algorithm?
,2|Page
A Input 0, 0, 0. Ensure output is "OK."
B Input 5, 4, 0. Ensure output is "OK."
C Input -3, -2, 5. Ensure output is "Not OK."
D Input 99, 0, 5. Ensure output is "Not OK." - ANSWER-D
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. - ANSWER-B
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 - ANSWER-C
,3|Page
What is the purpose of the following class diagram?
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 - ANSWER-D
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 -
ANSWER-A
Which elements are characteristic of a class diagram?
, 4|Page
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 - ANSWER-A
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
C Provides an overview of several use cases
D Lists use case goals - ANSWER-C
Which phase of a waterfall approach would create a sequence
diagram that specifies the required order of events between
completed program components?
A Analysis
WGU D278 Pre-Assessment for Scripting and Programming –
Foundations Exam _ Detailed Questions And Answers A+
Grade ||Just Out!!!
Which text represents an algorithm?
A Cats and dogs have tails.
B Insert key, turn key, open door.
C The forecast for tomorrow is rain.
D A box has balls, bats, and hats. - ANSWER-B
Which text represents an algorithm?
A Shake bulb; if it rattles, replace it.
B Water is wet; fire is not wet.
C Staring at the sun hurts the eyes.
D The max speed is 60 mph. - ANSWER-A
An algorithm should output "OK" if a list's numbers are all non-
zero, else the output is "Not OK."
Which test is a valid test of the algorithm?
,2|Page
A Input 0, 0, 0. Ensure output is "OK."
B Input 5, 4, 0. Ensure output is "OK."
C Input -3, -2, 5. Ensure output is "Not OK."
D Input 99, 0, 5. Ensure output is "Not OK." - ANSWER-D
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. - ANSWER-B
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 - ANSWER-C
,3|Page
What is the purpose of the following class diagram?
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 - ANSWER-D
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 -
ANSWER-A
Which elements are characteristic of a class diagram?
, 4|Page
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 - ANSWER-A
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
C Provides an overview of several use cases
D Lists use case goals - ANSWER-C
Which phase of a waterfall approach would create a sequence
diagram that specifies the required order of events between
completed program components?
A Analysis