AP CSP Day 45: List Filtering
Share
Practice Question
A library digitizes its book collection and stores metadata including title, author, publication year, page count, and file size for each book. A researcher wants to find all books by a specific author published after 2010. Which combination of metadata fields is sufficient to complete this search?
The search has two criteria: specific author AND publication year after 2010. Only the author field (to match the author name) and publication year field (to filter for years > 2010) are needed. No other fields are relevant to this particular query.
B) Title and page count provide no information about who wrote the book or when. C) File size describes the digital file, not the authorship. D) Using all five fields is unnecessary — only the two relevant fields are needed for this specific search.
Students select more fields than necessary, thinking that using more metadata is always better. Effective searches use exactly the fields that match the query criteria.
Match each search criterion to the specific metadata field that addresses it. You only need the fields that directly correspond to what you are searching for.
Keep Practicing!
Consistent daily practice is the key to AP CSP success.
AP CSP Resources Get 1-on-1 Help