Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the WGU Courses and Certificates Scripting-and-Programming-Foundations Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam Scripting-and-Programming-Foundations Premium Access

View all detail and faqs for the Scripting-and-Programming-Foundations exam


866 Students Passed

86% Average Score

98% Same Questions
Viewing page 4 out of 4 pages
Viewing questions 31-40 out of questions
Questions # 31:

An algorithm to calculate the positive difference in two given values, x and y, uses the steps shown.

Question # 31

What are the two steps of the algorithm that need to be switched to result in success?

Options:

A.

1 and 2

B.

2 and 4

C.

1 and 4

D.

3 and 4

Questions # 32:

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)

Questions # 33:

A program adds a service fee to the total cost of concert tickets when the tickets are printed and mailed to customers. Another service fee is also added if the

Options:

A.

Multiple if statements

B.

If statement

C.

While loop

D.

Do-while loop

Questions # 34:

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

Questions # 35:

Which expression evaluates to 3.7 if float x = 17.0?

Options:

A.

X + 2 / 10

B.

(2 + x) / 10.0

C.

X + 2.0 / 10

D.

2 + x / 10

Questions # 36:

Which expression has a value equal to the rightmost digit of the integer q = 7777?

Options:

A.

10 % q

B.

q % 10

C.

q / 10000

D.

q % 10000

Questions # 37:

Which action occurs the design phase of an agile process?

Options:

A.

Wring the required objects

B.

Deciding on the scope of the program

C.

Determining the goals of the project.

D.

Determining the functions that need to be written

Questions # 38:

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.

Questions # 39:

Which expression evaluates to 4 if integer y = 3?

Options:

A.

0 - y / 5.0

B.

(1 + y) * 5

C.

11.0 - y / 5

D.

11 + y % 5

Questions # 40:

A sample function is shown.

Y = -2 ‘’ x - 2

What is returned for f(-1)?

Options:

A.

-3

B.

0

C.

2

D.

6

Viewing page 4 out of 4 pages
Viewing questions 31-40 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.