WGU E010 FOUNDATIONS OF
PROGRAMMING (PYTHON)
OBJECTIVE ASSESSMENT | OA V1
QUESTIONS AND CORRECT ANSWERS
(VERIFIED ANSWERS) PLUS
RATIONALES 2026 Q&A | INSTANT
DOWNLOAD PDF.
Core Domains
1. Python Syntax, Variables, and Data Types
2. Operators, Expressions, and Input/Output
3. Control Flow, Conditionals, and Loops
4. Functions, Scope, and Modular Programming
5. Strings, Lists, Tuples, Dictionaries, and Sets
6. File Handling, Exceptions, and Debugging
7. Object-Oriented Programming and Classes
8. Algorithms, Recursion, and Problem Solving
9. Testing, Documentation, and PEP 8 Standards
10. Software Development, Ethics, and Security Basics
Introduction
This comprehensive assessment evaluates foundational
programming knowledge and practical Python skills
required for success in software development. It covers
syntax, data types, control flow, functions, collections,
file handling, exceptions, object-oriented programming,
,algorithms, testing, and professional standards.
Questions are designed as multiple-choice and scenario-
based items that require analysis, code tracing,
debugging, and decision-making. The examination
emphasizes real-world application, problem-solving,
ethical responsibility, and the ability to write clear,
correct, and maintainable Python code. Candidates must
demonstrate readiness to apply programming concepts
safely and effectively in academic and professional
environments.
SECTION ONE: QUESTIONS 1–100
1. What is the primary purpose of indentation in
Python?
A. It improves readability only
B. It defines code blocks
C. It declares variables
D. It marks comments
B. It defines code blocks
RATIONALE: Python uses indentation to delimit blocks
of code, such as those in functions, loops, and
conditionals. Incorrect indentation causes syntax errors
or changes program logic.
2. Which Python data type is immutable?
,A. list
B. dict
C. set
D. tuple
D. tuple
RATIONALE: Tuples cannot be changed after creation,
so they are immutable. Lists, dictionaries, and sets are
mutable and can be modified.
3. In Python 3, what is the output of type()?
A. <class 'float'>
B. <class 'int'>
C. <class 'double'>
D. <class 'decimal'>
A. <class 'float'>
RATIONALE: The division operator / always returns a
float in Python 3, even when both operands are integers.
4. Which operator is used for floor division in
Python?
A. /
B. **
C. //
D. %
, C. //
RATIONALE: The // operator performs floor division,
returning the largest integer less than or equal to the
result. The / operator returns a float.
5. What does len("Python") return?
A. 5
B. 6
C. 7
D. Error
B. 6
RATIONALE: The string "Python" contains six
characters, so len returns 6.
6. Which statement creates an empty list?
A. []
B. {}
C. ()
D. set()
A. []
RATIONALE: Square brackets [] create an empty list.
Curly braces {} create an empty dictionary, and
parentheses () create an empty tuple.
PROGRAMMING (PYTHON)
OBJECTIVE ASSESSMENT | OA V1
QUESTIONS AND CORRECT ANSWERS
(VERIFIED ANSWERS) PLUS
RATIONALES 2026 Q&A | INSTANT
DOWNLOAD PDF.
Core Domains
1. Python Syntax, Variables, and Data Types
2. Operators, Expressions, and Input/Output
3. Control Flow, Conditionals, and Loops
4. Functions, Scope, and Modular Programming
5. Strings, Lists, Tuples, Dictionaries, and Sets
6. File Handling, Exceptions, and Debugging
7. Object-Oriented Programming and Classes
8. Algorithms, Recursion, and Problem Solving
9. Testing, Documentation, and PEP 8 Standards
10. Software Development, Ethics, and Security Basics
Introduction
This comprehensive assessment evaluates foundational
programming knowledge and practical Python skills
required for success in software development. It covers
syntax, data types, control flow, functions, collections,
file handling, exceptions, object-oriented programming,
,algorithms, testing, and professional standards.
Questions are designed as multiple-choice and scenario-
based items that require analysis, code tracing,
debugging, and decision-making. The examination
emphasizes real-world application, problem-solving,
ethical responsibility, and the ability to write clear,
correct, and maintainable Python code. Candidates must
demonstrate readiness to apply programming concepts
safely and effectively in academic and professional
environments.
SECTION ONE: QUESTIONS 1–100
1. What is the primary purpose of indentation in
Python?
A. It improves readability only
B. It defines code blocks
C. It declares variables
D. It marks comments
B. It defines code blocks
RATIONALE: Python uses indentation to delimit blocks
of code, such as those in functions, loops, and
conditionals. Incorrect indentation causes syntax errors
or changes program logic.
2. Which Python data type is immutable?
,A. list
B. dict
C. set
D. tuple
D. tuple
RATIONALE: Tuples cannot be changed after creation,
so they are immutable. Lists, dictionaries, and sets are
mutable and can be modified.
3. In Python 3, what is the output of type()?
A. <class 'float'>
B. <class 'int'>
C. <class 'double'>
D. <class 'decimal'>
A. <class 'float'>
RATIONALE: The division operator / always returns a
float in Python 3, even when both operands are integers.
4. Which operator is used for floor division in
Python?
A. /
B. **
C. //
D. %
, C. //
RATIONALE: The // operator performs floor division,
returning the largest integer less than or equal to the
result. The / operator returns a float.
5. What does len("Python") return?
A. 5
B. 6
C. 7
D. Error
B. 6
RATIONALE: The string "Python" contains six
characters, so len returns 6.
6. Which statement creates an empty list?
A. []
B. {}
C. ()
D. set()
A. []
RATIONALE: Square brackets [] create an empty list.
Curly braces {} create an empty dictionary, and
parentheses () create an empty tuple.