100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

WGU D335 OBJECTIVE ASSESSMENT AND PRE ASSESSMENT NEWEST 2025 TEST BANK| D335 INTRODUCTION TO PROGRAMMING IN PYTHON FINAL EXAM PREP WITH COMPLETE 300 REAL EXAM QUESTIONS AND CORRECT VERIFIED ANSWERS/ GRADED A+ (MOST RECENT!!)

Rating
-
Sold
-
Pages
83
Grade
A+
Uploaded on
06-10-2025
Written in
2025/2026

WGU D335 OBJECTIVE ASSESSMENT AND PRE ASSESSMENT NEWEST 2025 TEST BANK| D335 INTRODUCTION TO PROGRAMMING IN PYTHON FINAL EXAM PREP WITH COMPLETE 300 REAL EXAM QUESTIONS AND CORRECT VERIFIED ANSWERS/ GRADED A+ (MOST RECENT!!)

Show more Read less
Institution
WGU D335
Course
WGU D335











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
WGU D335
Course
WGU D335

Document information

Uploaded on
October 6, 2025
Number of pages
83
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • wgu d335
  • wgu d335 oa

Content preview

1|Page


WGU D335 OBJECTIVE ASSESSMENT AND PRE-
ASSESSMENT NEWEST 2025 TEST BANK| D335
INTRODUCTION TO PROGRAMMING IN PYTHON
FINAL EXAM PREP WITH COMPLETE 300 REAL
EXAM QUESTIONS AND CORRECT VERIFIED
ANSWERS/ GRADED A+ (MOST RECENT!!)


A(n) _____ is the part of a program in which a variable may be
accessed.
A. declaration space
B. area of visibility
C. scope
D. mode – Correct Answer - C


A(n) _____ is a piece of data that is sent into a function.
A. argument
B. parameter
C. header
D. packet – Correct Answer - A


A(n) ____ is a special variable that receives a piece of data when a
function is called.
A. argument


pg. 1

,2|Page


B. parameter
C. header
D. packet – Correct Answer - B


A variable that is visible to every function in a program file is a .
A. local variable
B. universal variable
C. program-wide variable
D. global variable – Correct Answer - D


When possible, you should avoid using _____ variables in a program.
A. local
B. global
C. reference
D. parameter – Correct Answer - B


This is a prewritten function that is built into a programming language.
A. standard function
B. library function
C. custom function
D. cafeteria function – Correct Answer - B




pg. 2

,3|Page


This standard library function returns a random integer within a
specified range of values.
A. random
B. randint
C. random_integer
D. uniform – Correct Answer - B


This type of function returns either True or False.
A. Binary
B. true_false
C. Boolean
D. logical – Correct Answer - C


Create a solution that accepts an integer input identifying how many
shares of stock are to be purchased from the Old Town Stock Exchange,
followed by an equivalent number of string inputs representing the stock
selections. The following dictionary stock lists available stock selections
as the key with the cost per selection as the value.
stocks = {'TSLA': 912.86 , 'BBBY': 24.84, 'AAPL': 174.26, 'SOFI': 6.92,
'KIRK': 8.72, 'AURA': 22.12, 'AMZN': 141.28, 'EMBK': 12.29, 'LVLU':
2.33}
Output the total cost of the purchased shares of stock to two decimal
places.
The solution output should be in the format


pg. 3

, 4|Page


Total price: $cost_of_stocks - ANSWER - num_stock = int(input())
cost_of_stocks = 0
for _ in range(num_stock):
stock_selection = input()
if stock_selection in stocks:
cost_of_stocks += stocks[stock_selection]
print(f"Total price: ${cost_of_stocks:.2f}")


When an exception is generated, it is said to have been .
A. built
B. raised
C. caught
D. killed – Correct Answer - B


This is a section of code that gracefully responds to exceptions.
A. exception generator
B. exception manipulator
C. exception handler
D. exception monitor – Correct Answer - C


You write this statement to respond to exceptions.
A. run/handle


pg. 4

Get to know the seller

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.
ASSIGNMENT7 Walden University
View profile
Follow You need to be logged in order to follow users or courses
Sold
432
Member since
1 year
Number of followers
17
Documents
2908
Last sold
1 hour ago
ACTUAL EXAMS, EXAM REVIEW AND STUDY GUIDE PLUG.

UNLOCK YOUR ACADEMIC SUCCESS, GAIN ACCESS TO EXPERTLY CRAFTED ACTUAL EXAMS, FLASHCARDS, TESTBANKS AND STUDY GUIDES ON THIS ACCOUNT, ELEVATE YOUR LEARNING EXPERIENCE AND ACHIEVE TOP GRADES WITH MY COMPREHENSIVE AND TIME SAVING RESOURCE. WISHING YOU GOOD LUCK IN YOUR EXAMS!!

4.0

89 reviews

5
39
4
21
3
22
2
2
1
5

Recently viewed by you

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

Frequently asked questions