2025/2026 WITH CORRECT/ACCURATE
ANSWERS – 100-QUESTION
UPDATED GRADE A+ 100%
WGU D278 OA | OBJECTIVE ASSESSMENT
SECTION 1 (1–14)
1. What is the main functional difference between a while loop and a do-while loop?
A. A while loop always executes once
B. A do-while loop checks condition first
C. A do-while loop guarantees at least one execution (Correct Answer)
D. They are identical
Rationale: do-while is post-test; while is pre-test.
2. Define “grammar” in programming languages.
A. Slang used in coding communities
B. Restrictions on variable names
C. Rules that define structure of valid statements (Correct Answer)
D. Compiler error types
Rationale: Grammar = syntax rules of the language.
3. What is the significance of object-oriented principles?
,A. They make code faster
B. They remove the need for functions
C. They enable encapsulation, inheritance, and polymorphism (Correct Answer)
D. They replace variables
Rationale: These principles improve organization and reusability.
4. What operator type produces a Boolean result?
A. Arithmetic operator
B. Assignment operator
C. Boolean operator (Correct Answer)
D. Bitwise operator
5. Advantage of interpreted languages?
A. Faster than compiled
B. Requires no interpreter
C. Runs on various hardware (Correct Answer)
D. Needs no syntax
6. Output of: FOR i = 0 TO 5 → PRINT i * i ?
A. 1, 2, 3, 4, 5
B. 0
C. 0, 1, 4, 9, 16, 25 (Correct Answer)
D. 25 only
7. Why use descriptive variable names?
A. Makes code run faster
B. Saves memory
C. Improves readability and maintainability (Correct Answer)
D. Prevents compiler errors
, 8. Primitive type that stores true/false?
A. String
B. Integer
C. Double
D. Boolean (Correct Answer)
9. Compiled languages translate source code into ______.
A. HTML
B. Bytecode
C. Machine code (Correct Answer)
D. Pseudocode
10. Rushing the design phase results in what?
A. Faster implementation
B. Better testing
C. Hidden implementation issues (Correct Answer)
D. No documentation needed
11. Skipping the testing phase causes what?
A. Faster deployment
B. Unidentified bugs and unmet requirements (Correct Answer)
C. Automatic updates
D. Fewer errors
12. Which design method emphasizes rapid testing and early user feedback?
A. Waterfall
B. Spiral
C. V-Model
D. Agile (Correct Answer)