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

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

Question # 4

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

Buy Now
Question # 5

Which value would require an integer as a data type?

Options:

A.

The number of students in a section

B.

The cost of a dinner including tax and tip

C.

The weights of every patient involved in a pharmaceutical

D.

An approximation of the number pi to five decimal places

Buy Now
Question # 6

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

Options:

A.

variable int gpa

B.

constant float gpa

C.

constant int gpa

D.

variable float gpa

Buy Now
Question # 7

One requirement for the language of a protect is that it is based on a series of method calls.

When type of language is characterized in this way?

Options:

A.

Static

B.

Compiled

C.

Functional

D.

Markup

Buy Now
Question # 8

A sequence diagram is shown:

What is the purpose of a sequence diagram?

Options:

A.

It depicts program operations, branches, and loops.

B.

It outlines the needed computations.

C.

It illustrates the communication steps for a particular software scenario.

D.

It outlines the potential actions of a user

Buy Now
Question # 9

A program calculates the average miles per gallon given miles traveled and gas consumed

How should the item that holds me miles per gallon be declared?

Options:

A.

Constant float milesTraveled

B.

Variable float milesPerGallon

C.

Variable float milesTraveled

D.

Constant float milesPerGallon

Buy Now
Question # 10

What is the purpose of an activity diagram, such as the following diagram?

Options:

A.

Describes the execution flow of the PrintPositive activity

B.

Specifics the program’s components that must be present

C.

Visualizes the program's data values

D.

Specifies the program's behavioral requirements

Buy Now
Question # 11

Which action occurs during the design phase of an Agile process?

Options:

A.

Determining the functions that need to be written

B.

Determining the goals of the project

C.

Writing the required objects

D.

Deciding on the name of the program

Buy Now
Question # 12

Which data type should be used to hold the value of a person's body temperature in Fahrenheit

Options:

A.

Boolean

B.

Integer

C.

String

D.

Float

Buy Now
Question # 13

A sample function is shown.

Y = -2 ‘’ x - 2

What is returned for f(-1)?

Options:

A.

-3

B.

0

C.

2

D.

6

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

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

Scripting-and-Programming-Foundations Testing Engine

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

Scripting-and-Programming-Foundations PDF + Testing Engine

$47.25  $134.99