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

WGU E010 FOUNDATIONS OF PROGRAMMING (PYTHON) – 2026 UPDATED OA QUESTIONS AND CORRECT ANSWERS (VERIFIED ANSWERS) PLUS RATIONALES 2026 Q&A | INSTANT DOWNLOAD PDF

Document preview thumbnail
Preview 4 out of 39 pages

WGU E010 FOUNDATIONS OF PROGRAMMING (PYTHON) – 2026 UPDATED OA QUESTIONS AND CORRECT ANSWERS (VERIFIED ANSWERS) PLUS RATIONALES 2026 Q&A | INSTANT DOWNLOAD PDF

Content preview

WGU E010 FOUNDATIONS OF
PROGRAMMING (PYTHON) – 2026
UPDATED OA QUESTIONS AND
CORRECT ANSWERS (VERIFIED
ANSWERS) PLUS RATIONALES 2026 Q&A
| INSTANT DOWNLOAD PDF
Core Domains
Python Syntax and Semantics
Variables and Data Types
Operators and Expressions
Control Flow and Loops
Functions and Modules
Data Structures (Lists, Tuples, Dictionaries, Sets)
String Manipulation
File Input and Output
Exception Handling
Object-Oriented Programming Basics
Introduction
The WGU E010 Foundations of Programming (Python) examination assesses
the candidate's ability to write, debug, and reason about fundamental Python
programs. The examination evaluates knowledge of core programming
constructs, including variables, data types, control flow, functions, and basic
data structures. Candidates are assessed on their ability to read and interpret

,Python code, identify and correct errors, and apply programming logic to solve
real-world problems. The examination employs a multiple-choice and scenario-
based structure, emphasising practical application and decision-making in
introductory software development.
Section One: Questions 1–100
Question 1
What is the correct file extension for a Python source file?
A. .py
B. .python
C. .pyt
D. .pt

Correct answer: A

RATIONALE: Python source files use the .py extension. Other extensions
are not standard for Python source code.
Question 2
Which of the following is a valid variable name in Python?
A. 2nd_variable
B. my-variable
C. _my_variable
D. my variable

Correct answer: C

RATIONALE: Variable names can start with a letter or underscore,
followed by letters, digits, or underscores. They cannot start with a digit,
contain hyphens, or spaces.
Question 3

,What data type is the result of the expression in Python 3?
A. int
B. float
C. str
D. bool

Correct answer: B

RATIONALE: The division operator / always returns a float in Python 3,
even if the operands are integers.
Question 4
Which operator is used for exponentiation in Python?
A. ^
B. **
C. //
D. %

Correct answer: B

RATIONALE: The ** operator raises a number to a power. The ^ operator
is bitwise XOR, // is floor division, and % is modulus.
Question 5
What is the output of print(type(10))?
A. <class 'int'>
B. <class 'float'>
C. <class 'str'>
D. <class 'bool'>

, Correct answer: A

RATIONALE: The integer literal 10 is of type int. The type() function
returns the class of the object.
Question 6
Which of the following is used to take input from the user in Python?
A. input()
B. get()
C. read()
D. scan()

Correct answer: A

RATIONALE: The input() function reads a line from standard input and
returns it as a string.
Question 7
What is the result of len("Hello")?
A. 4
B. 5
C. 6
D. 0

Correct answer: B

RATIONALE: The len() function returns the number of characters in the
string "Hello", which is 5.
Question 8
Which of the following is a mutable data type in Python?
A. tuple

Document information

Uploaded on
September 15, 2026
Number of pages
39
Written in
2026/2027
Type
Exam (elaborations)
Contains
Unknown
$25.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.
Sold
198
Followers
6
Items
2362
Last sold
23 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