WGU E010 FOUNDATIONS OF
PROGRAMMING (PYTHON)
OBJECTIVE ASSESSMENT | OA V1
AND V2 | 200 PRACTICE
QUESTIONS AND ANSWERS |
2026 STUDY GUIDE | 100%
CORRECT.
Core Domains
• Python Syntax and Basic Data Types
• Operators and Expressions
• Control Flow and Loops
• Functions and Scope
• Strings and String Methods
• Lists, Tuples, Dictionaries, and Sets
• File Input and Output
• Exception Handling
• Modules and Object-Oriented Programming
• Algorithms, Debugging, and Best Practices
Introduction
The WGU E010 Foundations of Programming (Python) Objective
Assessment evaluates essential programming knowledge and
practical Python skills. This practice assessment covers core
syntax, data types, control structures, functions, collections, file
,handling, exceptions, and object-oriented concepts. Questions
include multiple-choice and scenario-based items that require
applied decision-making. The examination emphasizes real-world
problem solving, code reading, debugging, and proper use of
Python libraries. Successful completion demonstrates readiness to
write, analyze, and troubleshoot basic Python programs in
academic and professional settings.
SECTION ONE: QUESTIONS 1–100
Question 1
What is the output of print(2 ** 3)?
A. 6
B. 8
C. 9
D. 5
B. 8
RATIONALE: The ** operator raises the left operand to the
power of the right operand, so 2 ** 3 equals 8.
Question 2
Which data type is immutable?
A. list
B. dict
C. tuple
D. set
C. tuple
RATIONALE: Tuples cannot be changed after creation, whereas
lists, dictionaries, and sets are mutable.
Question 3
What does len("Python") return?
,A. 5
B. 6
C. 7
D. Error
B. 6
RATIONALE: The string "Python" contains six characters, so
len returns 6.
Question 4
Which keyword defines a function?
A. def
B. func
C. define
D. lambda
A. def
RATIONALE: Python uses the def keyword to define a named
function.
Question 5
What is the result of 10 // 3?
A. 3.33
B. 3
C. 4
D. 1
B. 3
RATIONALE: Floor division // returns the integer quotient,
discarding the remainder.
Question 6
Which operator checks equality?
, A. =
B. ==
C. !=
D. <>
B. ==
RATIONALE: The == operator compares two values for
equality and returns a Boolean result.
Question 7
What is the output of print("Hello" + "World")?
A. Hello World
B. HelloWorld
C. Hello+World
D. Error
B. HelloWorld
RATIONALE: The + operator concatenates strings without
adding a space.
Question 8
Which is a valid variable name?
A. 2nd_name
B. my-var
C. my_var
D. class
C. my_var
RATIONALE: Variable names may contain letters, numbers,
and underscores but cannot start with a number or be a keyword.
Question 9
What does type(3.14) return?
PROGRAMMING (PYTHON)
OBJECTIVE ASSESSMENT | OA V1
AND V2 | 200 PRACTICE
QUESTIONS AND ANSWERS |
2026 STUDY GUIDE | 100%
CORRECT.
Core Domains
• Python Syntax and Basic Data Types
• Operators and Expressions
• Control Flow and Loops
• Functions and Scope
• Strings and String Methods
• Lists, Tuples, Dictionaries, and Sets
• File Input and Output
• Exception Handling
• Modules and Object-Oriented Programming
• Algorithms, Debugging, and Best Practices
Introduction
The WGU E010 Foundations of Programming (Python) Objective
Assessment evaluates essential programming knowledge and
practical Python skills. This practice assessment covers core
syntax, data types, control structures, functions, collections, file
,handling, exceptions, and object-oriented concepts. Questions
include multiple-choice and scenario-based items that require
applied decision-making. The examination emphasizes real-world
problem solving, code reading, debugging, and proper use of
Python libraries. Successful completion demonstrates readiness to
write, analyze, and troubleshoot basic Python programs in
academic and professional settings.
SECTION ONE: QUESTIONS 1–100
Question 1
What is the output of print(2 ** 3)?
A. 6
B. 8
C. 9
D. 5
B. 8
RATIONALE: The ** operator raises the left operand to the
power of the right operand, so 2 ** 3 equals 8.
Question 2
Which data type is immutable?
A. list
B. dict
C. tuple
D. set
C. tuple
RATIONALE: Tuples cannot be changed after creation, whereas
lists, dictionaries, and sets are mutable.
Question 3
What does len("Python") return?
,A. 5
B. 6
C. 7
D. Error
B. 6
RATIONALE: The string "Python" contains six characters, so
len returns 6.
Question 4
Which keyword defines a function?
A. def
B. func
C. define
D. lambda
A. def
RATIONALE: Python uses the def keyword to define a named
function.
Question 5
What is the result of 10 // 3?
A. 3.33
B. 3
C. 4
D. 1
B. 3
RATIONALE: Floor division // returns the integer quotient,
discarding the remainder.
Question 6
Which operator checks equality?
, A. =
B. ==
C. !=
D. <>
B. ==
RATIONALE: The == operator compares two values for
equality and returns a Boolean result.
Question 7
What is the output of print("Hello" + "World")?
A. Hello World
B. HelloWorld
C. Hello+World
D. Error
B. HelloWorld
RATIONALE: The + operator concatenates strings without
adding a space.
Question 8
Which is a valid variable name?
A. 2nd_name
B. my-var
C. my_var
D. class
C. my_var
RATIONALE: Variable names may contain letters, numbers,
and underscores but cannot start with a number or be a keyword.
Question 9
What does type(3.14) return?