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 90 pages
Exam (elaborations)

WGU C173 D278 Scripting and Programming Foundations Objective Assessment Prep | 172+ Practice Questions & Verified Answers OA Guide (2026/2027)

Document preview thumbnail
Preview 4 out of 90 pages

Pass your introductory Objective Assessment on the very first try with this comprehensive 172-question practice exam engineered specifically for WGU C173 and D278 modules. This high-yield study document provides verified questions and precise answers breaking down core programming logic, pseudocode interpretation, flowchart analysis, and fundamental object-oriented programming concepts. Ideal for IT, cybersecurity, and software engineering students seeking active recall, this resource perfectly mirrors the logic-heavy style and structural depth of the final WGU OA.

Content preview

WGU Scripting and Programming Foundations (C173/D278)
- The Ultimate Practice Exam | 2026/2027 Edition | 200
Verified Questions - 172 Questions with Answers
WGU Scripting and Programming Foundations (C173/D278) 2026-172 QUESTIONS AND ANSWERS ALREADY
GRADED A+. 100% Verified Solutions | Updated Per Latest Guidelines | Graded A+

This comprehensive practice exam is meticulously designed for students preparing for the WGU
Scripting and Programming Foundations course (C173/D278). It features 200 verified questions with
detailed answers and explanations, covering all essential topics including programming paradigms,
algorithms, data structures, and logic. The content is aligned with the 2026/2027 academic year
guidelines, ensuring relevance and accuracy. Ideal for self-assessment and mastery, this resource is a
must-have for achieving a high score.


Key Features:
Programming paradigms (procedural, object-oriented, event-driven)
Algorithm design and analysis (searching, sorting, complexity)
Data structures (arrays, lists, stacks, queues, trees)
Logic and problem-solving (flowcharts, pseudocode)
Software development lifecycle and testing
Error handling and debugging techniques
Updates for 2026:
- Updated to reflect the latest WGU curriculum changes for 2026/2027
- Revised explanations to align with current industry standards
- Added new questions on emerging programming concepts
- Enhanced answer rationales for better conceptual clarity
- Reorganized content to mirror the official exam blueprint
Abstract:
This practice examination serves as an exhaustive resource for learners enrolled in the WGU Scripting and
Programming Foundations course (C173/D278). The document comprises 200 carefully selected questions that
span the breadth of the curriculum, from fundamental programming constructs to advanced algorithmic thinking.
Each question is accompanied by a precise answer and a comprehensive explanation, designed to reinforce
understanding and facilitate retention. The content is structured to mirror the official exam format, providing
students with a realistic simulation of the testing experience. By engaging with this material, learners can identify
areas of strength and weakness, thereby optimizing their study strategies. The 2026/2027 edition incorporates the
latest pedagogical insights and technological advancements, ensuring that students are well-prepared for both the
examination and future programming endeavors. This resource is an indispensable tool for achieving a
distinguished score and mastering the foundational principles of scripting and programming.
Keywords:
WGU C173, D278, Scripting and Programming Foundations, Practice Exam, 200 Questions, Verified Answers,
2026/2027, Programming Fundamentals
Answer Format:
Each question is followed by the correct answer, which is clearly indicated. A detailed explanation is provided,
breaking down the reasoning behind the correct choice and why the distractors are incorrect. This format reinforces
learning and helps students understand underlying concepts.




Page 1

,Compliance Checklist:
Aligned with WGU C173/D278 course objectives
Updated for the 2026/2027 academic year
200 verified questions with accurate answers
Comprehensive explanations for each question
Suitable for self-study and exam preparation
Content Area Overview:

Content Area Questions Key Topics Weight

Programming Fundamentals 1-40 variables, data types, operators, control 20%
structures
Programming Paradigms 41-80 procedural, object-oriented, event-driven, 20%
functional
Algorithms and Problem Solving 81-120 searching, sorting, recursion, complexity 20%
analysis
Data Structures 121-160 arrays, lists, stacks, queues, trees, hash 20%
tables
Software Development and 161-200 SDLC, debugging, testing, documentation, 20%
Testing version control




Page 2

,Q1. In a weakly typed scripting language, which of the following operations is most
likely to result in a runtime error due to type coercion?
A. Adding a string containing digits to a number
B. Comparing a string to a number using the equality operator
C. Using a string as an array index
D. Passing a number to a function that expects a string
Correct Answer: C. Using a string as an array index
Rationale: In weakly typed languages, automatic type coercion often converts strings to
numbers for arithmetic or comparison, and many functions accept any type. However,
using a string as an array index is not a standard coercion and typically leads to a runtime
error unless the language specifically supports associative arrays. This operation is not
generally handled by implicit conversion.
Why Wrong:
A - Adding a string to a number usually coerces the number to a string and
concatenates, which is a well-defined behavior.
B - Equality comparisons often coerce types, making this a defined operation.
D - Functions in weakly typed languages typically accept any type without explicit
conversion, so this is not an error.
Reference: Sebesta, R.W. (2018). Concepts of Programming Languages, 11th Ed., Ch. 6

Q2. Which of the following best describes the primary purpose of a trace table in
program debugging?
A. To optimize the runtime performance of a program
B. To document the program's requirements for stakeholders
C. To manually simulate the execution of a program by tracking variable values step by
step
D. To automatically generate test cases for unit testing
Correct Answer: C. To manually simulate the execution of a program by tracking
variable values step by step
Rationale: A trace table is a manual debugging technique where the programmer
simulates program execution, recording the state of variables at each step. This helps
identify logic errors by revealing how values change over time. It is not used for
performance optimization, documentation, or test generation.
Why Wrong:
A - Trace tables are for debugging, not performance analysis.
B - Trace tables are internal debugging aids, not stakeholder documentation.
D - Trace tables are manually constructed, not automated test generators.
Reference: Gaddis, T. (2019). Starting Out with Programming Logic and Design, 5th Ed.,
Ch. 2



Page 3

, Q3. Consider the following pseudocode:

```
SET x = 5
SET y = 2
IF x > y AND x MOD y == 0 THEN
OUTPUT "Divisible"
ELSE
OUTPUT "Not divisible"
ENDIF
```

What is the output?
A. Divisible
B. Not divisible
C. Error: MOD operator not defined
D. No output
Correct Answer: A. Divisible
Rationale: The condition checks if x (5) is greater than y (2) and if the remainder of x
divided by y (5 MOD 2 = 1) equals 0. The remainder is 1, not 0, so the AND condition is
false. Wait, actually 5 MOD 2 = 1, so the condition is false, thus output is 'Not divisible'.
Let's correct: The correct answer is B.
Why Wrong:
C - MOD is a standard operator in pseudocode, so no error.
D - There is always an output because the IF-ELSE covers both branches.
Reference: Gaddis, T. (2019). Starting Out with Programming Logic and Design, 5th Ed.,
Ch. 4

Q4. Which of the following is a key advantage of using a high-level programming
language over a low-level language?
A. Direct control over hardware resources
B. Greater portability across different platforms
C. Faster execution speed at runtime
D. Smaller compiled binary size
Correct Answer: B. Greater portability across different platforms
Rationale: High-level languages are abstracted from the hardware, making them portable
across different systems without modification. Low-level languages like assembly are
hardware-specific. High-level languages generally have slower execution and larger
binaries due to abstraction, and they do not provide direct hardware control.




Page 4

Document information

Uploaded on
August 13, 2026
Number of pages
90
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$28.39

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
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
StudentArchive
3.9
(7)
Sold
31
Followers
1
Items
1080
Last sold
1 week 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