Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

WGU Scripting-and-Programming-Foundations - WGU Scripting and Programming Foundations Exam

Which two types of operators are found in the code snippet not (g != S)?

A.

Equality and arithmetic

B.

Assignment and arithmetic

C.

Equality and logical

D.

Logical and arithmetic

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

A.

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

B.

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

C.

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

D.

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

A sequence diagram is shown:

What is the purpose of a sequence diagram?

A.

It depicts program operations, branches, and loops.

B.

It outlines the needed computations.

C.

It illustrates the communication steps for a particular software scenario.

D.

It outlines the potential actions of a user

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

A.

L only

B.

a * b

C.

a and L

D.

a and b

Which characteristic distinguishes a markup language from other languages

A.

It supports decomposing programs into custom types that often combine with other variable types into more complicated concepts.

B.

It does not perform complex algorithms, but instead describes the content and formatting of webpages and other documents.

C.

It allows variables to change type during execution

D.

It requires fewer variables and variable conversions than other languages because the types can change during execution

A programmer has been hired to create an inventory system for the books in a library. What is the waterfall phase in which waterfall outlining all the functions that need to be written to support the inventory system?

A.

Implementation

B.

Testing

C.

Analysis

D.

Design

Consider the given function:

function K(string s1, string s2)

Put s1 to output

Put " and " to output

Put s2 to output

What is the total output when K("sign", "horse") is called 2 times?

A.

sign and horse and sign and horse

B.

sign and horsesign and horse

C.

sign and horse

D.

sign and horse

E.

sign and horse sign and horse

What are two examples of equality operators?

Choose 2 answers.

A.

-

B.

==

C.

/

D.

not

E.

<=

F.

!=

What are two examples of valid function calls?

Choose 2 answers.

A.

function sample(float 2.0)

B.

GetHeight(integer 3, 4)

C.

round(4.723, 2)

D.

PrintSample()

What is an accurate way to describe a statically typed language?

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.