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

Wgu C859 Python Test Questions And Answers 2024

Document preview thumbnail
Preview 2 out of 7 pages

WGU C859 PYTHON TEST QUESTIONS AND ANSWERS 2024

Content preview

WGU C859 PYTHON TEST

os.link() - ANSWERS-create a hard link pointing to a source



os.getcwd() - ANSWERS-returns string of current working directory



os.chroot() - ANSWERS-change the root directory of current process path



os.remove() - ANSWERS-remove/delete the file path



os.rmdir() - ANSWERS-remove/delete a directory



random.randrange(start,stop, step) - any or all arguments - ANSWERS-return a
randomly selected element



random.randint(a,b) - ANSWERS-return a random integer greater than a, less than
b



random.random() - ANSWERS-return next random floating point; range 0.0 to 1.0



random.choice(seq) - ANSWERS-seq = list; return a random element from the list

, import matplotlib.pyplot - ANSWERS-generates many kinds of plots quickly; works
like MATLAB



PIL.image.open() - ANSWERS-opens up an image



PIL.image.new() - ANSWERS-creates new image



PIL.image.show() - ANSWERS-displays image for debugging



PIL.image.save() - ANSWERS-saves an image in a given filename



pandas.describe() - ANSWERS-generates descriptive statistics, stats summary



pandas.series() - ANSWERS-dataframe; 2 dimensional labeled data structure



slicing (with 9 elements, grabbing the first 3) - ANSWERS-my_list[:3] upper bound
is exclusive



slicing(with 9 elements, grabbing the last 3) - ANSWERS-my_list[6:] lower bound is
inclusive



slicing(with 9 elements, grabbing middle 3) - ANSWERS-my_list[3:6]

Document information

Uploaded on
September 29, 2024
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$18.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

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.
Teacher101
4.6
(279)
Sold
548
Followers
74
Items
11970
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