WGU E010 FOUNDATIONS OF
PROGRAMMING EXAM QUESTIONS
AND ANSWERS
1. Which phase of the Software Development Life Cycle (SDLC) involves defining the
hardware and software architecture and the overall system design?
A. Implementation
B. Analysis
C. Design
D. Testing
Answer: C
Conceptual Explanation: The Design phase is where the system architecture, user
interface, and data structures are planned based on requirements.
2. In programming, what is the specific term for a location in memory that stores a value
which cannot be changed during the program execution?
A. Constant
B. Variable
C. Literal
,D. Identifier
Answer: A
Conceptual Explanation: A constant is a fixed value that remains unchanged throughout
the duration of a program’s execution.
3. Which logical operator returns true only if both operands are true?
A. OR
B. AND
C. XOR
D. NOT
Answer: B
Conceptual Explanation: The AND operator requires all input conditions to be true for the
result to be true.
4. What is the primary difference between a ‘while’ loop and a ‘do-while’ loop?
A. A while loop always executes at least once.
B. A do-while loop always executes at least once regardless of the condition.
C. A do-while loop checks the condition before the first execution.
D. There is no functional difference.
Answer: B
, Conceptual Explanation: A do-while loop is a post-test loop, meaning the body is executed
before the condition is checked.
5. Which data type would be most appropriate for storing a single character such as ‘A’ or ‘$’?
A. String
B. Boolean
C. Char
D. Float
Answer: C
Conceptual Explanation: The Char data type is designed to hold a single alphanumeric
character or symbol.
6. What is the process of finding and fixing errors in a computer program called?
A. Compiling
B. Interpreting
C. Executing
D. Debugging
Answer: D
Conceptual Explanation: Debugging is the systematic process of identifying and resolving
bugs or defects in software.
PROGRAMMING EXAM QUESTIONS
AND ANSWERS
1. Which phase of the Software Development Life Cycle (SDLC) involves defining the
hardware and software architecture and the overall system design?
A. Implementation
B. Analysis
C. Design
D. Testing
Answer: C
Conceptual Explanation: The Design phase is where the system architecture, user
interface, and data structures are planned based on requirements.
2. In programming, what is the specific term for a location in memory that stores a value
which cannot be changed during the program execution?
A. Constant
B. Variable
C. Literal
,D. Identifier
Answer: A
Conceptual Explanation: A constant is a fixed value that remains unchanged throughout
the duration of a program’s execution.
3. Which logical operator returns true only if both operands are true?
A. OR
B. AND
C. XOR
D. NOT
Answer: B
Conceptual Explanation: The AND operator requires all input conditions to be true for the
result to be true.
4. What is the primary difference between a ‘while’ loop and a ‘do-while’ loop?
A. A while loop always executes at least once.
B. A do-while loop always executes at least once regardless of the condition.
C. A do-while loop checks the condition before the first execution.
D. There is no functional difference.
Answer: B
, Conceptual Explanation: A do-while loop is a post-test loop, meaning the body is executed
before the condition is checked.
5. Which data type would be most appropriate for storing a single character such as ‘A’ or ‘$’?
A. String
B. Boolean
C. Char
D. Float
Answer: C
Conceptual Explanation: The Char data type is designed to hold a single alphanumeric
character or symbol.
6. What is the process of finding and fixing errors in a computer program called?
A. Compiling
B. Interpreting
C. Executing
D. Debugging
Answer: D
Conceptual Explanation: Debugging is the systematic process of identifying and resolving
bugs or defects in software.