AP CSP Day 45: List Filtering

Big Idea 2: Data
Cycle 2 • Day 45 Practice • Hard Difficulty
Focus: Metadata

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?

Why This Answer?

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.

Why Not the Others?

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.

Common Mistake
Watch Out!

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.

AP Exam Tip

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
Back to blog

Leave a comment

Please note, comments need to be approved before they are published.