Algorithms, flow charts and bin packing Quiz
Studying this course? Keep your progress in one place.
Pick an answer for each. Quizzes never use energy.
5 questions, one answer each
Each answer is checked as you go, with why.
See all 5 questions
1. In a list of 9 items, which position is the middle item?
- A. 4th
- B. 5th
- C. 6th
- D. 9th
2. In a list of 6 items, which position is the middle item?
- A. 3rd
- B. 3.5th
- C. 4th
- D. 5th
3. Items total 47 and the bins hold 10 each. What is the lower bound for the number of bins?
- A. 5
- B. 4
- C. 6
- D. 10
4. Capacity 10, items 6, 5, 4, 7, 3, 5 in this order. How many bins does first-fit use?
- A. 3
- B. 4
- C. 5
- D. 6
5. Set . Repeat: replace by until , then print . What is printed?
- A. 15
- B. 20
- C. 63
- D. 31