Month End Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmaspas7

Easiest Solution 2 Pass Your Certification Exams

Scripting-and-Programming-Foundations WGU Scripting and Programming Foundations Exam Free Practice Exam Questions (2025 Updated)

Prepare effectively for your WGU Scripting-and-Programming-Foundations WGU Scripting and Programming Foundations Exam certification with our extensive collection of free, high-quality practice questions. Each question is designed to mirror the actual exam format and objectives, complete with comprehensive answers and detailed explanations. Our materials are regularly updated for 2025, ensuring you have the most current resources to build confidence and succeed on your first attempt.

Review the following sequence diagram:

What does a sequence diagram do?

A.

Shows interactions awl indicates an order of events

B.

Shows interactions but does not specify an order of events

C.

Shows sialic elements of software

D.

Shows an order of events but does not specify all interactions

Which value would require an integer as a data type?

A.

The cost of a dinner including tax and tip.

B.

An approximation of the number pi to five decimal places.

C.

The weights of every patient involved in a pharmaceutical trial.

D.

The number of students in a section.

A software developer determines the mathematical operations that a calculator program should support. Which two Waterfall approach phases are involved?

A.

Analysis and design

B.

Design and implementation

C.

Implementation and testing

D.

Design and testing

What would a string be used to store?

A.

A positive whole number

B.

The word "positive"

C.

A true/false indication of whether a number is composite

D.

A positive number between 2 and 3

A software engineer has written a program that uses a large number of interacting custom data types information hiding, data abstraction encapsulation polymorphism, and inheritance Variables do not need to receive their types ahead of time, and this program can run on a variety of operating systems without having to re-compile the program into machine code.

Which type of language is being used? Choose 3 terms that accurately describe the language.

A.

Markup

B.

Interpreted

C.

Object-oriented

D.

Procedural

E.

Dynamic

F.

Static

Which problem is solved by DijkStra’s shortest path algorithm?

A.

Given an increasing array of numbers is the number 19 in the array?

B.

Given the coordinates of five positions, what is the most fuel-efficient flight pain?

C.

Given two newspaper articles what is the greatest sequence of words shared by both articles?

D.

Given an alphabetized list of face entrants and a person's name, is the person entered in the race?

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.

h < 30

B.

h = h + 2

C.

Put h to output

D.

integer h = 7

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.

What is required for all function calls?

A.

Parameters

B.

Input arguments

C.

Output values

D.

Function name

A program adds a service fee to the total cost of concert tickets when the tickets are printed and mailed to customers. Another service fee is also added if the

A.

Multiple if statements

B.

If statement

C.

While loop

D.

Do-while loop

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

A.

5.0

B.

6.0

C.

6.1

D.

8.4

An algorithm to calculate the positive difference in two given values, x and y, uses the steps shown.

What are the two steps of the algorithm that need to be switched to result in success?

A.

1 and 2

B.

2 and 4

C.

1 and 4

D.

3 and 4

An algorithm should output "OK" if a number is between 98.3 and 98.9, else the output is "Not OK." Which test is a valid test of the algorithm?

A.

Input 98.6. Ensure output is "Not OK."

B.

Input 98.6. Ensure output is "OK."

C.

Input 99.9. Ensure output is "OK."

D.

Input 99.9. Ensure output is "98.9."

Which kind of language is HTML?

A.

Dynamically typed

B.

Markup

C.

Statically typed

D.

Object-oriented

An example of an behavioral diagram is shown.

What is generally visualized with a behavioral diagram"?

A.

Quality control mechanisms

B.

Relative sizes of program components

C.

Operating system compatibility

D.

The dynamic flow of software

A programming loam is using the waterfall design approach to create an application. Which deliverable would be produced during the design phase?

A.

A report of customer satisfaction

B.

A list of additional features to be added during revision

C.

A written description of the goals for the project

D.

The programming paradigm to be used

Which expression has a value equal to the rightmost digit of the integer q = 7777?

A.

10 % q

B.

q % 10

C.

q / 10000

D.

q % 10000

What is a characteristic of an interpreted language?

A.

Is restricted to running on one machine

B.

Generates syntax errors during compilation

C.

Can be run by a user one statement at a time

D.

Has a programmer writing machine code

What are two examples of equality operators?

Choose 2 answers.

A.

-

B.

==

C.

/

D.

not

E.

<=

F.

!=

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

A.

1

B.

5

C.

10

D.

60

Copyright © 2014-2025 Solution2Pass. All Rights Reserved