Unit 3 Theory Self-Assessment Attempt Review - 1
Unit 3 Theory Self-Assessment Attempt Review - 1
QUIZ
Question 1
Correct
The range (x, y) returns a list of items that are consecutive integers from _______.
a. x (included) to y (excluded).
b. x (excluded) to y (excluded)
c. x (excluded) to y (included)
d. x (included) to y (included)
Question 2
Correct
a. sequence
b. pickling
c. decision
d. repetition
1 of 2 2023/10/10, 21:03
Unit 3 Theory Self-Assessment: Attempt review https://mymodules.dtls.unisa.ac.za/mod/quiz/review.php?attempt=1409...
Question 3
Correct
The ______ statement stops execution of the current iteration by skipping the rest
of the loop and continuing to execute the loop with the next iterative value.
a. continue
b. halt
c. break
d. go
Question 4
Correct
The ____ function generates and returns a sequence of integers, and is used in
looping statements.
a. ranger()
b. arrange()
c. ranges()
d. range()
Question 5
Correct
a. hashtags
b. only spaces
c. tabs or spaces
d. commas
2 of 2 2023/10/10, 21:03