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

Scripting-and-Programming-Foundations Exam Dumps - WGU Scripting and Programming Foundations Exam

Go to page:
Question # 25

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

A.

5.0

B.

6.0

C.

6.1

D.

8.4

Full Access
Question # 26

Which three statements describe a characteristic of a programming library?

A.

A library typically must be included before any function in the library is used

B.

A single library normally includes more than one function.

C.

Using libraries will always make a program run less efficiently.

D.

Libraries improve a programmer's productivity.

E.

A single program can only include one library.

F.

One library will contain one function but can have several variables.

Full Access
Question # 27

Which two operators can be used for checking divisibility of a number?

Choose 2 answers.

A.

^

B.

*

C.

+

D.

$

E.

/

F.

%

Full Access
Question # 28

What is one characteristic of an object-oriented language that is not a characteristic of a procedural or functional language?

A.

The language is based on the concept of modular programming and the calling of a subroutine.

B.

The language is optimized for recursive programming.

C.

The language supports decomposing a program into objects that interact with one another.

D.

The language treats programs as evaluating mathematical functions.

Full Access
Question # 29

A program calculates the average miles per gallon given miles traveled and gas consumed. How should the item that holds the miles per gallon be declared?

A.

Variable float milesTraveled

B.

Constant float milesPerGallon

C.

Constant float milesTraveled

D.

Variable float milesPerGallon

Full Access
Question # 30

An algorithm should output "OK" if a number is between 98.3 and 98.9, else the output is "Not OK." Which test is a valid test of the algorithm?

A.

Input 98.6. Ensure output is "Not OK."

B.

Input 98.6. Ensure output is "OK."

C.

Input 99.9. Ensure output is "OK."

D.

Input 99.9. Ensure output is "98.9."

Full Access
Question # 31

Consider the given function:

function K(string s1, string s2)

Put s1 to output

Put " and " to output

Put s2 to output

What is the total output when K("sign", "horse") is called 2 times?

A.

sign and horse and sign and horse

B.

sign and horsesign and horse

C.

sign and horse

D.

sign and horse

E.

sign and horse sign and horse

Full Access
Question # 32

A programming team is using the Waterfall design approach to create an application. Which deliverable would be produced during the design phase?

A.

The programming paradigm to be used

B.

A list of additional features to be added during revision

C.

A report of customer satisfaction

D.

A written description of the goals for the project

Full Access
Go to page: