easyMultiple ChoiceObjective-mapped
FC0-U71 Practice Question: A developer needs to store a list of student…
A developer needs to store a list of student grades (integers) and be able to add and remove grades easily. Which data structure is most appropriate?
⚠ Common exam trap
A common mistake is assuming linked lists are always better for frequent insertions/deletions, but the trap here is that the question emphasizes 'add and remove grades easily' without specifying positions, and dynamic arrays provide simpler and more efficient random access for integer data, making them the most appropriate choice in typical programming contexts.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Array
An array is the most appropriate data structure for storing a list of student grades (integers) when you need to add and remove grades easily. Arrays provide direct index-based access (O(1) for lookup) and support dynamic resizing in languages like Java (ArrayList) or Python (list), allowing efficient appending and removal by index. This makes arrays ideal for managing a collection of numeric values where order matters and frequent modifications are required.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Array
Why this is correct
Arrays allow random access and easy addition/removal (in dynamic arrays).
- ✗
Linked list
Why it's wrong here
Linked lists are good for frequent insertions but not the simplest for this task.
- ✗
Queue
Why it's wrong here
Queue only allows adding to rear and removing from front (FIFO).
- ✗
Stack
Why it's wrong here
Stack only allows adding/removing from the top (LIFO).
Go deeper
Related to this question
About these practice questions
Courseiva writes every FC0-U71 question from scratch — 988 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This FC0-U71 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the FC0-U71 exam.