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 # 17

A sample function is shown:

What is returned for F (3)?

A.

12

B.

4

C.

-20

D.

-5

Full Access
Question # 18

The steps in an algorithm to calculate the positive difference in two given values, x and y, are given in no particular order:

What is the first step of the algorithm?

A.

Set Diff = x - y

B.

Put Diff to output

C.

Deduce variable Diff

D.

If y > x, set Diff = y - x.

Full Access
Question # 19

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

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.

Full Access
Question # 20

An algorithm should output ‘’OK’’ if a number is between 98.3 and 98.9, else the output is ‘’Net OK’’

Which test is a valid test of the algorithm?

A.

Input 99.9. Ensure output is M98 9 "

B.

Input 98.6. Ensure output is "OK "

C.

Input 99.9. Ensure output is "OK"

D.

Input 98.6. Ensure output is "Not OK ‘’

Full Access
Question # 21

Which expression has a values equal to the rightmost digit of the integer q = 16222?

A.

Q / 100000

B.

10 % q

C.

Q % 10

D.

Q % 10000````````````````````

Full Access
Question # 22

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

A.

Boolean

B.

Integer

C.

String

D.

Float

Full Access
Question # 23

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

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.

Full Access
Question # 24

Which characteristic specifically describes an object-oriented language?

A.

Supports creating programs as a set of functions

B.

Requires a compiler to convert to machine code

C.

Can be run on any machine that has an interpreter

D.

Supports creating program as item that have data plus operations

Full Access
Go to page: