Summer Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dealsixty

Scripting-and-Programming-Foundations Exam Dumps - WGU NDE Questions and Answers

Question # 24

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 an alphabetized list of race entrants and a person’s name, is the person entered in the race?

C.

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

D.

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

Buy Now
Question # 25

What is the proper way to declare a student’s grade point average throughout the term if this item is needed in several places in a program?

Options:

A.

Variable float gpa

B.

Constant float gpa

C.

Variable int gpa

D.

Constant int gpa

Buy Now
Question # 26

What is an accurate way to describe a statically typed language?

Options:

A.

It uses methods that that produce consistent output based upon the arguments passed to those methods.

B.

It includes custom variable types with methods, information hiding, data abstraction, encapsulation, polymorphism, and inheritance.

C.

It is based on the concept of modularization and calling procedures or subroutines.

D.

It requires a large number of variables and variable conversions because of the need to commit to a variable type throughout the life of the program.

Buy Now
Question # 27

What are two example of valid function calls?

Choose 2 answers.

Options:

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)

Buy Now
Question # 28

A software team has been commissioned to create an animation application. Which event takes place during the analysis phase in the Agile approach?

Options:

A.

Deciding that new capabilities in the animation application will be written as functions without the need for any new objects

B.

Sending the application to customers for additional evaluation after new features are added

C.

Deciding to add five new capabilities to the animation application based on customer feedback

D.

Writing the code for five new capabilities

Buy Now
Question # 29

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

Options:

A.

if userInput = pwd

B.

h = h + 1

C.

(userInput != pwd) and (h <= 10)

D.

integer h = 0

Buy Now
Question # 30

What does the following algorithm determine?

if x < 0

a = 1

else if x = 0

a = 2

else

a = 3

Options:

A.

Whether x is odd

B.

Whether x is evenly divisible by 2 or 3

C.

Whether x is negative, 0, or positive

D.

Whether x is even

Buy Now
Question # 31

What is the outcome for the given algorithm? Round to the nearest tenth, if necessary.

Options:

A.

5.0

B.

6.0

C.

6.1

D.

8.4

Buy Now
Question # 32

A programmer has been hired to create an inventory system for the books in a library. What is the waterfall phase in which waterfall outlining all the functions that need to be written to support the inventory system?

Options:

A.

Implementation

B.

Testing

C.

Analysis

D.

Design

Buy Now
Question # 33

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?

Options:

A.

Even

B.

1

C.

0

D.

N

Buy Now
Exam Name: WGU Scripting and Programming Foundations Exam
Last Update: Apr 21, 2025
Questions: 138
Scripting-and-Programming-Foundations pdf

Scripting-and-Programming-Foundations PDF

$34  $84.99
Scripting-and-Programming-Foundations Engine

Scripting-and-Programming-Foundations Testing Engine

$38  $94.99
Scripting-and-Programming-Foundations PDF + Engine

Scripting-and-Programming-Foundations PDF + Testing Engine

$54  $134.99