11.11 Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Scripting-and-Programming-Foundations WGU Scripting and Programming Foundations Exam Questions and Answers

Questions 4

What is an advantage of using a programming library?

Options:

A.

There is improved programmer productivity.

B.

Static program elements are visualized.

C.

There are more statements in a user’s main function

D.

Programs need not run to yield results.

Buy Now
Questions 5

Which characteristic distinguishes an object-oriented language from other languages?

Options:

A.

It includes custom variable types with methods, information hiding, data abstraction, encapsulation, polymorphism, and inheritance.

B.

It is extremely portable and can be run on any machine that has a program than can read the code.

C.

It has variables that never change type during execution

D.

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

Buy Now
Questions 6

The steps in an algorithm to find the maximum of integers a and b are given.

Scripting-and-Programming-Foundations Question 6

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

Options:

A.

2 and 4

B.

2 and 3

C.

1 and 2

D.

1 and 3

Buy Now
Questions 7

Consider the given function.

Scripting-and-Programming-Foundations Question 7

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

Options:

A.

sign and horse sign and horse

B.

sign and horse sign and horse

C.

sign and horse sign and horse

D.

sign and horse and sign and horse

Buy Now
Questions 8

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

Buy Now
Questions 9

Which action occurs the design phase of an agile process?

Options:

A.

Wring the required objects

B.

Deciding on the scope of the program

C.

Determining the goals of the project.

D.

Determining the functions that need to be written

Buy Now
Questions 10

Which three statements describe a characteristic of a programming library?

Options:

A.

A library typically must be included before any function in the library is used

B.

A single library normally includes more than one function.

C.

Using libraries will always make a program run less efficiently.

D.

Libraries improve a programmer's productivity.

E.

A single program can only include one library.

F.

One library will contain one function but can have several variables.

Buy Now
Questions 11

What is a characteristic of an interpreted language?

Options:

A.

Is restricted to running on one machine

B.

Generates syntax errors during compilation

C.

Can be run by a user one statement at a time

D.

Has a programmer writing machine code

Buy Now
Questions 12

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.

Buy Now
Questions 13

A programming loam is using the waterfall design approach to create an application. Which deliverable would be produced during the design phase?

Options:

A.

A report of customer satisfaction

B.

A list of additional features to be added during revision

C.

A written description of the goals for the project

D.

The programming paradigm to be used

Buy Now
Questions 14

What is the purpose of an activity diagram, such as the following diagram?

Scripting-and-Programming-Foundations Question 14

Options:

A.

Describes the execution flow of the PrintPositive activity

B.

Specifics the program’s components that must be present

C.

Visualizes the program's data values

D.

Specifies the program's behavioral requirements

Buy Now
Questions 15

A team of programmers describes the objects and functions in a program that compresses files before splitting the objects.

Which two waterfall approach phases are involved?

Options:

A.

Analysis and implementation

B.

Design and testing

C.

Implementation and testing

D.

Design and implementation

Buy Now
Questions 16

A programmer receives requirements from customers and deciders 1o build a first version of a program.

Which phase of an agile approach is being carried out when trio programmer starts writing the program's first version?

Options:

A.

Testing

B.

Implementation

C.

Analysis

D.

Design

Buy Now
Questions 17

What is an example of an algorithm?

Options:

A.

The list contains apples bananas, and oranges

B.

A webpage uses an HTML file type

C.

The sign of two integers determines the sign of the product

D.

Unplug the device, wait 30 seconds, and restart the device.

Buy Now
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

Buy Now
Questions 19

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

Buy Now
Questions 20

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.

Buy Now
Questions 21

What is required for all function calls?

Options:

A.

Parameters

B.

Input arguments

C.

Output values

D.

Function name

Buy Now
Questions 22

A program adds a service fee to the total cost of concert tickets when the tickets are printed and mailed to customers. Another service fee is also added if the

Options:

A.

Multiple if statements

B.

If statement

C.

While loop

D.

Do-while loop

Buy Now
Questions 23

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

Scripting-and-Programming-Foundations Question 23

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.

Buy Now
Questions 24

A programmer is writing a simu-lation for a physical experiment. Which phase of the agile approach is being carried writing new procedural code and eliminating certain function calls?

Options:

A.

Testing

B.

Design

C.

Implementation

D.

Analysis

Buy Now
Questions 25

What is put to output by the following flowchart, if the input is 305?

Scripting-and-Programming-Foundations Question 25

Options:

A.

Backlog

B.

Interview

C.

Return

D.

interviewBacking

Buy Now
Questions 26

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

Options:

A.

/

B.

$

C.

| |

D.

+

Buy Now
Exam Name: WGU Scripting and Programming Foundations Exam
Last Update: Nov 7, 2024
Questions: 90

PDF + Testing Engine

$56  $159.99

Testing Engine

$42  $119.99
buy now Scripting-and-Programming-Foundations testing engine

PDF (Q&A)

$35  $99.99
buy now Scripting-and-Programming-Foundations pdf