Computer science · University
Lists, dictionaries and iteration
An ordered mutable collection addressed by position.
Prerequisites
Basic computer literacy.
Study notes
List
An ordered mutable collection addressed by position.
Dictionary
A mapping from keys to values.
Index
A position used to access an item in a sequence.
Traversal
Visiting items in a collection systematically.
Worked examples
Which term best matches this description: An ordered mutable collection addressed by position.
List is the matching concept in this lesson.
List
Which term best matches this description: A mapping from keys to values.
Dictionary is the matching concept in this lesson.
Dictionary
Check your understanding
Which concept would you apply first in a situation where a position used to access an item in a sequence.
- Dictionary
- Traversal
- Index
- List
Name the concept described as: Visiting items in a collection systematically.
Which statement about List is most accurate?
- An ordered mutable collection addressed by position.
- Visiting items in a collection systematically.
- A mapping from keys to values.
- A position used to access an item in a sequence.
Explain one important difference between List and Dictionary.
Answers and marking guidance
Answers and marking notes
- Index
The scenario directly calls for Index.
- Traversal
The intended concept is Traversal.
- An ordered mutable collection addressed by position.
The definition in the lesson notes gives the required condition.
- List: An ordered mutable collection addressed by position. Dictionary: A mapping from keys to values.
Credit a clear distinction using both definitions and an appropriate example if supplied.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.
AI-assisted preview; independent educational review required. Level labels describe prerequisites, not accreditation or official curriculum alignment.