• 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 3 out of 22 pages
Exam (elaborations)

WGU E010 Foundations of Programming (Python) 2026 Practice Assessment

Document preview thumbnail
Preview 3 out of 22 pages

WGU E010 Foundations of Programming (Python) 2026 Practice Assessment WGU E010 Foundations of Programming (Python) 2026 Practice Assessment

Content preview

WGU E010 Foundations of Programming (Python)
2026 Practice Assessment
1. Which symbol begins a single-line comment in Python?

A. //
B. #
C. *
D. %

Answer: B. #
Rationale: Python uses # for single-line comments.



2. What data type is 3.14?

A. Integer
B. Float
C. String
D. Boolean

Answer: B. Float
Rationale: Numbers with decimals are floats.



3. What follows the in keyword in a for loop?

A. Condition
B. Iterable
C. Number
D. Function

Answer: B. Iterable
Rationale: Loops iterate over lists, strings, etc.



4. Which loop is used when the number of iterations is known?

A. while
B. for
C. infinite
D. do-while

Answer: B. for
Rationale: for loops iterate a fixed number of times.



1|Page

,5. A while loop requires:

A. Variable only
B. Condition + indented block
C. Break statement
D. List

Answer: B. Condition + indented block
Rationale: Loop runs while condition is True.



6. Which keyword exits a loop early?

A. stop
B. break
C. return
D. exit

Answer: B. break
Rationale: break terminates loop immediately.



7. In for item in list, item is:

A. Index
B. Value
C. Length
D. List

Answer: B. Value
Rationale: Iterates over elements.



8. Which structure prevents duplicates?

A. List
B. Tuple
C. Dictionary
D. Set

Answer: D. Set
Rationale: Sets store unique values only.



9. Which is immutable?

A. List
B. Dict

2|Page

, C. Tuple
D. Set

Answer: C. Tuple
Rationale: Tuples cannot be changed.



10. To run Python code from a file:

A. Compile
B. Upload
C. Save + interpreter
D. Convert

Answer: C
Rationale: Python uses an interpreter.



11. Advantage of integrated terminal:

A. Faster
B. More libraries
C. No switching apps
D. Debugging

Answer: C
Rationale: Improves workflow.



12. Navigate directory command:

A. move
B. cd
C. goto
D. nav

Answer: B
Rationale: cd = change directory.



13. Interactive Python tool:

A. Editor
B. Shell
C. Browser
D. Debugger



3|Page

Document information

Uploaded on
May 26, 2026
Number of pages
22
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$23.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.
JAYDEN254
5.0
(4229)
Sold
352
Followers
22
Items
3389
Last sold
5 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