- | P a g e
WGU D335 OA /WGU D335 INTRODUCTION TO
PYTHON OA FINAL EXAM NEWEST 2025
ACTUAL EXAM COMPLETE 200 QUESTIONS
AND CORRECT DETAILED ANSWERS
(VERIFIED ANSWERS) |ALREADY GRADED
A+|BRAND NEW!!
### Boolean and Logical Operations
QUESTION: What type of data results from the last line of the
code: `a += 10; b += 20; a == b`?
Answer: What type of data results from the last line of the
following code: a += 10 b += 20 a == b A. A logical operator.
- A Boolean. C. An expression. D. A conditional. B. A
Boolean.
QUESTION: Which of the following is an example of a
Boolean expression?
Answer: Which of the following is an example of a Boolean
expression? A. a = a + b B. a = 10 C. a += b D. a % b == 2 D. a % b == 2
QUESTION: What is the keyword `True` in Python an example
of?
Answer: The keyword True in Python is an example of which of
the following? A. A logical operator. B. A Boolean. C. A conditional. D. An expression. B. A Boolean.
- | P a g e
QUESTION: In Python, what are the keywords `and`, `or`, and
`not` examples of?
Answer: In Python the following keywords are examples of
what? and or not A. Logical operators. B. Boolean operators. C.Expressions. D. Conditional statements. A. Logical operators.
QUESTION: Given `a is true`, `b is false`, `c is true`, which
statement is correct?Answer: Consider the following: a is true b is false c is true then which of the following statements is correct? A. a and b and c is true B. not b or c is false C. b and not a is true D. a and b and c is false D. a and b and c is false
QUESTION: What is NOT true of Boolean functions?
Answer: Which of the following is NOT true of Boolean
functions? A. The Boolean value can be captured in a variable from the calling code. B. They must be named in such a way as to Answer a yes/no QUESTION. C. They can have multiple return statements but only one return statement can be executed in a given run of the function. D. They can be used directly in a conditional statement. B. They must be named in such a way as to Answer a yes/no QUESTION.
### Data Structures (Dictionaries, Lists, Tuples)
- | P a g e
QUESTION: What does the `+` operator do when used on two
lists?
Answer: The plus sign '+' operator performs what task when
used on two lists? A. index shifting B. concatenation C.summation D. addition B. concatenation
QUESTION: What does the `is` operator check?
Answer: The "is" operator checks which of the following? A.
Whether two lists have the same number of elements. B.Whether two variables refer to the same object. C. Whether two variables have equivalent values. D. Whether two strings have the same value. B. Whether two variables refer to the same object.
QUESTION: In a list slice, if the second number is omitted,
what is the last index of the sliced data?
Answer: In a list slice, if the second number is omitted, what
will be the last index of the sliced data? A. One more than the first number used in the slice. B. The second to last index of the list. C. The last index of the list. D. The first index of the list. B.The second to last index of the list.
QUESTION: What is NOT true of lists in Python?
Answer: Which of the following is NOT true of lists in Python?
- They can contain lists. B. They can contain mixed data types.
- | P a g e
- They must hold at least one element. D. The data at any
position in the list can be changed. C. They must hold at least one element.
QUESTION: Which of the following is NOT a list method?
Answer: Which of the following is NOT a list method? A.
append B. sort C. remove D. len D. len
QUESTION: What is true about using a `for` loop with `range`
to access list items that is not true when looping directly over list items?Answer: What is true about using a "for" loop with a "range" to access list items that is not true when a "for" loop is used to loop over the list items directly? A. You can find the length of the list. B. You can update the items in the list. C. You can guarantee that the loop will run at least once. D. You can print the items from the list. B. You can update the items in the list.
QUESTION: What does the `split` method of a string produce?
Answer: The "split" method of a string produces which of the
following? A. A list of words. B. The number of spaces used in the string. C. The a list of letters. D. The number of characters used to connect the string. A. A list of words.