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

WGU Scripting and Programming Foundations Exam Question and Answers

WGU Scripting and Programming Foundations Exam

Last Update May 21, 2024
Total Questions : 90

We are offering FREE Scripting-and-Programming-Foundations WGU exam questions. All you do is to just go and sign up. Give your details, prepare Scripting-and-Programming-Foundations free exam questions and then go for complete pool of WGU Scripting and Programming Foundations Exam test questions that will help you more.

Scripting-and-Programming-Foundations pdf

Scripting-and-Programming-Foundations PDF

$35  $99.99
Scripting-and-Programming-Foundations Engine

Scripting-and-Programming-Foundations Testing Engine

$42  $119.99
Scripting-and-Programming-Foundations PDF + Engine

Scripting-and-Programming-Foundations PDF + Testing Engine

$56  $159.99
Questions 1

Which kind of language is HTML?

Options:

A.  

Markup

B.  

Object-oriented

C.  

Statically typed

D.  

Dynamically typed

Discussion 0
Questions 2

What is the proper way to declare a student's grade point average throughout the term it this item is needed in several places in a program?

Options:

A.  

variable int gpa

B.  

constant float gpa

C.  

constant int gpa

D.  

variable float gpa

Discussion 0
Questions 3

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?

Options:

A.  

2 and 3

B.  

1 and 3

C.  

2 and 4

D.  

1 and 2

Discussion 0
Questions 4

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.

Discussion 0
Questions 5

Which language has extensive support for object-oriented programming?

Options:

A.  

Markup

B.  

HTML

C.  

C

D.  

C++

Discussion 0
Questions 6

The steps in an algorithm to buy a pair of shoes from a store are given in no particular order.

* Bring the shoes to the cashier

* Pay for the shoes

* Enter the store

* Select the pair of shoes

What is the first step of the algorithm?

Options:

A.  

Select the pair of shoes.

B.  

Bring the shoes to the cashier.

C.  

Enter the store

D.  

Pay for the shoes.

Discussion 0
Questions 7

A programming is developing an application that needs to manipulation text in a variety of ways. Everything the programmer needs is standard in the industry and the programmer wants to perform these manipulations with a minimal amount of code. What does the programmer need?

Options:

A.  

An algorithm

B.  

A function

C.  

A script

D.  

A programming library

Discussion 0
Questions 8

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

Discussion 0
Questions 9

Which term refers to a function that represents the number of fixed-size memory units used for an input of a given size?

Options:

A.  

Space complexity

B.  

Linear search

C.  

Computational complexity

D.  

Runtime

Discussion 0
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.

Discussion 0
Questions 11

A software engineer has written a program that uses a large number of interacting custom data types information hiding, data abstraction encapsulation polymorphism, and inheritance Variables do not need to receive their types ahead of time, and this program can run on a variety of operating systems without having to re-compile the program into machine code.

Which type of language is being used? Choose 3 terms that accurately describe the language.

Options:

A.  

Markup

B.  

Interpreted

C.  

Object-oriented

D.  

Procedural

E.  

Dynamic

F.  

Static

Discussion 0
Questions 12

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

Discussion 0
Questions 13

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

Discussion 0
Questions 14

Which characteristic distinguishes a markup language from other languages

Options:

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

Discussion 0
Questions 15

A software developer determines the mathematical operations that a calculator program should support When two waterfall approach phases are involved?

Options:

A.  

Design and Testing

B.  

Implementation and testing

C.  

Design and implementation

D.  

Analysis and design

Discussion 0
Questions 16

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

Options:

A.  

5.0

B.  

6.0

C.  

6.1

D.  

8.4

Discussion 0
Questions 17

A program allows the user to play a game. At the end of each game, the program asks the user if they want to play again.

Which programming structure on its own is appropriate to accomplish this task?

Options:

A.  

Nested for loops

B.  

One for loop

C.  

One while loop

D.  

If-else statement

Discussion 0
Questions 18

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.

Discussion 0
Questions 19

What is an argument?

Options:

A.  

A piece of information provided in a function call

B.  

A declared piece of information within a function

C.  

A piece of information assigned to a function's output

D.  

An input named in the definition of a function

Discussion 0
Questions 20

Which operation should be used to check if the difference of two values is greater than 1?

Options:

A.  

Multiplication

B.  

Subtraction

C.  

Addition

D.  

Division

Discussion 0
Questions 21

Which phase of an agile application would create a function that calculates shipping costs based on an item’s weight and delivery zip code?

Options:

A.  

Implementation

B.  

Analysis

C.  

Design

D.  

Testing

Discussion 0
Questions 22

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

Discussion 0
Questions 23

A sample function is shown.

Y = -2 ‘’ x - 2

What is returned for f(-1)?

Options:

A.  

-3

B.  

0

C.  

2

D.  

6

Discussion 0
Questions 24

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

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

Discussion 0
Questions 25

An algorithm should output ‘’OK’’ if a number is between 98.3 and 98.9, else the output is ‘’Net OK’’

Which test is a valid test of the algorithm?

Options:

A.  

Input 99.9. Ensure output is M98 9 "

B.  

Input 98.6. Ensure output is "OK "

C.  

Input 99.9. Ensure output is "OK"

D.  

Input 98.6. Ensure output is "Not OK ‘’

Discussion 0
Questions 26

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

Discussion 0