Scripting and Programming Foundations Online Practice Questions

Home / WGU / Scripting and Programming Foundations

Latest Scripting and Programming Foundations Exam Practice Questions

The practice questions for Scripting and Programming Foundations exam was last updated on 2025-09-15 .

Viewing page 1 out of 9 pages.

Viewing questions 1 out of 49 questions.

Question#1

Oder the tasks needed to safely replace a lamp's light bulb from first (1) to last (4).
Select your answer from the pull down list.


A. 

Explanation:



Safety and proper procedure are paramount when replacing a light bulb to avoid any electrical hazards or injuries. First, always ensure the lamp is turned off to prevent electrical shock. Next, carefully unscrew the
broken or burnt-out bulb from the socket; it might be hot, so caution is advised. After removing the old bulb, screw in the new working bulb securely but without overtightening to avoid damaging the bulb or socket. Finally, turn the lamp on to verify that the new bulb is functioning properly.
References The answer and explanation are based on general knowledge and common safety practices for handling electrical appliances; specific documents or standards on Scripting and Programming Foundations are not applicable here.
The image displays multiple-choice options for ordering tasks needed to safely replace a lamp’s light bulb, providing an interactive learning method for understanding safety procedures in handling electrical items.

Question#2

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

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

Explanation:
In the Waterfall model, a traditional software development lifecycle (SDLC) methodology, the design phase follows the requirements phase. During the design phase, the focus is on creating a detailed specification of the system to be developed.
This includes:
Architectural Design: Outlining the overall structure of the system.
Interface Design: Defining how the software components will interact with each other and with users.
Component Level Design: Specifying the behavior of individual components.
Data Structure Design: Establishing how data is organized within the system.
The deliverable produced during this phase is a comprehensive design document that describes the architecture, components, interfaces, and data structures of the application in detail. It serves as a blueprint for the next phase of the Waterfall process, which is implementation (coding).

Question#3

Which type of language requires variables to be declared ahead of time and prohibits their types from changing while the program runs?

A. Scripted (interpreted)
B. Procedural
C. Static
D. Compiled

Explanation:
The type of language that requires variables to be declared ahead of time and prohibits their types from changing while the program runs is known as a statically typed language. In statically typed languages, the type of a variable is determined at compile-time and cannot be changed during runtime. This means that the compiler must know the exact data types of all variables used in the program, and these types must remain consistent throughout the execution of the program. Statically typed languages require developers to declare the type of each variable before using it, which can help catch type errors during the compilation process, potentially preventing runtime errors and bugs.

Question#4

What does the following algorithm determine?


A. Whether x is even
B. Whether x is evenly divisible by 2 or 3
C. Whether x is odd
D. Whether x r> negative. 0, <x positive

Explanation:
The algorithm provided in the image performs a modulo operation with 2 (x % 2) and checks if the result is 1. In programming, the modulo operation gives the remainder of the division of two numbers.
For any integer x, if x % 2 equals 1, it means that x is odd because it has a remainder of 1 when divided by 2. Even numbers, when divided by 2, have no remainder and thus would return 0 in a modulo 2 operation.

Question#5

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


A. Backlog
B. Interview
C. Return
D. interview Backing

Explanation:
The flowchart provided in the image represents a decision-making process based on the input value. Given the input of 305, we follow the flowchart’s decision paths. The first decision checks if the input is less than 200, which 305 is not, so we move to the next decision point. The second decision asks if the input is greater than

Exam Code: Scripting and Programming FoundationsQ & A: 138 Q&AsUpdated:  2025-09-15

 Get All Scripting and Programming Foundations Q&As