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 3 out of 4 pages
Viewing questions 21-30 out of questions
Questions # 21:

Which operator is helpful in determining if an integer is a multiple of another integer?

Options:

A.

/

B.

||

C.

+

D.

%

Questions # 22:

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.

Questions # 23:

Which two situations would be helped by using a programming library?

Options:

A.

A programmer needs to write several interacting objects for a student gradebook application, some of which need an inheritance structure.

B.

A programming student is writing code to iterate through the integers in a list and determine the maximum.

C.

A video game programmer needs to perform several animation tasks, all of which are very common in the industry. The programmer does not want to have to code each task. And they are unsure if they a even know how lo code a few of them.

D.

A programmer needs to perform a series of file compression tasks. These tasks are commonly performed by programmers, and the programmer does not want to have to code them all by hand

E.

A programmer is developing a database application that can house various types of data. The software cannot know ahead of time the data type, and so the programmer needs variables that do not require an initial declaration type.

F.

A programmer is writing a piece of mathematical code that requires the heavy use of recursive functions.

Questions # 24:

What would a string be used to store?

Options:

A.

A positive whole number

B.

The word "positive"

C.

A true/false indication of whether a number is composite

D.

A positive number between 2 and 3

Questions # 25:

Review the following sequence diagram:

Question # 25

What does a sequence diagram do?

Options:

A.

Shows interactions awl indicates an order of events

B.

Shows interactions but does not specify an order of events

C.

Shows sialic elements of software

D.

Shows an order of events but does not specify all interactions

Questions # 26:

Consider the given flowchart.

Question # 26

What is the output of the input is 7?

Options:

A.

Within 5

B.

Within 2

C.

Equal

D.

Not close

Questions # 27:

Which kind of languages are C and Java?

Options:

A.

Machine code

B.

Compiled

C.

Interpreted

D.

Markup

Questions # 28:

Which statement describes a compiled language?

Options:

A.

It is considered fairly safe because it forces the programmer lo declare all variable types ahead of time and commit to those types during runtime.

B.

It allows variables to change from the initial declared types during program execution.

C.

It specifies a series of well-structured steps to compose a program.

D.

It has code that is first converted to machine code, which can then only run on a particular type of machine.

Questions # 29:

A function should convert a Fahrenheit temperature (F) to a Celsius temperature. What should be the output from the function?

Options:

A.

C only

B.

F only

C.

F and C

D.

F and 32

Questions # 30:

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

Question # 30

What is the first step of the algorithm?

Options:

A.

Set Diff = x - y

B.

Put Diff to output

C.

Deduce variable Diff

D.

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

Viewing page 3 out of 4 pages
Viewing questions 21-30 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.