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

NDE Changed Scripting-and-Programming-Foundations Questions

WGU Scripting and Programming Foundations Exam Questions and Answers

Question 25

An example of an behavioral diagram is shown.

What is generally visualized with a behavioral diagram"?

Options:

A.

Quality control mechanisms

B.

Relative sizes of program components

C.

Operating system compatibility

D.

The dynamic flow of software

Question 26

A function should determine the average of x and y.

What should be the function's parameters and return value(s)?

Options:

A.

Parameters: x, y. averageReturn value: none

B.

Parameters: averageReturn values: x, y

C.

Parameters: nonsReturn values: x, y

D.

Parameters: x, yReturn value: average

Question 27

A function should determine the average of x and y. What should be the function's parameters and return value(s)?

Options:

A.

Parameters: x, y, averageReturn value: none

B.

Parameters: x, yReturn value: average

C.

Parameters: noneReturn values: x, y

D.

Parameters: averageReturn values: x, y

Question 28

What is one task that could be accomplish using a while loop?

Options:

A.

After inputting two numbers, the program prints out the larger of the two

B.

A user is asked to enter a password repeatedly until either a correct password is entered or five incorrect attempts have been made.

C.

When the user Inputs a number, the program outputs "True" when the number Is a multiple of 10

D.

The user inputs an integer, and the program prints out whether the number is even or odd and whether the number Is positive, negative, or zero.