Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 45 pages
Exam (elaborations)

WGU D278 — SCRIPTING AND PROGRAMMING – FOUNDATIONS — STUDY GUIDE | LATEST UPDATE 2026/2027 | ACTUAL EXAM | PRACTICE QUESTIONS AND ANSWERS | EXAM REVIEW | 100% CORRECT ANSWERS | VERIFIED SOLUTIONS|PROF J.K RYIAN.

Document preview thumbnail
Preview 4 out of 45 pages

WGU D278 — SCRIPTING AND PROGRAMMING – FOUNDATIONS — STUDY GUIDE | LATEST UPDATE 2026/2027 | ACTUAL EXAM | PRACTICE QUESTIONS AND ANSWERS | EXAM REVIEW | 100% CORRECT ANSWERS | VERIFIED SOLUTIONS|PROF J.K RYIAN.

Content preview

WGU D278 — SCRIPTING AND PROGRAMMING –
FOUNDATIONS — STUDY GUIDE | LATEST UPDATE
2026/2027 | ACTUAL EXAM | PRACTICE QUESTIONS
AND ANSWERS | EXAM REVIEW | 100% CORRECT
ANSWERS | VERIFIED SOLUTIONS|PROF J.K RYIAN.
Course/Program: WGU D278 — Scripting and Programming –
Foundations
Field of Study: Programming Fundamentals, Scripting, Algorithms,
Software Development
Level: Undergraduate, Computer Science, Software Development,
Information Technology
Edition: 2026–2027
Introduction
This comprehensive practice examination is designed for WGU students
preparing for the D278 Scripting and Programming – Foundations
objective assessment. It contains 100 advanced multiple-choice
questions covering foundational programming concepts including
algorithms, pseudocode, flowcharts, variables, data types, expressions,
decision and loop structures, functions, arrays, object-oriented
programming basics, debugging, and software development principles.
Each question reflects real-world programming scenarios and current
industry practices, with detailed rationales to reinforce understanding of
core scripting and programming concepts. Use this document to assess
readiness, identify knowledge gaps, and strengthen preparation for the
2026–2027 assessment cycle. All questions are original practice items
and are not from actual WGU exams.
Table of Contents

,1. Introduction to Programming and Algorithms
2. Variables, Data Types, and Expressions
3. Decision Structures and Boolean Logic
4. Loops and Iteration
5. Functions and Modular Programming
6. Arrays and Collections
7. Object-Oriented Programming Concepts
8. Debugging and Error Handling
9. Software Development Life Cycle and Methodologies
10. Testing, Documentation, and Programming Best Practices


1.
Which of the following best defines an algorithm?
A) A programming language
B) A step-by-step procedure or set of instructions to solve a problem
C) A type of computer hardware
D) An error in a program
Correct Answer: B
An algorithm is a finite, ordered sequence of well-defined instructions
used to solve a problem or perform a computation. It is independent of
any programming language and is fundamental to programming.
2.
Which of the following is a characteristic of a good algorithm?
A) It is ambiguous and open-ended
B) It is finite, clear, and produces correct output for all valid inputs

,C) It depends on a specific programming language
D) It cannot be represented visually
Correct Answer: B
A good algorithm is unambiguous, finite, effective, and correct. It should
produce the expected output for all valid inputs and eventually
terminate. It is language-independent and can be represented using
pseudocode or flowcharts.
3.
What is pseudocode?
A) A high-level programming language
B) A textual, informal way of describing an algorithm using natural
language and programming-like statements
C) A type of flowchart
D) A compiler that translates code
Correct Answer: B
Pseudocode is a simplified, language-independent notation that uses
natural language and structured statements to describe an algorithm. It
is not executed by a computer but is used for planning and
communication.
4.
Which of the following symbols is typically used to represent a decision
in a flowchart?
A) Oval
B) Rectangle
C) Diamond
D) Parallelogram

, Correct Answer: C
In flowcharts, a diamond (or rhombus) represents a decision point
where a condition is evaluated, leading to two or more possible paths.
Ovals are start/end, rectangles are processes, parallelograms are
input/output.
5.
In a flowchart, what does a rectangle represent?
A) Start or end of a process
B) Input or output
C) A processing step or calculation
D) A decision point
Correct Answer: C
A rectangle in a flowchart represents a processing step, such as a
calculation or assignment. Ovals are start/end, parallelograms are
input/output, and diamonds are decisions.
6.
Which of the following is an example of a valid identifier in most
programming languages?
A) 2ndValue
B) total_score
C) my-value
D) class
Correct Answer: B
Identifiers usually must start with a letter or underscore, contain letters,
digits, or underscores, and not be reserved words. "total_score" follows

Document information

Uploaded on
September 3, 2026
Number of pages
45
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$18.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
highub
4.0
(1)
Sold
1
Followers
0
Items
510
Last sold
2 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions