WGU E010 FOUNDATIONS OF
PROGRAMMING (PYTHON) OA 2026 FINAL
EXAM COMPLETE (50) CURRENT TESTING
QUESTIONS AND CORRECT ANSWERS WITH
DETAILED EXPLANATIONS|GUARANTEED
PASS.
PYTHON
Ace the WGU E010 Foundations of Programming (Python) OA Final
Exam with practice questions covering Python data types, control
structures, functions, data structures, string operations, and
common built-in functions. This study guide helps reinforce
foundational coding concepts and supports effective preparation for
objective assessments. Designed to improve problem-solving skills
and boost confidence in Python programming. Suitable for computer
science, IT, and programming students.
Multiple choice.
Data Types & Type Conversion
1. What is the output of the following code?
python
print(type())
, Page 2 of 23
A) <class 'int'>
B) <class 'float'>
C) <class 'double'>
D) <class 'str'>
Answer: B. <class 'float'>
Explanation: In Python, the / operator always returns a float,
even when the two numbers divide evenly. evaluates
to 5.0, which is a float.
2. Which of the following data types is immutable?
A) list
B) dict
C) set
D) tuple
Answer: D. tuple
Explanation: Tuples cannot be changed after they are created.
Lists, dictionaries, and sets are mutable.
3. What is the result of print(10 // 3)?
A) 3.333…
B) 3
C) 4
D) 3.0
Answer: B. 3
Explanation: The // operator performs floor division (integer
division). It returns the quotient without the remainder,
so 10 // 3 evaluates to 3.
, Page 3 of 23
4. What is the output of print(2 + 3 * 4)?
A) 20
B) 14
C) 24
D) 10
Answer: B. 14
Explanation: Multiplication has higher precedence than
addition. First, 3 * 4 = 12, then 2 + 12 = 14.
5. What does the input() function return when a user types
"42"?
A) int
B) string
C) float
D) bool
Answer: B. string
Explanation: The input() function always returns user input as a
string, regardless of what the user types.
6. What is the output of print(5 == "5")?
A) True
B) False
C) Error
D) None
Answer: B. False
Explanation: The == operator compares both value and
type. 5 is an integer, "5" is a string, so they are not equal.