D335 Final Exam (Latest Update )
Introduction to Programming in Python | All
chapters Questions and Answers | Grade A |
100% Correct. WGU
1. **The = operator is an example of a(n)**
ANS Augmented assignment operator
2. **A(n) is a special value that signals when there are no more items from a
list of items to be processed. This value cannot be mistaken as an item from
the list**
ANS Sentinel
3. **It is that a condition-controlled loop always repeats a specific number of
times**
ANS False
, 2
4. **x = x-1 does?**
ANS Subtracts 1 from x
5. **It is necessary to initialize**
ANS Accumulator variables
6. **In a the inner loop goes through all of its iterations for every single
iteration of the outer loop**
ANS Nested loop
7. **The loop iterates as long as a condition is true**
ANS While loop
8. **The iterates over the elements of a sequence**
ANS For loop
9. **And never executes its loop body when the starting value is greater than
the ending value**