WGU D278 - SCRIPTING AND PROGRAMMING
FOUNDATIONS | FINAL EXAM REVIEW | ACTUAL
QUESTIONS AND ANSWERS (A+ GUIDE SOLUTION)
Core Domains
1. Programming Fundamentals and Logic
2. Data Types, Variables, and Expressions
3. Control Structures and Algorithms
4. Functions, Modules, and Error Handling
5. Object-Oriented Programming and Data Structures
6. Software Development Lifecycle and Methodologies
7. Programming Languages and Paradigms
8. Debugging and Testing Techniques
Introduction
This comprehensive final exam review assesses mastery of scripting and
programming foundations for WGU D278. The examination evaluates
programming fundamentals, data types, control structures, functions, object-
oriented programming, data structures, algorithms, and software development
methodologies. Questions are structured in multiple-choice and scenario-based
formats to simulate real-world programming decision-making. Emphasis is placed
on applying theoretical knowledge to practical coding situations, demonstrating
critical thinking, and exercising professional judgment in software development.
This assessment prepares candidates for the WGU D278 Objective Assessment.
,SECTION ONE: PROGRAMMING FUNDAMENTALS AND LOGIC
Question 1
A junior developer is writing pseudocode to calculate the total cost of items in a
shopping cart. She needs to break down the problem into smaller, manageable
steps before writing actual code. Which programming concept involves creating a
step-by-step plan or blueprint that outlines the logic and sequence of operations
before implementation?
A. Debugging
B. Algorithm Design
C. Code Compilation
D. Syntax Checking
B. Algorithm Design
RATIONALE: Algorithm Design is the process of creating a step-by-step plan or
blueprint that outlines the logic and sequence of operations to solve a problem.
Debugging identifies and fixes errors in existing code, while compilation translates
source code into machine code. Syntax checking verifies that code follows
language rules.
Question 2
A student is learning about how computers process information and encounters
the term that describes the fundamental building blocks of digital data
represented as either 0 or 1. Which binary digit serves as the smallest unit of data
in computing and forms the basis of all digital information?
A. Byte
B. Bit
C. Nibble
D. Word
, B. Bit
RATIONALE: A Bit (binary digit) is the smallest unit of data in computing,
representing either 0 or 1. A byte consists of 8 bits, a nibble is 4 bits, and a word is
a fixed-size group of bits that varies by processor architecture.
Question 3
A software team is documenting a new inventory management system. They need
to create visual representations showing how data flows between modules, how
users interact with the system, and how processes are sequenced. Which type of
diagram uses standardized symbols to represent processes, decisions, and data
flow in a program?
A. UML Class Diagram
B. Flowchart
C. Entity-Relationship Diagram
D. Network Topology Diagram
B. Flowchart
RATIONALE: A Flowchart uses standardized symbols to represent the
sequence of operations, decisions, and data flow in a program or process. UML
class diagrams show object-oriented structure, while entity-relationship diagrams
model database relationships.
Question 4
A developer is analyzing a payroll calculation program and notices that the gross
pay is computed by multiplying hours worked by hourly rate, then deducting
taxes based on tax brackets, and finally adding any overtime bonuses. Which
programming concept describes the transformation of input data through a series
of defined operations to produce output?
, A. Data Abstraction
B. Input-Process-Output (IPO) Model
C. Polymorphism
D. Encapsulation
B. Input-Process-Output (IPO) Model
RATIONALE: The Input-Process-Output (IPO) Model describes how programs
receive input, process it through defined operations, and produce output. Data
abstraction hides implementation details, while polymorphism and encapsulation
are object-oriented concepts.
Question 5
A computer science instructor explains that before a program written in Python
can execute, the source code must be translated into instructions the computer's
processor can understand. Which process converts high-level programming
language code into machine-readable form?
A. Interpretation
B. Compilation
C. Assembly
D. Linking
B. Compilation
RATIONALE: Compilation is the process of converting high-level programming
language code into machine code that the computer's processor can execute
directly. Interpretation executes code line by line without producing a machine
code file. Assembly converts assembly language to machine code. Linking
combines object files into an executable.
Question 6
FOUNDATIONS | FINAL EXAM REVIEW | ACTUAL
QUESTIONS AND ANSWERS (A+ GUIDE SOLUTION)
Core Domains
1. Programming Fundamentals and Logic
2. Data Types, Variables, and Expressions
3. Control Structures and Algorithms
4. Functions, Modules, and Error Handling
5. Object-Oriented Programming and Data Structures
6. Software Development Lifecycle and Methodologies
7. Programming Languages and Paradigms
8. Debugging and Testing Techniques
Introduction
This comprehensive final exam review assesses mastery of scripting and
programming foundations for WGU D278. The examination evaluates
programming fundamentals, data types, control structures, functions, object-
oriented programming, data structures, algorithms, and software development
methodologies. Questions are structured in multiple-choice and scenario-based
formats to simulate real-world programming decision-making. Emphasis is placed
on applying theoretical knowledge to practical coding situations, demonstrating
critical thinking, and exercising professional judgment in software development.
This assessment prepares candidates for the WGU D278 Objective Assessment.
,SECTION ONE: PROGRAMMING FUNDAMENTALS AND LOGIC
Question 1
A junior developer is writing pseudocode to calculate the total cost of items in a
shopping cart. She needs to break down the problem into smaller, manageable
steps before writing actual code. Which programming concept involves creating a
step-by-step plan or blueprint that outlines the logic and sequence of operations
before implementation?
A. Debugging
B. Algorithm Design
C. Code Compilation
D. Syntax Checking
B. Algorithm Design
RATIONALE: Algorithm Design is the process of creating a step-by-step plan or
blueprint that outlines the logic and sequence of operations to solve a problem.
Debugging identifies and fixes errors in existing code, while compilation translates
source code into machine code. Syntax checking verifies that code follows
language rules.
Question 2
A student is learning about how computers process information and encounters
the term that describes the fundamental building blocks of digital data
represented as either 0 or 1. Which binary digit serves as the smallest unit of data
in computing and forms the basis of all digital information?
A. Byte
B. Bit
C. Nibble
D. Word
, B. Bit
RATIONALE: A Bit (binary digit) is the smallest unit of data in computing,
representing either 0 or 1. A byte consists of 8 bits, a nibble is 4 bits, and a word is
a fixed-size group of bits that varies by processor architecture.
Question 3
A software team is documenting a new inventory management system. They need
to create visual representations showing how data flows between modules, how
users interact with the system, and how processes are sequenced. Which type of
diagram uses standardized symbols to represent processes, decisions, and data
flow in a program?
A. UML Class Diagram
B. Flowchart
C. Entity-Relationship Diagram
D. Network Topology Diagram
B. Flowchart
RATIONALE: A Flowchart uses standardized symbols to represent the
sequence of operations, decisions, and data flow in a program or process. UML
class diagrams show object-oriented structure, while entity-relationship diagrams
model database relationships.
Question 4
A developer is analyzing a payroll calculation program and notices that the gross
pay is computed by multiplying hours worked by hourly rate, then deducting
taxes based on tax brackets, and finally adding any overtime bonuses. Which
programming concept describes the transformation of input data through a series
of defined operations to produce output?
, A. Data Abstraction
B. Input-Process-Output (IPO) Model
C. Polymorphism
D. Encapsulation
B. Input-Process-Output (IPO) Model
RATIONALE: The Input-Process-Output (IPO) Model describes how programs
receive input, process it through defined operations, and produce output. Data
abstraction hides implementation details, while polymorphism and encapsulation
are object-oriented concepts.
Question 5
A computer science instructor explains that before a program written in Python
can execute, the source code must be translated into instructions the computer's
processor can understand. Which process converts high-level programming
language code into machine-readable form?
A. Interpretation
B. Compilation
C. Assembly
D. Linking
B. Compilation
RATIONALE: Compilation is the process of converting high-level programming
language code into machine code that the computer's processor can execute
directly. Interpretation executes code line by line without producing a machine
code file. Assembly converts assembly language to machine code. Linking
combines object files into an executable.
Question 6