WGU Scripting and Programming Foundations - Scripting-and-Programming-Foundations Exam Practice Test

Question 1
What is the outcome for the given algorithm? Round to the nearest tenth, if necessary.
NumList = [1, 3, 6, 6, 7, 3]
x = 0
Count = 0
for Number in NumList
x = x + Number
Count = Count + 1
x = x / Count
Put x to output

Correct Answer: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 2
A software developer determines the mathematical operations that a calculator program should support.
Which two Waterfall approach phases are involved?

Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 3
What is output by calling Greeting() twice?

Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 4
A particular sorting takes integer list 10,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: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 5
It is given that integer x=41 and integer y = 16. What is the value of the expression (x % 8) - y?

Correct Answer: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 6
A software developer creates a list of all objects and functions that will be used in a board game application and then begins to write the code for each object.

Correct Answer: D
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 7
A programming is developing an application that needs to manipulation text in a variety of ways. Everything the programmer needs is standard in the industry and the programmer wants to perform these manipulations with a minimal amount of code. What does the programmer need?

Correct Answer: A
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 8
A sample function is shown:

What is returned for F (3)?

Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).