Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dcdisc65

Page: 1 / 5
Total 41 questions
Exam Code: Scripting-and-Programming-Foundations                Update: Oct 16, 2025
Exam Name: WGU Scripting and Programming Foundations Exam

WGU WGU Scripting and Programming Foundations Exam Scripting-and-Programming-Foundations Exam Dumps: Updated Questions & Answers (October 2025)

Question # 1

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?

A.

The algorithm only works for 10,6, 8

B.

The algorithm is correct

C.

The algorithm's correctness is unknown

D.

The algorithm is incorrect

Question # 2

Which expression evaluates to 14 if integer y = 13?

A.

11 + y % 5

B.

11 - y / 5.0

C.

(11 + y) % 5

D.

11.0 - y / 5

Question # 3

A function determines the least common multiple (LCM) of two positive integers (a and b). What should be the input to the function?

A.

L only

B.

a * b

C.

a and L

D.

a and b

Question # 4

A team of programmers describes the objects and functions in a program that compresses files before splitting the objects.

Which two waterfall approach phases are involved?

A.

Analysis and implementation

B.

Design and testing

C.

Implementation and testing

D.

Design and implementation

Question # 5

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.

Question # 6

Which operation should be used to check if the difference of two values is greater than 1?

A.

Multiplication

B.

Subtraction

C.

Addition

D.

Division

Question # 7

What are two example of valid function calls?

Choose 2 answers.

A.

round_number(4.723, 2)

B.

convort_value(12) returns cVa1

C.

Printsample()

D.

CountFactors(96 integer)

E.

function Sample (float 2.0)

F.

GetHeight(integer 3, integer 4)

Question # 8

Which two types of operators are found in the code snippet not (g != S)?

A.

Equality and arithmetic

B.

Assignment and arithmetic

C.

Equality and logical

D.

Logical and arithmetic

Question # 9

Which output results from the following pseudocode?

x = 5

do

x = x + 4

while x < 18

Put x to output

A.

9

B.

18

C.

21

D.

25

Question # 10

What is the output of the given flowchart if the input is 54?

A.

55

B.

56

C.

58

D.

60

Page: 1 / 5
Total 41 questions

Most Popular Certification Exams

Payment

       

Contact us

dumpscollection live chat

Site Secure

mcafee secure

TESTED 16 Oct 2025