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

Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions
Questions # 11:

A function determines the least common multiple (LCM) of two positive integers (a and b). What should be the input to the function?

Options:

A.

L only


B.

a * b


C.

a and L


D.

a and b


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:

Which kind of languages are C, C++ and Java?

Options:

A.

Markup


B.

Compiled


C.

Interpreted


D.

Machine code


Expert Solution
Questions # 14:

Which characteristic specifically describes an object-oriented language?

Options:

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


Expert Solution
Questions # 15:

The steps in an algorithm to buy a pair of shoes from a store are given in no particular order.

* Bring the shoes to the cashier

* Pay for the shoes

* Enter the store

* Select the pair of shoes

What is the first step of the algorithm?

Options:

A.

Select the pair of shoes.


B.

Bring the shoes to the cashier.


C.

Enter the store


D.

Pay for the shoes.


Expert Solution
Questions # 16:

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

Which expression evaluates to 14 if integer y = 13?

Options:

A.

11 + y % 5


B.

11 - y / 5.0


C.

(11 + y) % 5


D.

11.0 - y / 5


Expert Solution
Questions # 18:

What is output by calling Greeting() twice?

Options:

A.

Hello!


B.

Hello!!


C.

Hello!Hello!


Expert Solution
Questions # 19:

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
Questions # 20:

A software developer determines the mathematical operations that a calculator program should support. Which two Waterfall approach phases are involved?

Options:

A.

Analysis and design


B.

Design and implementation


C.

Implementation and testing


D.

Design and testing


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