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 138 pages
Exam (elaborations)

WGU E010 Foundations of Programming Python OA Prep | 2026 Updated Practice Bank

Document preview thumbnail
Preview 4 out of 138 pages

Conquer your Western Governors University objective assessment with this fully updated 2026 practice test bank for WGU E010 Foundations of Programming (Python). This premium preparatory resource delivers rigorous questions and verified code solutions covering core programming logic, variables, loops, conditional statements, functions, and data structures. Every technical question features a clear structural syntax breakdown and logical rationale to help you write cleaner code and pass your OA with absolute confidence.

Content preview

WGU E010 Foundations of Programming (Python) –
2027 UPDATED OA

QUESTION 1
What is the output of print(type(10))?

A. <class 'int'>
B. <class 'float'>
C. <class 'str'>
D. <class 'bool'>




*Correct Answer: A. <class 'int'>

*Rationale: * The type() function returns the data type of the argument. 10 is an
integer, so it returns <class 'int'>.




QUESTION 2
What is the output of print(4 + 2 * 3 ** 2)?

A. 22
B. 36
C. 60
D. 24




*Correct Answer: A. 22

*Rationale: * Python follows operator precedence: exponentiation (**) first, then
multiplication (*), then addition (+). 3 ** 2 = 9; 2 * 9 = 18; 4 + 18 = 22.

,QUESTION 3
What is the output of print(10 - 3 * 2)?

A. 4
B. 14
C. 7
D. 1




*Correct Answer: A. 4

*Rationale: * Multiplication is performed before subtraction. 3 * 2 = 6; 10 - 6 = 4.




QUESTION 4
What is the output of print("Hello" + " " + "World")?

A. HelloWorld
B. Hello World
C. Hello + World
D. Error




*Correct Answer: B. Hello World

*Rationale: * String concatenation with + joins strings together. "Hello" + " " +
"World" results in "Hello World".

,QUESTION 5
What is the output of print("Python"[::2])?

A. Pto
B. yhn
C. Ptoh
D. yhon




*Correct Answer: A. Pto

*Rationale: * String slicing with a step of 2 selects every second
character. "Python"[::2] selects characters at indices 0, 2, 4: P, t, o = "Pto".




QUESTION 6
What is the output of print("Python"[1::2])?

A. yhn
B. Pto
C. yho
D. Ptn




*Correct Answer: A. yhn

*Rationale: * Slicing [1::2] starts at index 1 and selects every second character.
Characters at indices 1, 3, 5: y, h, n = "yhn".




QUESTION 7

, What is the output of print("Python"[::-1])?

A. nohtyP
B. Python
C. nohtyp
D. ythoN




*Correct Answer: A. nohtyP

*Rationale: * A step of -1 reverses the string. "Python"[::-1] returns "nohtyP".




QUESTION 8
What is the output of print("abc".upper().isupper())?

A. True
B. False
C. Error
D. None




*Correct Answer: A. True

*Rationale: * .upper() converts "abc" to "ABC". .isupper() checks if all characters are
uppercase, which returns True.




QUESTION 9
What is the output of print("HELLO".lower().islower())?

Document information

Uploaded on
July 27, 2026
Number of pages
138
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$33.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.
CornelWest
3.7
(248)
Sold
1565
Followers
1128
Items
12128
Last sold
3 days 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