Free WGU Scripting-and-Programming-Foundations Practice Test & Real Exam Questions
Which output results from the given algorithm?


Correct Answer: B
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
A function should convert a Fahrenheit temperature (F) to a Celsius temperature. What should be the output from the function?
Correct Answer: D
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
Consider the given function.

What is the total output when F (sign, horse) is called 2 times?

What is the total output when F (sign, horse) is called 2 times?
Correct Answer: A
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
What does the following algorithm determine?


Correct Answer: B
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
Which phase of a waterfall approach defines specifies on how to build a program?
Correct Answer: B
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
A programmer has been hired to create an inventory system for a library. What is the Waterfall phase in which outlining all the functions that need to be written to support the inventory system occurs?
Correct Answer: B
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
What is one characteristic of an object-oriented language that is not a characteristic of a procedural or functional language?
Correct Answer: B
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
A particular sorting algorithm takes integer list [10, 6, 8] and incorrectly sorts the list to [6, 10, 8]. What is true about the algorithm's correctness for sorting an arbitrary list of three integers?
Correct Answer: D
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
What is the purpose of an activity diagram, such as the following diagram?


Correct Answer: D
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
The steps in an algorithm to build a picnic table are given:
* Measure and mark the lumber cuts that need to be made.
* Buy the needed materials.
* Determine the needed materials.
* Cut the lumber to the proper dimensions.
* Assemble the pieces and paint.Which two steps of the algorithm should be switched to make the algorithm successful?
* Measure and mark the lumber cuts that need to be made.
* Buy the needed materials.
* Determine the needed materials.
* Cut the lumber to the proper dimensions.
* Assemble the pieces and paint.Which two steps of the algorithm should be switched to make the algorithm successful?
Correct Answer: B
Vote an answer
Explanation: Only visible for Pass4Leader members. You can sign-up / login (it's free).
