25 / 80 · 12 Programming for QA · Data Structures for QA← prev⊞ allnext →☰ Read as one page
3.7Practical Exercise
Given an API that returns paginated user lists, write functions that:
- Collect all users across all pages into a single list
- Verify no duplicate IDs exist across pages
- Find users that exist in the "active users" endpoint but not in the "all users" endpoint (use sets)
- Group users by role using a dictionary
- Sort users by creation date and verify they are in chronological order