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

WGU D335 Exam 2026/2027 Actual Exam | 100% Correct Answers | Complete Resource with Verified Solutions | Updated for Current WGU Information Technology Standards | Pass Guaranteed - A+ Graded

Document preview thumbnail
Preview 4 out of 37 pages

Master information technology concepts and pass your WGU D335 Exam with confidence using this 2026/2027 complete resource. This comprehensive guide features 100% correct answers covering all critical domains: operating systems fundamentals, networking concepts, security principles, scripting and programming basics, and hardware components. Every solution aligns with current Western Governors University D335 course objectives and IT program requirements. Detailed explanations reinforce essential concepts and help you understand core information technology principles needed for degree progression. Prepare efficiently and excel in your WGU IT program. Backed by our Pass Guarantee. Download now.

Content preview

1



WGU D335 Exam 2026/2027 Actual Exam | 100%
Correct Answers | Complete Resource with
Verified Solutions | Updated for Current WGU
Information Technology Standards | Pass
Guaranteed - A+ Graded
Section 1: Programming Fundamentals & Python Basics (Questions 1-20)

Q1: In Python, which of the following is a valid variable name?
A. 2nd_value

B. my-variable

C. my_variable [CORRECT]

D. my variable

Correct Answer: C

Rationale: Python variable names must start with a letter or underscore, contain only letters,
numbers, and underscores, and cannot contain spaces or hyphens; "my_variable" follows all
naming conventions.

Q2: What data type is the result of the expression in Python 3?

A. int

B. float [CORRECT]

C. string
D. boolean

Correct Answer: B

Rationale: In Python 3, the division operator (/) always returns a float result, even when dividing
two integers; returns 2.5 as a float, unlike floor division (//) which returns an integer.

Q3: Which function is used to get user input from the keyboard in Python?

A. get()
B. input() [CORRECT]

C. read()
1

,2


D. scan()

Correct Answer: B

Rationale: The built-in input() function reads a line from standard input, converts it to a string
(stripping the trailing newline), and returns that string; the result is always of type str and may
need conversion for numeric use.

Q4: What is the output of print(10 % 3)?

A. 3.33

B. 1 [CORRECT]

C. 3
D. 0

Correct Answer: B

Rationale: The modulo operator (%) returns the remainder of division; 10 divided by 3 equals 3
with a remainder of 1, so 10 % 3 evaluates to 1.

Q5: Which operator is used for exponentiation in Python?

A. ^

B. ** [CORRECT]

C. *

D. //

Correct Answer: B
Rationale: The double asterisk (**) is the exponentiation operator in Python; 2 ** 3 evaluates to
8 (2 cubed), while ^ is the bitwise XOR operator, not exponentiation.
Q6: What is the result of type(3.14) in Python?

A. <class 'int'>

B. <class 'float'> [CORRECT]

C. <class 'str'>

D. <class 'double'>

Correct Answer: B
Rationale: The type() function returns the data type of an object; 3.14 is a floating-point number,
so type(3.14) returns <class 'float'>; Python does not have a separate 'double' type.
2

,3


Q7: Which of the following correctly converts the string "42" to an integer?

A. str("42")

B. int("42") [CORRECT]

C. float("42")
D. convert("42")

Correct Answer: B

Rationale: The int() function converts a string or number to an integer; int("42") returns the
integer 42, while str() would create a string, float() would create 42.0, and convert() is not a
built-in function.
Q8: What is the value of the expression 5 + 3 * 2 in Python?

A. 16

B. 11 [CORRECT]

C. 13

D. 10

Correct Answer: B

Rationale: Python follows operator precedence (PEMDAS/BODMAS); multiplication has higher
precedence than addition, so 3 * 2 is evaluated first (6), then 5 + 6 equals 11.

Q9: Which symbol is used for single-line comments in Python?

A. //
B. /* /

C. # [CORRECT]

D. --

Correct Answer: C

Rationale: The hash symbol (#) indicates a single-line comment in Python; everything after # on
that line is ignored by the interpreter; Python does not use // or / */ as in C-style languages.

Q10: What is the output of print("Hello" + " " + "World")?

A. HelloWorld
B. Hello World [CORRECT]


3

, 4


C. Hello+World

D. Error

Correct Answer: B

Rationale: The + operator concatenates strings in Python; "Hello" + " " + "World" combines the
three strings into "Hello World" with a space between the words.

Q11: Which function converts a number to a string in Python?

A. int()
B. float()

C. str() [CORRECT]
D. char()

Correct Answer: C

Rationale: The str() function converts an object to its string representation; str(42) returns "42",
str(3.14) returns "3.14", enabling concatenation with other strings.

Q12: What is the boolean value of the expression 5 == 5?

A. False

B. True [CORRECT]
C. 5

D. None

Correct Answer: B

Rationale: The comparison operator == tests for equality; since 5 equals 5, the expression
evaluates to the boolean value True, not the integer 5 or None.

Q13: Which escape sequence represents a newline in Python strings?

A. \t

B. \n [CORRECT]

C. \r

D. \
Correct Answer: B



4

Document information

Uploaded on
March 10, 2026
Number of pages
37
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$16.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.
STUVIAACTUALEXAMS
3.5
(178)
Sold
1346
Followers
209
Items
10317
Last sold
1 hour 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