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

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

1) Measure and mark the lumber cuts that need to be made

2) Buy the needed materials

3) Determine the needed materials

4) Cut the lumber to the proper dimensions

5) Assemble the pieces and paint.

Which two steps of the algorithm should be switched to make the algorithm successful?

A.

2 and 3

B.

1 and 3

C.

2 and 4

D.

1 and 2

Given integer x = 12 and integer y = 4. What is the value of the expression x - y * 2?

A.

4

B.

6

C.

8

D.

14

What does the following algorithm determine?

if x < 0

a = 1

else if x = 0

a = 2

else

a = 3

A.

Whether x is odd

B.

Whether x is evenly divisible by 2 or 3

C.

Whether x is negative, 0, or positive

D.

Whether x is even

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

A.

Markup

B.

Compiled

C.

Interpreted

D.

Machine code

Which kind of language is HTML?

A.

Dynamically typed

B.

Markup

C.

Statically typed

D.

Object-oriented

A sample function is shown:

What is returned for F (3)?

A.

12

B.

4

C.

-20

D.

-5

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

A.

Testing

B.

Analysis

C.

Design

D.

Implementation

A software developer creates a list of all objects and functions that will be used in a board game application and then begins to write the code for each object. Which two phases of the Agile approach are being carried out?

A.

Analysis and design

B.

Design and implementation

C.

Analysis and implementation

D.

Design and testing

Which two operators are found in the snippet not (g != 8)?

Choose 2 answers.

A.

Equality and logical

B.

Logical and arithmetic

C.

Equality and arithmetic

D.

Assignment and arithmetic

What is output by calling Greeting() twice?

A.

Hello!

B.

Hello!!

C.

Hello!Hello!