WGU E010 Objective Assessment 2:
The Complete 2026 Edition Practice
Exam —Certified-Style Questions with
In-Depth Answers, Rationales, and
Python Concept Mapping for
Guaranteed Exam Readiness
What is the output of the following code?
python
x = 5
y = 10
print(x + y)
A) 510
B) 15
C) Error
D) 5 10
Correct Answer: B
Rationale: The + operator performs arithmetic addition when both
operands are integers (or numeric types). The values 5 and 10 are added
together to produce the sum of 15 .
Which of the following is a valid variable name in Python?
A) 2ndName
B) my-name
,C) my_name
D) class
Correct Answer: C
Rationale: Python variable names cannot start with a digit (eliminating
2ndName), cannot contain hyphens (eliminating my-name), and cannot be
reserved keywords like class (eliminating class). Underscores are allowed
and commonly used, so my_name is valid .
Which data type is immutable?
A) list
B) dict
C) set
D) tuple
Correct Answer: D
Rationale: Tuples cannot be changed after creation, making them
immutable. Lists, dictionaries, and sets are all mutable data types that can
be modified after creation .
What is the output of print(type())?
A) int
B) float
C) double
D) str
Correct Answer: B
Rationale: In Python, the division operator / always returns a float, even if
the numbers divide evenly. Therefore, evaluates to 5.0,
and type(5.0) returns float. Python does not have a
separate double type .
What will this code print?
,python
x = "Hello"
print(x[1])
A) H
B) e
C) l
D) o
Correct Answer: B
Rationale: String indexing in Python starts at 0. Therefore, index 0 is 'H',
index 1 is 'e', index 2 is 'l', index 3 is 'l', and index 4 is 'o'. The code prints
the character at index 1, which is 'e' .
What is the output of print("Python"[2:5])?
A) Pyt
B) tho
C) yth
D) hon
Correct Answer: B
Rationale: String slicing uses the syntax [start:end], where start is
inclusive and end is exclusive. Index 0:'P', 1:'y', 2:'t', 3:'h', 4:'o', 5:'n'. Slicing
from index 2 to 5 gives characters at indices 2, 3, and 4: "tho" .
What is the output of the following code?
python
x = "5"
y = 2
print(x * y)
A) 10
B) Error
, C) "55"
D) 7
Correct Answer: C
Rationale: When a string is multiplied by an integer, Python repeats
(concatenates) the string that many times. Here, the string "5" is repeated 2
times, resulting in the string "55". This is known as string replication .
Which operator is used to check if two values are equal in Python?
A) =
B) ==
C) !=
D) ===
Correct Answer: B
Rationale: == is the equality comparison operator. = is
assignment. != means not equal. === is not valid in Python .
Given my_list = [1, 2, 3, 4], what does my_list[2] return?
A) 1
B) 2
C) 3
D) 4
Correct Answer: C
Rationale: Python list indexing starts at 0. Index 2 gives the third element,
which is 3 .
Which of the following is NOT a valid operator in Python 3?
A) //
B) %
C) <>
D) **
The Complete 2026 Edition Practice
Exam —Certified-Style Questions with
In-Depth Answers, Rationales, and
Python Concept Mapping for
Guaranteed Exam Readiness
What is the output of the following code?
python
x = 5
y = 10
print(x + y)
A) 510
B) 15
C) Error
D) 5 10
Correct Answer: B
Rationale: The + operator performs arithmetic addition when both
operands are integers (or numeric types). The values 5 and 10 are added
together to produce the sum of 15 .
Which of the following is a valid variable name in Python?
A) 2ndName
B) my-name
,C) my_name
D) class
Correct Answer: C
Rationale: Python variable names cannot start with a digit (eliminating
2ndName), cannot contain hyphens (eliminating my-name), and cannot be
reserved keywords like class (eliminating class). Underscores are allowed
and commonly used, so my_name is valid .
Which data type is immutable?
A) list
B) dict
C) set
D) tuple
Correct Answer: D
Rationale: Tuples cannot be changed after creation, making them
immutable. Lists, dictionaries, and sets are all mutable data types that can
be modified after creation .
What is the output of print(type())?
A) int
B) float
C) double
D) str
Correct Answer: B
Rationale: In Python, the division operator / always returns a float, even if
the numbers divide evenly. Therefore, evaluates to 5.0,
and type(5.0) returns float. Python does not have a
separate double type .
What will this code print?
,python
x = "Hello"
print(x[1])
A) H
B) e
C) l
D) o
Correct Answer: B
Rationale: String indexing in Python starts at 0. Therefore, index 0 is 'H',
index 1 is 'e', index 2 is 'l', index 3 is 'l', and index 4 is 'o'. The code prints
the character at index 1, which is 'e' .
What is the output of print("Python"[2:5])?
A) Pyt
B) tho
C) yth
D) hon
Correct Answer: B
Rationale: String slicing uses the syntax [start:end], where start is
inclusive and end is exclusive. Index 0:'P', 1:'y', 2:'t', 3:'h', 4:'o', 5:'n'. Slicing
from index 2 to 5 gives characters at indices 2, 3, and 4: "tho" .
What is the output of the following code?
python
x = "5"
y = 2
print(x * y)
A) 10
B) Error
, C) "55"
D) 7
Correct Answer: C
Rationale: When a string is multiplied by an integer, Python repeats
(concatenates) the string that many times. Here, the string "5" is repeated 2
times, resulting in the string "55". This is known as string replication .
Which operator is used to check if two values are equal in Python?
A) =
B) ==
C) !=
D) ===
Correct Answer: B
Rationale: == is the equality comparison operator. = is
assignment. != means not equal. === is not valid in Python .
Given my_list = [1, 2, 3, 4], what does my_list[2] return?
A) 1
B) 2
C) 3
D) 4
Correct Answer: C
Rationale: Python list indexing starts at 0. Index 2 gives the third element,
which is 3 .
Which of the following is NOT a valid operator in Python 3?
A) //
B) %
C) <>
D) **