Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 81 pages
Exam (elaborations)

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

Document preview thumbnail
Preview 4 out of 81 pages

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

Content preview

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

Document information

Uploaded on
August 19, 2026
Number of pages
81
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$20.49

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

Sold
5
Followers
0
Items
1013
Last sold
3 days 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