• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 48 pages
Exam (elaborations)

Wgu E010 Foundations Of Programming (Python) – Comprehensive Practice Exam Exam Overview 2026

Document preview thumbnail
Preview 4 out of 48 pages

Prepare for the WGU E010 Foundations of Programming (Python) Comprehensive Practice Exam 2026 with an original exam-style study resource covering essential Python programming concepts. Review variables, data types, operators, input/output, conditional logic, loops, functions, lists, tuples, dictionaries, strings, file handling, debugging, exceptions, Boolean logic, algorithms, and programming problem-solving. The resource is designed to help WGU students strengthen foundational Python skills and prepare confidently for their assessment.

Content preview

WGU E010 FOUNDATIONS OF PROGRAMMING
(PYTHON) – COMPREHENSIVE PRACTICE EXAM
EXAM OVERVIEW 2026



SECTION 1: BASIC SYNTAX & DATA TYPES (Questions 1–25)

Q1. What is the output of print(type(10/2))?



A) <class 'int'>

B) <class 'float'>

C) <class 'double'>

D) <class 'number'>



Correct ANSWER: B



Rationale: In Python, the / operator performs true division and always returns a float, even when the
numbers divide evenly. = 5.0, so type(5.0) is float.



Q2. Which of the following data types is immutable?



A) list

B) dict

C) set

D) tuple



Correct ANSWER: D

,Rationale: A tuple cannot be changed after creation (immutable), while lists, dictionaries, and sets are
mutable and can be modified after creation.



Q3. What will the following code print?



python

x = "Hello"

print(x[1])

A) H

B) e

C) l

D) o



Correct ANSWER: B



Rationale: String indexing starts at 0 in Python. x[0] is 'H', x[1] is 'e'.



Q4. What is the output of print(3 ** 2)?



A) 6

B) 9

C) 8

D) 5



Correct ANSWER: B



Rationale: The ** operator performs exponentiation. 3² = 9.

,Q5. What does len([1, 2, 3]) return?



A) 2

B) 3

C) 4

D) 1



Correct ANSWER: B



Rationale: The len() function returns the number of elements in a sequence.



Q6. Which operator checks equality in Python?



A) =

B) ==

C) !=

D) ===



Correct ANSWER: B



Rationale: == compares values for equality; = is the assignment operator.



Q7. What is the result of bool([])?



A) True

B) False

C) None

D) Error

, Correct ANSWER: B



Rationale: Empty sequences (list, tuple, string, dict, set) evaluate to False in a Boolean context.



Q8. What is the output of the following code?



python

x=5

y=2

print(x // y)

A) 2.5

B) 2

C) 3

D) 2.0



Correct ANSWER: B



Rationale: The // operator performs floor (integer) division, which divides and rounds down to the
nearest whole number. 5 // 2 equals 2.



Q9. Which of the following is a valid variable name in Python?



A) 2cool

B) cool-variable

C) _cool_variable

D) cool variable



Correct ANSWER: C

Document information

Uploaded on
August 21, 2026
Number of pages
48
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$17.99

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.
TUTORMARY01
3.8
(5)
Sold
46
Followers
0
Items
2860
Last sold
3 hours 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