Month End Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmaspas7

Easiest Solution 2 Pass Your Certification Exams

Scripting-and-Programming-Foundations WGU Scripting and Programming Foundations Exam Free Practice Exam Questions (2025 Updated)

Prepare effectively for your WGU Scripting-and-Programming-Foundations WGU Scripting and Programming Foundations Exam certification with our extensive collection of free, high-quality practice questions. Each question is designed to mirror the actual exam format and objectives, complete with comprehensive answers and detailed explanations. Our materials are regularly updated for 2025, ensuring you have the most current resources to build confidence and succeed on your first attempt.

What is a string?

A.

A built-in method

B.

A very precise sequence of steps

C.

A sequence of characters

D.

A name that refers to a value

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

Which characteristic distinguishes a markup language from other languages

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

What is output by calling Greeting() twice?

A.

Hello!

B.

Hello!!

C.

Hello!Hello!

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

A.

Implementation

B.

Testing

C.

Analysis

D.

Design

What is one characteristic of an object-oriented language that is not a characteristic of a procedural or functional language?

A.

The language is based on the concept of modular programming and the calling of a subroutine.

B.

The language is optimized for recursive programming.

C.

The language supports decomposing a program into objects that interact with one another.

D.

The language treats programs as evaluating mathematical functions.

What is a feature of a compiled programming language?

A.

The program usually runs slower than an interpreted language.

B.

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

C.

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

D.

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

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

A.

Implementation

B.

Analysis

C.

Design

D.

Testing

Which expression evaluates to 3.7 if float x = 17.0?

A.

X + 2 / 10

B.

(2 + x) / 10.0

C.

X + 2.0 / 10

D.

2 + x / 10

Which language has extensive support for object-oriented programming?

A.

Markup

B.

HTML

C.

C

D.

C++

Which statement describes a compiled language?

A.

It is considered fairly safe because it forces the programmer lo declare all variable types ahead of time and commit to those types during runtime.

B.

It allows variables to change from the initial declared types during program execution.

C.

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

D.

It has code that is first converted to machine code, which can then only run on a particular type of machine.

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

A.

Multiplication

B.

Subtraction

C.

Addition

D.

Division

Which characteristic distinguishes a markup language from other languages?

A.

It supports decomposing programs into custom types that often combine with other variable types into more concepts.

B.

It allows variables to change type during execution.

C.

It requires fewer variables and variable conversions than other languages because the types can change during execution.

D.

It does not perform complex algorithms, but instead describes the content and formatting of webpages and other documents.

Which characteristic specifically describes an object-oriented language?

A.

Supports creating programs as items that have data plus operations.

B.

Supports creating programs as a set of functions.

C.

Requires a compiler to translate to machine code.

D.

Can be run on any machine that has an interpreter.

Which is one characteristic of an object-oriented language that is not a characteristic of a procedural or functional language?

A.

The language is optimized for recursive programming.

B.

The language is based on the concept of modular programming and the calling of a subroutine.

C.

The language treats programs as evaluating mathematical functions.

D.

The language supports decomposing a program into objects that interact with one another.

Which line is a loop variable update statement in the sample code?

integer h = 0

do

Put "What is the password?" to output

String userInput = Get next input

if userInput != pwd

Put "Incorrect." to output

h = h + 1

while (userInput != pwd) and (h <= 10)

if userInput = pwd

Put "Access granted." to output

else

Put "Access denied." to output

A.

if userInput = pwd

B.

h = h + 1

C.

(userInput != pwd) and (h <= 10)

D.

integer h = 0

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.

A.

Analysis and implementation

B.

Analysis and design

C.

Design and implementation

D.

Design and testing

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

A.

/

B.

$

C.

| |

D.

+

One requirement for the language of a project is that it is based on a series of cells. Which type of language is characterized in this way?

A.

Functional

B.

Static

C.

Markup

D.

Compiled