WGU E010 FOUNDATIONS OF PROGRAMMING (PYTHON)
OBJECTIVE ASSESSMENT V1 | 30 OA-STYLE QUESTIONS,
ANSWERS & DETAILED RATIONALES | COMPLETE 2026 EXAM
PRACTICE
148 Questions with Answers and Detailed Rationales
100 PERCENT GUARANTEED PASS
INSTANT DOWNLOAD ANSWERS INCLUDED
IMPORTANCE OF THIS DOCUMENT
This comprehensive examination preparation guide has been meticulously developed to help you succeed in the
WGU E010 FOUNDATIONS OF PROGRAMMING (PYTHON) OBJECTIVE ASSESSMENT V1 | 30 OA-STYLE
QUESTIONS, ANSWERS & DETAILED RATIONALES | COMPLETE 2026 EXAM PRACTICE. It contains 148
carefully selected questions that reflect the most current exam content and testing strategies. Each question is
accompanied by a correct answer and a detailed rationale that explains the underlying pathophysiology,
pharmacology, or clinical reasoning.
Self-Assessment – Test your knowledge and Exam Preparation – Familiarize yourself with the
identify areas requiring further question format and content
study areas
Concept Reinforcement – Deepen your Confidence Building – Develop test-taking
understanding through strategies and reduce
evidence-based exam anxiety
rationales
Time Management – Practice answering
questions under simulated
exam conditions
Review Summary 148 Questions
Foundations - Application - WGU E010 Foundations OF Programming Python Objective Assessment V1 30
Oa-style & Detailed Rationales Complete 2026 Computer Science / Introductory Python Programming
Undergraduate First-year Programming Python
All answers with rationales
,Table of Contents
Content Area Questions Key Topics
Introduction TO 1-25 Return, Python, Correctly, Expression, Value
Programming AND Python
Basics
Variables DATA Types AND 26-50 Python, Print, Result, Counter, Correctly
Operators
Control Structures 51-75 Print, Return, Python, Result, Class
Conditionals AND Loops
Functions AND Modular 76-100 Print, Expression, Python, Counter, Lines
Programming
Strings AND String 101-125 Print, Result, Correctly, Python, Output
Manipulation
Lists Tuples AND 126-148 Function, Python, Return, Value, Correctly
Dictionaries
TOTAL 148 All questions include answers and detailed rationales
,Section A - Introduction TO Programming AND Python
Basics
Q1.
Which expression evaluates to True?
A. 0.1 + 0.2 == 0.3 B. bool('False')
C. 5 // 2 == 2.5 D. not (3 > 2)
Correct: B - bool('False')
Rationale:bool('False') is True because any non-empty string is truthy in Python; 'False' is a
non-empty string, not the boolean False. The other expressions are either False due to
floating-point representation, integer floor division, or logical negation of a true statement.
Why the other answers are wrong:
A. 0.1 + 0.2 yields 0.30000000000000004 due to binary floating-point representation, so the
equality is False.
C. 5 // 2 uses floor division and returns the integer 2, not 2.5.
D. 3 > 2 is True, and not True evaluates to False.
Reference: Python Software Foundation. (2025). The Python Tutorial, §3.1.1 Numbers and §4.2 for
Statements.
Q2.
Given x = [10, 20, 30, 40], what is the value of x[1:3]?
A. [20, 30] B. [20, 30, 40]
C. [10, 20, 30] D. [30, 40]
Correct: A - [20, 30]
Rationale:Python slicing uses a half-open interval: x[1:3] returns elements from index 1 up to
but not including index 3, i.e., [20, 30]. The other options misapply the start/stop boundaries
or include the wrong endpoints.
Why the other answers are wrong:
B. This would correspond to x[1:4], which includes index 3.
C. This would correspond to x[0:3], which starts at index 0.
D. This would correspond to x[2:4], which starts at index 2.
Reference: Lutz, M. (2024). Learning Python, 6th Ed., Ch. 7: String Fundamentals (Slicing).
Page 3
, Section A - Introduction TO Programming AND Python Basics
Q3.
What is the output of the following code?
for i in range(3):
if i == 1:
continue
print(i, end=' ')
A. 0 1 2 B. 0 2
C. 1 D. 0 1
Correct: B - 0 2
Rationale:The continue statement skips the remainder of the current iteration when i == 1, so
only 0 and 2 are printed. The other options either ignore the skip or misapply when continue
triggers.
Why the other answers are wrong:
A. This would be output if continue were absent.
C. This would print only the skipped value, which is incorrect.
D. This would occur if the loop stopped early or skipped 2 instead of 1.
Reference: Python Software Foundation. (2025). The Python Tutorial, §4.4 break and continue
Statements.
Q4.
Which mutable data structure should be used to store an ordered sequence of student
names that must be updated frequently by index?
A. tuple B. frozenset
C. list D. str
Correct: C - list
Rationale:A list is ordered, mutable, and supports index-based assignment, making it
appropriate for frequent updates. Tuples and strings are immutable, and frozenset is
unordered and immutable.
Why the other answers are wrong:
A. Tuples are ordered but immutable, so element updates by index are not allowed.
B. frozenset is unordered and immutable, so it cannot support indexed updates.
D. Strings are immutable sequences and cannot be modified in place.
Reference: Downey, A. (2024). Think Python, 3rd Ed., Ch. 10: Lists.
Page 4
OBJECTIVE ASSESSMENT V1 | 30 OA-STYLE QUESTIONS,
ANSWERS & DETAILED RATIONALES | COMPLETE 2026 EXAM
PRACTICE
148 Questions with Answers and Detailed Rationales
100 PERCENT GUARANTEED PASS
INSTANT DOWNLOAD ANSWERS INCLUDED
IMPORTANCE OF THIS DOCUMENT
This comprehensive examination preparation guide has been meticulously developed to help you succeed in the
WGU E010 FOUNDATIONS OF PROGRAMMING (PYTHON) OBJECTIVE ASSESSMENT V1 | 30 OA-STYLE
QUESTIONS, ANSWERS & DETAILED RATIONALES | COMPLETE 2026 EXAM PRACTICE. It contains 148
carefully selected questions that reflect the most current exam content and testing strategies. Each question is
accompanied by a correct answer and a detailed rationale that explains the underlying pathophysiology,
pharmacology, or clinical reasoning.
Self-Assessment – Test your knowledge and Exam Preparation – Familiarize yourself with the
identify areas requiring further question format and content
study areas
Concept Reinforcement – Deepen your Confidence Building – Develop test-taking
understanding through strategies and reduce
evidence-based exam anxiety
rationales
Time Management – Practice answering
questions under simulated
exam conditions
Review Summary 148 Questions
Foundations - Application - WGU E010 Foundations OF Programming Python Objective Assessment V1 30
Oa-style & Detailed Rationales Complete 2026 Computer Science / Introductory Python Programming
Undergraduate First-year Programming Python
All answers with rationales
,Table of Contents
Content Area Questions Key Topics
Introduction TO 1-25 Return, Python, Correctly, Expression, Value
Programming AND Python
Basics
Variables DATA Types AND 26-50 Python, Print, Result, Counter, Correctly
Operators
Control Structures 51-75 Print, Return, Python, Result, Class
Conditionals AND Loops
Functions AND Modular 76-100 Print, Expression, Python, Counter, Lines
Programming
Strings AND String 101-125 Print, Result, Correctly, Python, Output
Manipulation
Lists Tuples AND 126-148 Function, Python, Return, Value, Correctly
Dictionaries
TOTAL 148 All questions include answers and detailed rationales
,Section A - Introduction TO Programming AND Python
Basics
Q1.
Which expression evaluates to True?
A. 0.1 + 0.2 == 0.3 B. bool('False')
C. 5 // 2 == 2.5 D. not (3 > 2)
Correct: B - bool('False')
Rationale:bool('False') is True because any non-empty string is truthy in Python; 'False' is a
non-empty string, not the boolean False. The other expressions are either False due to
floating-point representation, integer floor division, or logical negation of a true statement.
Why the other answers are wrong:
A. 0.1 + 0.2 yields 0.30000000000000004 due to binary floating-point representation, so the
equality is False.
C. 5 // 2 uses floor division and returns the integer 2, not 2.5.
D. 3 > 2 is True, and not True evaluates to False.
Reference: Python Software Foundation. (2025). The Python Tutorial, §3.1.1 Numbers and §4.2 for
Statements.
Q2.
Given x = [10, 20, 30, 40], what is the value of x[1:3]?
A. [20, 30] B. [20, 30, 40]
C. [10, 20, 30] D. [30, 40]
Correct: A - [20, 30]
Rationale:Python slicing uses a half-open interval: x[1:3] returns elements from index 1 up to
but not including index 3, i.e., [20, 30]. The other options misapply the start/stop boundaries
or include the wrong endpoints.
Why the other answers are wrong:
B. This would correspond to x[1:4], which includes index 3.
C. This would correspond to x[0:3], which starts at index 0.
D. This would correspond to x[2:4], which starts at index 2.
Reference: Lutz, M. (2024). Learning Python, 6th Ed., Ch. 7: String Fundamentals (Slicing).
Page 3
, Section A - Introduction TO Programming AND Python Basics
Q3.
What is the output of the following code?
for i in range(3):
if i == 1:
continue
print(i, end=' ')
A. 0 1 2 B. 0 2
C. 1 D. 0 1
Correct: B - 0 2
Rationale:The continue statement skips the remainder of the current iteration when i == 1, so
only 0 and 2 are printed. The other options either ignore the skip or misapply when continue
triggers.
Why the other answers are wrong:
A. This would be output if continue were absent.
C. This would print only the skipped value, which is incorrect.
D. This would occur if the loop stopped early or skipped 2 instead of 1.
Reference: Python Software Foundation. (2025). The Python Tutorial, §4.4 break and continue
Statements.
Q4.
Which mutable data structure should be used to store an ordered sequence of student
names that must be updated frequently by index?
A. tuple B. frozenset
C. list D. str
Correct: C - list
Rationale:A list is ordered, mutable, and supports index-based assignment, making it
appropriate for frequent updates. Tuples and strings are immutable, and frozenset is
unordered and immutable.
Why the other answers are wrong:
A. Tuples are ordered but immutable, so element updates by index are not allowed.
B. frozenset is unordered and immutable, so it cannot support indexed updates.
D. Strings are immutable sequences and cannot be modified in place.
Reference: Downey, A. (2024). Think Python, 3rd Ed., Ch. 10: Lists.
Page 4