WGU Scripting and Programming Foundations (Scripting-and-Programming-Foundations) Free Practice Test
Question 1
A programming team is using the Waterfall design approach to create an application. Which deliverable would be produced during the design phase?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 2
What is the loop variable update statement in the following code?


Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
Which characteristic distinguishes a markup language from other languages?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 4
Which expression has a values equal to the rightmost digit of the integer q = 16222?
Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 5
Review the following sequence diagram:

What does a sequence diagram do?

What does a sequence diagram do?
Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 6
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?
What is true about the algorithm's correctness for sorting an arbitrary list of three integers?
Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 7
Consider the given function:
function K(string s1, string s2)
Put s1 to output
Put " and " to output
Put s2 to output
What is the total output when K("sign", "horse") is called 2 times?
function K(string s1, string s2)
Put s1 to output
Put " and " to output
Put s2 to output
What is the total output when K("sign", "horse") is called 2 times?
Correct Answer: E
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).