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 2 out of 5 pages
Viewing questions 11-20 out of questions
Questions # 11:

What is an advantage of using a programming library?

Options:

A.

There is improved programmer productivity.

B.

Static program elements are visualized.

C.

There are more statements in a user’s main function

D.

Programs need not run to yield results.

Expert Solution
Questions # 12:

Which term refers to a function that represents the number of fixed-size memory units used for an input of a given size?

Options:

A.

Space complexity

B.

Linear search

C.

Computational complexity

D.

Runtime

Expert Solution
Questions # 13:

A programming is developing an application that needs to manipulation text in a variety of ways. Everything the programmer needs is standard in the industry and the programmer wants to perform these manipulations with a minimal amount of code. What does the programmer need?

Options:

A.

An algorithm

B.

A function

C.

A script

D.

A programming library

Expert Solution
Questions # 14:

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

Options:

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

Expert Solution
Questions # 15:

Which problem is solved by Dijkstra’s shortest path algorithm?

Options:

A.

Given an increasing array of numbers, is the number 19 in the array?

B.

Given an alphabetized list of race entrants and a person’s name, is the person entered in the race?

C.

Given two newspaper articles, what is the greatest sequence of words shared by both articles?

D.

Given the coordinates of five positions, what is the most fuel-efficient flight path?

Expert Solution
Questions # 16:

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

Question # 16

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

Expert Solution
Questions # 17:

A particular sorting takes integer list 10,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 only works for 10,6, 8

B.

The algorithm is correct

C.

The algorithm's correctness is unknown

D.

The algorithm is incorrect

Expert Solution
Questions # 18:

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

Options:

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.

Expert Solution
Questions # 19:

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

Expert Solution
Questions # 20:

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)

Expert Solution
Viewing page 2 out of 5 pages
Viewing questions 11-20 out of questions