100% SCORE
Score 76/ 76
WGU D278 – Scripting and Programming Foundations (2025/2026) |
Complete Objective Assessment |76 Questions and Answers
1. What is the primary goal of the Planning and Analysis phase in the software
development life cycle (SDLC)?
To write and debug code.
To define the project scope and gather requirements.
To deploy the software to users.
To test the software for bugs.
2. Which of the following is a characteristic of a valid identifier in programming?
It must start with a letter or underscore.
It can only consist of numbers.
It must be a single word without any special characters.
It can contain spaces.
3. Describe how an index is utilized in data structures like arrays.
An index is a method for defining functions in programming.
An index is a way to compile code into machine language.
An index is used to access specific elements within an array by
indicating their position.
An index is a type of control structure that manages program flow.
4. Describe how objects contribute to the principles of object-oriented
programming.
Objects are used solely for storing data without behavior.
WGU D278 – Scripting and Programming Foundations 1/22
(2025/2026) | Complete Objective Assessment Material with
76 Questions and Answers
,11/27/25, 8:17 PM WGU Scripting and Programming OA
Objects simplify the process of writing procedural code.
Objects eliminate the need for functions in programming.
Objects allow for encapsulation, inheritance, and polymorphism,
which are fundamental to object-oriented programming.
5. What is the definition of a programming expression?
A programming expression is a type of data structure used in
programming.
A programming expression is a combination of variables, operators,
and values that produces a result.
A programming expression is a graphical representation of a
program's logic.
A programming expression is a sequence of commands executed by a
program.
6. How does a computer represent data?
In the form of -1's and 0's.
Exactly as the data is written.
As a series of numbers ranging from 0-9.
In the form of 0's and 1's.
7. Expressions are _________
The fundamental means of specifying computations in a
programming language
Limited in scope
The same as programming statement
WGU D278 – Scripting and Programming Foundations 2/22
(2025/2026) | Complete Objective Assessment Material with
76 Questions and Answers
, 11/27/25, 8:17 PM WGU Scripting and Programming OA
Evaluated left to right
8. What is the first phase of the Software Development Life Cycle (SDLC)?
Planning
Testing
Deployment
Maintenance
9. Describe the role of arithmetic operators in programming and provide an
example.
Arithmetic operators are used to create functions.
Arithmetic operators are used to control the flow of a program.
Arithmetic operators perform mathematical calculations on numeric
values, such as addition, subtraction, multiplication, and division.
Arithmetic operators define the structure of a program.
10. What is a key characteristic that distinguishes a do/while loop from a while
loop?
A while loop executes at least once before the condition is tested.
A do/while loop executes at least once before the condition is
tested.
A do/while loop cannot contain multiple conditions.
Both loops execute the condition before any iteration.
11. List the three main logical operators commonly used in programming.
True, False, Null
WGU D278 – Scripting and Programming Foundations 3/22
(2025/2026) | Complete Objective Assessment Material with
76 Questions and Answers