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

What is the loop variable update statement in the following code?

A.

Put j to output

B.

Integer j = -1

C.

J < 24

D.

J = j + 3

A software team has been commissioned to create an animation application. Which event takes place during the analysis phase in the agile approach?

A.

Sending the application to customers for additional evaluation after new features are added

B.

Deciding to add five new capabilities to the animation application based on customer feedback

C.

Writing the code for five new capabilities

D.

Deciding that new capabilities in the animation application will be written as functions without the needs of any new objects

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

A.

C only

B.

F only

C.

F and C

D.

F and 32

It is given that integer x = 41 and integer y = 16. What is the value of the expression (x % y)?

A.

-15

B.

-11

C.

-8

D.

9

A program steps through an array and adds up all the numbers stored in the array. What is the appropriate individual control structure that should be used?

A.

One while loop

B.

Nested for loops

C.

Multiple if statements

D.

One for loop

What are two example of valid function calls?

Choose 2 answers.

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)

A team of programmers describes the objects and functions in a program that compresses files before splitting the objects. Which Waterfall approach phases are involved?

A.

Analysis and implementation

B.

Design and implementation

C.

Implementation and testing

D.

Design and testing

Which language has extensive support for object-oriented programming?

A.

Markup

B.

HTML

C.

C

D.

C++

What does a function definition consist of?

A.

The function's argument values

B.

An invocation of a function's name

C.

A list of all other functions that call the function

D.

The function's name, inputs, outputs, and statements

What is a feature of CM as a programming language

A.

The code must be compiled into machine code in the form of an executable file before execution.

B.

The program usually runs slower than an interpreted language.

C.

The code runs directly one statement at a time by another program called a compiler

D.

The code does not require being translated into machine code but can be run by a separate program called a compiler.