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
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