Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 71 pages
Exam (elaborations)

WGU E010 FOUNDATIONS OF PROGRAMMING (PYTHON) OBJECTIVE ASSESSMENT FINAL EXAM 100 Questions with Verified Answers & Detailed Rationales 2026 Edition | Complete OA Preparation Guide

Document preview thumbnail
Preview 4 out of 71 pages

WGU E010 FOUNDATIONS OF PROGRAMMING (PYTHON) OBJECTIVE ASSESSMENT FINAL EXAM 100 Questions with Verified Answers & Detailed Rationales 2026 Edition | Complete OA Preparation GuideWGU E010 FOUNDATIONS OF PROGRAMMING (PYTHON) OBJECTIVE ASSESSMENT FINAL EXAM 100 Questions with Verified Answers & Detailed Rationales 2026 Edition | Complete OA Preparation Guide

Content preview

1



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.

Document information

Uploaded on
August 31, 2026
Number of pages
71
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$23.69

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
PETERWANJOHI
4.1
(11)
Sold
68
Followers
2
Items
5595
Last sold
2 weeks ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions