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
Exam (elaborations)

WGU D335 Practice Test – Set 2 (Updated & Exam-Focused)

Rating
-
Sold
-
Pages
12
Grade
A+
Uploaded on
22-01-2026
Written in
2025/2026

This document contains WGU D335 Practice Test – Set 2, created to closely reflect the current exam format, difficulty level, and key competencies tested in the course. It is ideal for students who want additional practice beyond the first set, helping to reinforce understanding, identify weak areas, and improve confidence before attempting the Objective Assessment (OA). What’s included: A second set of D335-style practice questions Coverage of core and commonly tested topics Exam-focused structure and wording Useful for self-assessment and revision Designed to complement other D335 study materials

Show more Read less
Institution
WGU
Course
WGU

Content preview

WGUD335PRACTICETEST2WITHCOMPLETE s s s s s s




SOLUTIONS s




1. CreateBGaBGsolutionBGthatBGacceptsBGthreeBGintegerBGinputsBGrepresentingBGthe
s s s s s s s s s




BGnumber BGof BGtimes BGan BGemployee BGtravels BGto BGa BGjob BGsite. BGOutput BGthe
s s s s s s s s s s s s




BGtotal BGdistance BGtraveled BGtoBGtwoBGdecimalBGplacesBGgivenBGtheBGfollowing
s s s s s s s s s s




BGmilesBGperBGemployeeBGcommuteBGtoBGthe BGjob BGsite. BGOutput BGthe BGtotal
s s s s s s s s s s s




BGdistance BGtraveled BGto BGtwo BGdecimal BGplaces BGgiven BGthe BGfollowing BGmiles
s s s s s s s s s s




BGper BGemployee BGcommute BGto BGthe BGjob BGsite:
s s s s s s s




EmployeeBGA:BG15.62 s s




BGmiles BGEmployee BGB:
s s s




BG41.85 BGmiles
s s




EmployeeBGC:BG32.67BGmiles:BGtimes_traveledABG=BGint(input())
s s s s s s




BGtimes_traveledB BG= BGint(input())
s s s




times_traveledCBG=BGint(input()) s s




BGemployeeA BG= BG15.62 BG#miles
s s s s




BGemployeeB BG= BG41.85 BG#miles
s s s s




BGemployeeC BG= BG32.67 BG#miles
s s s s




distance_traveledA BG= BGtimes_traveledA BG* s s s




BGemployeeA
s BGdistance_traveledB BG= s s




BGtimes_traveledB
s BG* BGemployeeB s s




BGdistance_traveledC
s BG= BGtimes_traveledC BG* s s s




BGemployeeC
s




total_miles_traveled BG= BGdistance_traveledA BG+ BGdistance_traveledB BG+ s s s s s




BGdistance_trav- BGeledC
s s




print('Distance:BG{:.2f} BGmiles'.format(total_miles_traveled)) s s




2. CreateBGaBGsolutionBGthatBGacceptsBGanBGinputBGidentifyingBGtheBGnameBGofBGa
s s s s s s s s s s s




BGtextBGfile,BGfor BGexample,BG"WordTextFile1.txt".BGEachBGtextBGfileBGcontains
s s s s s s s s s




BGthreeBGrowsBGwithBGoneBGword BGper BGrow. BGUsing BGthe BGopen() BGfunction BGand
s s s s s s s s s s s s




BGwrite() BGand BGread() BGmethods, BGinteract BGwith BGthe BGinput BGtext BGfile BGto
s s s s s s s s s s s




BGwrite BGa BGnew BGsentence BGstring BGcomposed BGof BGthe BGthree BGexisting
s s s s s s s s s s




BGwords BGto BGthe BGend BGof BGthe BGfile BGcontents BGon BGa BGnew BGline. BGOutput
s s s s s s s s s s s s s




BGthe BGnew BGfile BGcontents.: BGfile_name BG= BGinput()
s s s s s s s




with BGopen(file_name, BG'r') BGas BGf:
s s s s




word1 BG= s




BGstr(f.readline()).strip()
s




BGword2
s BG= s




1BG/s




BG12
s

, BG
s str(f.readline()).strip()
BGword3
s BG
s =
BGstr(f.readline()).strip()
s




f BG= BGopen(file_name, BG'r')
s s s




BGlinesBG=
s s




BGf.read().splitlines() BGlines
s s




BG= BG' BG'.join(lines)
s s s




BGf.close()
s




print(f'{word1}\n{word2}\n{word3}\n{lines}')
3. CreateBGaBGsolutionBGthatBGacceptsBGanBGintegerBGinputBGrepresentingBGany
s s s s s s s s s




BGnumberBGof BGounces. BGOutput BGthe BGconverted BGtotal BGnumber BGof BGtons,
s s s s s s s s s s




BGpounds, BGand BGremaining BGouncesBGbasedBGonBGtheBGinputBGouncesBGvalue.
s s s s s s s s s s




BGThereBGareBG16BGouncesBGinBGaBGpoundBGand BG2,000 BGpounds BGin BGa BGton.:
s s s s s s s s s s s s s




BGounces_per_pound BG= BG16
s s s




2BG/ s




BG12
s

Written for

Institution
Course

Document information

Uploaded on
January 22, 2026
Number of pages
12
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.89
Get access to the full document:

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

Get to know the seller
Seller avatar
HIGHSTAR
5.0
(1)

Also available in package deal

Thumbnail
Package deal
WGU D449 Psychiatric and Mental Health Nursing Practice Exam 2 – Questions, Verified Answers & Rationales (2025)
-
5 2026
$ 39.77 More info

Get to know the seller

Seller avatar
HIGHSTAR Teachme2-tutor
View profile
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
10 months
Number of followers
0
Documents
88
Last sold
1 month ago
KNOWLEDGE NEST

Clear , Concise and exam- focused materials for quick revision and better grades. Available 24/7

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0

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