WGU E010 FOUNDATIONS OF PROGRAMMING
(PYTHON) OBJECTIVE ASSESSMENT FINAL EXAM
100 Questions with Verified Answers & Detailed
Rationales 2026 Edition | Complete OA Preparation
Guide
This examination consists of 100 multiple-choice and code-completion
questions covering foundational Python programming concepts. Each
question includes:
- The question or code snippet
- Four answer choices (A, B, C, D)
- The correct answer
- A detailed rationale explaining the concept
Time Allowed: 2 hours
Q1. What is the output of the following code?
```python
print(type())
```
A) `<class 'int'>`
B) `<class 'float'>`
C) `<class 'double'>`
,2
D) `<class 'str'>`
Correct Answer: B
Rationale:In Python, the `/` operator always returns a `float`, even when
the two numbers divide evenly. `` evaluates to `5.0`, which is a `float`.
Python does not have a separate `double` type.
Q2. Which of the following data types is **immutable** in Python?
A) list
B) dict
C) set
D) tuple
Correct Answer: D
Rationale:Tuples are immutable, meaning their contents cannot be
changed after creation. Lists, dictionaries, and sets are all mutable and can
be modified in place.
,3
Q3. What is the result of `print(10 // 3)`?
A) 3.333...
B) 3
C) 4
D) 3.0
Correct Answer: B
Rationale: The `//` operator performs floor division (integer division). It
returns the quotient without the remainder, so `10 // 3` evaluates to `3`.
Q4. Which symbol begins a single-line comment in Python?
A) `//` (double forward slash)
B) `#` (pound symbol)
C) `*` (asterisk)
D) `%` (percent symbol)
Correct Answer: B
, 4
Rationale:In Python, the `#` symbol is used to begin a single-line comment.
Everything after the `#` on that line is ignored by the interpreter.
Q5. What is the output of the following code?
```python
x=5
y=2
print(x ** y)
```
A) 7
B) 10
C) 25
D) 32
Correct Answer: C
Rationale: The `` operator performs exponentiation. `5 ** 2` means 5 raised
to the power of 2, which equals 25.