Computer Science · Python Data Structures
Case Study: A teacher wants a simple Python script to analyze daily attendance from a CSV file named 'attendance.csv'. Each row has two columns: 'roll_no' and 'status' ('P' for present, 'A' for absent). The script counts how many times each student is present and flags students below 75% attendance. Question: To map each student's unique roll number to their corresponding present count, which Python data structure is most suitable?
- 1set
- 2dict (dictionary)✓
- 3tuple
- 4list
Correct answer
dict (dictionary)
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Python Data Structures?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Python Data Structures