• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 120 pages
Exam (elaborations)

WGU D335 OA Introduction to Programming in Python Objective Assessment Actual Questions with Verified Answers New 2025.pdf

Document preview thumbnail
Preview 4 out of 120 pages

WGU D335 OA Introduction to Programming in Python Objective Assessment Actual Questions with Verified Answers New

Content preview

WGU D335 OA Introduction to
Programming in Python Objective
Assessment Actual Questions with
Verified Answers New 2025/2026
Update 100% Correct.
1. What is the output?

x = 10

y=3

print(x + y)

A. 7
B. 13
C. 30
D. 103

Answer: B. 13
Rationale: The + operator adds the two integer values.



2. Which symbol is used for assignment in Python?

A. ==
B. !=
C. =
D. :=

Answer: C. =
Rationale: A single equals sign assigns a value to a variable. == tests equality.



3. What is the output?

,print(10 - 4)

A. 6
B. 14
C. -6
D. 40

Answer: A. 6
Rationale: Subtracting 4 from 10 produces 6.



4. What data type is 25?

A. str
B. float
C. bool
D. int

Answer: D. int
Rationale: Whole numbers without a decimal component are integers.



5. What data type is 25.0?

A. int
B. float
C. str
D. bool

Answer: B. float
Rationale: A number containing a decimal point is normally represented as a floating-point
value.



6. What is the output?

print()

A. 3
B. 3.0
C. 3.5
D. 4

,Answer: C. 3.5
Rationale: / performs true division and returns a floating-point result.



7. What is the output?

print(7 // 2)

A. 3
B. 3.5
C. 4
D. 1

Answer: A. 3
Rationale: // performs floor division. For these positive operands, the result is 3.



8. What is the output?

print(10 % 3)

A. 0
B. 1
C. 3
D. 3.33

Answer: B. 1
Rationale: % returns the remainder after division. Ten divided by three leaves a remainder of
one.



9. What is the output?

print(2 ** 3)

A. 5
B. 6
C. 8
D. 9

Answer: C. 8
Rationale: ** is the exponentiation operator: 2³ = 8.

, 10. Which expression checks whether x equals 10?

A. x = 10
B. x == 10
C. x != 10
D. x === 10

Answer: B. x == 10
Rationale: == compares two values for equality.



11. What is the output?

x=5

x += 3

print(x)

A. 3
B. 5
C. 8
D. 15

Answer: C. 8
Rationale: x += 3 is equivalent to x = x + 3.



12. What is the value of x?

x = 10

x -= 4

A. 4
B. 6
C. 10
D. 14

Answer: B. 6
Rationale: Subtracting four from ten leaves six.

Document information

Uploaded on
October 4, 2026
Number of pages
120
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$17.99

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

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GradeAchiver
2.3
(4)
Sold
40
Followers
2
Items
3488
Last sold
1 day 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