Free practice · multiple-choice · medium

Practice

Choose collection boundary tests

Which cases belong in a compact test set for a function that summarizes a list of records? Select all that apply.

Collection contract

Choose access by the relationship the data represents

List
Ordered items accessed by index or iteration
Dictionary
Values accessed by stable keys
Boundary
Empty, one-item, and several-item states
Mutation
One deliberate, traceable change
Reconciliation
Expected size, keys, counts, and totals

Lists use ordered positions; dictionaries use meaningful keys. Both need shape, missing-data, mutation, and boundary checks.

Choose all that apply