Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

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

Exam Scripting-and-Programming-Foundations All Questions
Exam Scripting-and-Programming-Foundations Premium Access

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

Viewing page 5 out of 5 pages
Viewing questions 41-50 out of questions
Questions # 41:

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

Options:

A.

Integer

B.

String

C.

Float

D.

Boolean

Expert Solution
Questions # 42:

One requirement for the language of a project is that it is based on a series of cells. Which type of language is characterized in this way?

Options:

A.

Functional

B.

Static

C.

Markup

D.

Compiled

Expert Solution
Questions # 43:

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.

Expert Solution
Questions # 44:

It is given that integer x=41 and integer y = 16. What is the value of the expression (x % 8) - y?

Options:

A.

-15

B.

-11

C.

-8

D.

1

Expert Solution
Questions # 45:

A particular sorting algorithm takes integer list [10, 6, 8] and incorrectly sorts the list to [6, 10, 8]. What is true about the algorithm’s correctness for sorting an arbitrary list of three integers?

Options:

A.

The algorithm is incorrect.

B.

The algorithm only works for [10, 6, 8].

C.

The algorithm’s correctness is unknown.

D.

The algorithm is correct.

Expert Solution
Questions # 46:

A sample function is shown:

Question # 46

What is returned for F (3)?

Options:

A.

12

B.

4

C.

-20

D.

-5

Expert Solution
Questions # 47:

Which value would require an integer as a data type?

Options:

A.

The cost of a dinner including tax and tip.

B.

An approximation of the number pi to five decimal places.

C.

The weights of every patient involved in a pharmaceutical trial.

D.

The number of students in a section.

Expert Solution
Questions # 48:

What is an argument?

Options:

A.

A piece of information provided in a function call

B.

A declared piece of information within a function

C.

A piece of information assigned to a function's output

D.

An input named in the definition of a function

Expert Solution
Questions # 49:

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

Expert Solution
Questions # 50:

The steps in an algorithm to build a picnic table are given:

    Measure and mark the lumber cuts that need to be made.

    Buy the needed materials.

    Determine the needed materials.

    Cut the lumber to the proper dimensions.

    Assemble the pieces and paint.Which two steps of the algorithm should be switched to make the algorithm successful?

Options:

A.

1 and 3

B.

1 and 2

C.

2 and 3

D.

2 and 4

Expert Solution
Viewing page 5 out of 5 pages
Viewing questions 41-50 out of questions