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

WGU D335 Intro To Python | OA | Objective Assessment | 14 Actual Questions And Answers | 2025 Update | 100% Correct.

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

WGU D335 Intro To Python | OA | Objective Assessment | 14 Actual Questions And Answers | 2025 Update | 100% Correct.











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

Document information

Uploaded on
December 12, 2025
Number of pages
27
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

WGU D335
WGU D335 Intro To Python | OA | Objective

Assessment | 15 Actual Questions And Answers | 2025

Update | 100% Correct.




1 of 14




Create a solution that accepts five integer inputs. Output the sum of
the five inputs three times, converting the inputs to the requested data
type prior to finding the sum.
First output: sum of five inputs maintained as integer values
Second output: sum of five inputs converted to float values
Third output: sum of five inputs converted to string values
(concatenate)


The solution output should be in the format

,Integer: integer_sum_value Float: float_sum_value String:
string_sum_value




I_V = int(input())
if -1 <= I_V < len(various_data_types):
element = various_data_types [I_V]
D_T_N = str(type(element)).split("'")[1]
print(f' Element {I_V}: {D_T_N}')




commute = {
'Employee A': 15.62,
'Employee B': 41.85,
'Employee C': 32.67
}
travels = {
'Employee A': int(input()),
'Employee B': int(input()),
'Employee C': int(input())
}
t_d_t = sum(commute[employee]*travels[employee] for employee in travels)
print(f'Distance: {t_d_t:.2f} miles')




base_1 = int(input())
base_2 = int(input())
height = int(input())
area = 0.5 (base_1 + base_2) height
print(f'Trapezoid area: {area:.1f} square meters')

, input1 = int(input())
input2 = int(input())
input3 = int(input())
input4 = int(input())
input5 = int(input())
intger_sum = input1 + input2 + input3 + input4 + input5
float_sum = float(input1 + input2 + input3 + input4 + input5)
string_sum = str(input1) + str(input2) + str(input3) + str(input4) + str(input5)
print(f'Integer: {intger_sum}')
print(f'Float: {float_sum}')
print(f'String: {string_sum}')


2 of 14

Definition



id_num = int(input())


format_id_num = f'{id_num // 1000000}-{(id_num // 10000) % 100}-{id_num
% 10000:04d}'


print(format_id_num)




Task:
Create a solution that accepts an integer input. Im͘port the built-in m͘odule m͘ath and
use its factorial() m͘ethod to calculate the factorial of the integer input. Output the
value of the factorial, as well as a Boolean value identifying whether the factorial
output is greater than 100.


The solution output should be in the form͘at
factorial_value Boolean_value
$13.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
EngJohn

Get to know the seller

Seller avatar
EngJohn Chamberlain University
View profile
Follow You need to be logged in order to follow users or courses
Sold
New on Stuvia
Member since
1 day
Number of followers
0
Documents
10
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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