Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free WGU Scripting-and-Programming-Foundations Practice Exam with Questions & Answers | Set: 2

Questions 11

What is one task that could be accomplish using a while loop?

Options:
A.

After inputting two numbers, the program prints out the larger of the two

B.

A user is asked to enter a password repeatedly until either a correct password is entered or five incorrect attempts have been made.

C.

When the user Inputs a number, the program outputs "True" when the number Is a multiple of 10

D.

The user inputs an integer, and the program prints out whether the number is even or odd and whether the number Is positive, negative, or zero.

WGU Scripting-and-Programming-Foundations Premium Access
Questions 12

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

Options:
A.

Equality and arithmetic

B.

Assignment and arithmetic

C.

Equality and logical

D.

Logical and arithmetic

Questions 13

What is a feature of CM as a programming language

Options:
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.

Questions 14

Which output results from the given algorithm?

Scripting-and-Programming-Foundations Question 14

Options:
A.

1

B.

5

C.

10

D.

60

Questions 15

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

Options:
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

Questions 16

A programmer is writing code using C. Which paradigm could the programmer be using?

Options:
A.

A procedural paradigm using dynamic types

B.

A procedural paradigm using sialic types

C.

A functional paradigm using dynamic types

D.

An event-driven paradigm using static types

Questions 17

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

Options:
A.

-15

B.

-11

C.

-8

D.

1

Questions 18

What is the outcome for the given algorithm? Round to the nearest tenth, if necessary.

Scripting-and-Programming-Foundations Question 18

Options:
A.

5.0

B.

6.0

C.

6.1

D.

8.4

Questions 19

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

Options:
A.

Markup

B.

Compiled

C.

Interpreted

D.

Machine code

Questions 20

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

Options:
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.