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

WGU NDE Scripting-and-Programming-Foundations New Questions

WGU Scripting and Programming Foundations Exam Questions and Answers

Question 17

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

Options:

A.

L only

B.

a * b

C.

a and L

D.

a and b

Question 18

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

Options:

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?

Question 19

What is the out of the given pseudocode?

Options:

A.

6

B.

12

C.

15

D.

18

Question 20

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?

Options:

A.

2 and 3

B.

1 and 3

C.

2 and 4

D.

1 and 2