WGU Scripting and Programming Foundations Exam
Last Update Sep 18, 2025
Total Questions : 138
We are offering FREE Scripting-and-Programming-Foundations WGU exam questions. All you do is to just go and sign up. Give your details, prepare Scripting-and-Programming-Foundations free exam questions and then go for complete pool of WGU Scripting and Programming Foundations Exam test questions that will help you more.
A programmer receives requirements from customers and deciders 1o build a first version of a program.
Which phase of an agile approach is being carried out when trio programmer starts writing the program's first version?
Which characteristic distinguishes an object-oriented language from other languages?
A function should return 0 if a number, N is even and 1 if N is odd.
What should be the input to the function?
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?
What is the outcome for the given algorithm? Round to the nearest tenth, if necessary.
It is given that integer x=41 and integer y = 16. What is the value of the expression (x % 8) - y?
Which is one characteristic of an object-oriented language that is not a characteristic of a procedural or functional language?
Which two statement describe advantages to using programming libraries? Choose 2 answers
Which output results from the given algorithm?
i = 61
d = 6
c = 0
while i >= d
c = c + 1
i = i - d
Put c to output
Which term refers to a function that represents the number of fixed-size memory units used for an input of a given size?
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. Which two phases of the Agile approach are being carried out?
A software developer determines the mathematical operations that a calculator program should support. Which two Waterfall approach phases are involved?
A function should determine the average of x and y. What should be the function's parameters and return value(s)?
A function determines the least common multiple (LCM) of two positive integers (a and b). What should be the input to the function?
A software team has been commissioned to create an animation application. Which event takes place during the analysis phase in the Agile approach?
Oder the tasks needed to safely replace a lamp's light bulb from first (1) to last (4).
Select your answer from the pull down list.
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?
Given integer x = 12 and integer y = 4. What is the value of the expression x - y * 2?
Which expression has a values equal to the rightmost digit of the integer q = 16222?
Which line is a loop variable update statement in the sample code?
integer h = 0
do
Put "What is the password?" to output
String userInput = Get next input
if userInput != pwd
Put "Incorrect." to output
h = h + 1
while (userInput != pwd) and (h <= 10)
if userInput = pwd
Put "Access granted." to output
else
Put "Access denied." to output
Consider the given function.
What is the total output when F (sign, horse) is called 2 times?
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?
Which snippet represents the loop variable update statement in the given code?
integer h = 7
while h < 30
Put h to output
h = h + 2
A team of programmers describes the objects and functions in a program that compresses files before splitting the objects. Which Waterfall approach phases are involved?
The steps in an algorithm to build a picnic table are given.
1) Measure and mark the lumber cuts that need to be made
2) Buy the needed materials
3) Determine the needed materials
4) Cut the lumber to the proper dimensions
5) Assemble the pieces and paint.
Which two steps of the algorithm should be switched to make the algorithm successful?