WGU D615 – Foundations of Coding Objective Assessment | OA | Questions and Answers | 2026
Update | 100% Correct.
WGU D615 – Foundations of Coding
Objective Assessment Questions & Answers
🔹 Section 1: Programming Fundamentals
1. What is a computer program?
Answer: A set of instructions written in a programming language that tells a computer how to perform a
task.
2. What is an algorithm?
Answer: A finite, step-by-step procedure used to solve a problem or perform a computation.
3. What is pseudocode used for?
Answer: To describe the logic of an algorithm in a human-readable format without strict syntax rules.
4. Which of the following best defines a variable?
A. A constant value
B. A named storage location
C. A function
D. A data type
Answer: B. A named storage location
5. What happens when a variable is reassigned?
Answer: The old value is replaced by the new value in memory.
6. What is a constant?
Answer: A value that cannot be changed once defined.
, 7. Which is NOT a valid variable name?
A. totalScore
B. _count
C. 2items
D. items2
Answer: C. 2items
8. Why are meaningful variable names important?
Answer: They improve code readability and maintainability.
🔹 Section 2: Data Types
9. Which data type stores whole numbers?
Answer: Integer
10. Which data type stores true/false values?
Answer: Boolean
11. What data type would best store a person’s name?
Answer: String
12. Which data type stores decimal numbers?
Answer: Float (or Double)
13. What is type casting?
Answer: Converting a value from one data type to another.
14. What happens when you divide two integers in most languages?
Answer: The result is an integer unless one value is cast to a floating-point type.
15. Which operation results in a Boolean value?
Update | 100% Correct.
WGU D615 – Foundations of Coding
Objective Assessment Questions & Answers
🔹 Section 1: Programming Fundamentals
1. What is a computer program?
Answer: A set of instructions written in a programming language that tells a computer how to perform a
task.
2. What is an algorithm?
Answer: A finite, step-by-step procedure used to solve a problem or perform a computation.
3. What is pseudocode used for?
Answer: To describe the logic of an algorithm in a human-readable format without strict syntax rules.
4. Which of the following best defines a variable?
A. A constant value
B. A named storage location
C. A function
D. A data type
Answer: B. A named storage location
5. What happens when a variable is reassigned?
Answer: The old value is replaced by the new value in memory.
6. What is a constant?
Answer: A value that cannot be changed once defined.
, 7. Which is NOT a valid variable name?
A. totalScore
B. _count
C. 2items
D. items2
Answer: C. 2items
8. Why are meaningful variable names important?
Answer: They improve code readability and maintainability.
🔹 Section 2: Data Types
9. Which data type stores whole numbers?
Answer: Integer
10. Which data type stores true/false values?
Answer: Boolean
11. What data type would best store a person’s name?
Answer: String
12. Which data type stores decimal numbers?
Answer: Float (or Double)
13. What is type casting?
Answer: Converting a value from one data type to another.
14. What happens when you divide two integers in most languages?
Answer: The result is an integer unless one value is cast to a floating-point type.
15. Which operation results in a Boolean value?