- True/False questions 1-4 on page 460 (Chapter 13)
- Multiple choice questions 1, 2, and 6 on page 461 (Chapter 13)
- Discussion question 1 on page 462 (Chapter 13)
- Write a function to return the index of the smallest item
in a given list.
- Show the values for low, high, and mid for each step in searching the list
L for the value x using binary search.
x = 99
L = [-20, -12, -4, 1, 7, 44, 45, 46, 58, 67, 99, 145] low mid high
----------------
- Given the following definition:
ls = ["fish", "squirrel", "cat", "dog", "monkey", "pony"]
What are the value and type of the following expressions:
(1) ls[3] > "apple"
(2) ls
(3) ls[3]
(4) ls[3][1]
(5) 'b' < 'f'
- Show how the following list would be changed after selection
sort does its first 3 swaps:
[15, 99, 4, 30, 3, 82, 7, 42]