FOUNDATIONS OF PROGRAMMING (PYTHON)
OA V1 & V2 PROCTORED EXAM PRACTICE
QUESTION BANK
Master the WGU E010 Foundations of Programming assessment with this
ultra-rigorous, practice exam and study guide mapped explicitly to the 2026
proctored curriculum. Each premium multiple-choice question contains
exact Python code syntax, hidden logic traps, and thorough rationales
explaining core algorithms like tracking peak values, list filtering, and file
I/O operations. Cut out unverified shortcuts and build real programmatic
competency to pass your Objective Assessment securely on the very first
attempt.
Question 1 (Data Types & Operators)
What is the data type and value resulting from the
floor division expression 17 // 4 in Python 3?
A) float, 4.25
B) int, 4
C) float, 4.0
D) int, 5
Rationale: The floor division operator (//)
divides the operands and discards the
fractional part, rounding down to the nearest
whole integer. Because both operands are
integers, the return type is an int.
Question 2 (Sequence Immutability)
,Which of the following built-in collection structures in
Python is strictly immutable after instantiation?
A) List
B) Dictionary
C) Tuple
D) Set
Rationale: Tuples are immutable sequence
types defined using parentheses. Once a
tuple is created, its elements cannot be
altered, added, or removed in-place, unlike
mutable lists, dictionaries, or sets.
Question 3 (String Interrogation)
What will the expression 'WGU E010'.isalnum()
evaluate to?
A) True
B) False
C) None
D) SyntaxError
Rationale: The .isalnum() string method
returns True only if all characters in the
string are alphanumeric (letters or numbers).
, Because the string contains a space
character (' '), it evaluates to False.
Question 4 (String Modification Chaining)
What is the exact output of the code block: print("
Python Code ".strip().lower())?
A) ' python code '
B) 'python code'
C) 'pythoncode'
D) 'Python Code'
Rationale: Method chaining executes from
left to right. .strip() removes all leading and
trailing whitespace from the string, resulting
in "Python Code". Then, .lower() converts all
remaining alphabetic characters to
lowercase, yielding "python code".
Question 5 (String Tokenization)
How do you cleanly split a comma-separated string
data = "apple,banana,cherry" into an individual list of
elements?
A) data.split(",")
B) data.join(",")
C) split(data, ",")
, D) data.strip(",")
Rationale: The .split() method breaks a single
string into a list of substrings using the
specified delimiter character passed as its
argument.
Question 6 (Boolean Operation Precedence)
Evaluate the boolean expression where x = 5, y =
10, and z = 15: x < y or y > z and not x == 5. What is
the result?
A) False
B) True
C) None
D) ValueError
Rationale: Operator precedence dictates that
not evaluates first, followed by and, and
finally or. Here, not x == 5 is False. Then, y >
z and False evaluates to False. Finally, x < y
or False simplifies to True or False, which
evaluates to True.
Question 7 (Conditional Evaluation)
Given the variables a = 12 and b = 20, what value is
printed by the following logic?