Courseiva
Software Development ConceptsmediumMultiple ChoiceObjective-mapped

FC0-U71 Software Development Concepts Practice Question

A programmer needs to store a collection of key-value pairs where each key is unique and maps to a value. Which data structure is best suited for this purpose?

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

Dictionary

A dictionary (hash map) stores key-value pairs with unique keys for efficient lookup.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Dictionary

    Why this is correct

    Dictionaries (hash maps) store key-value pairs with unique keys.

  • Array

    Why it's wrong here

    Arrays store elements by index, not by key.

  • Stack

    Why it's wrong here

    Stacks use LIFO order, not key-value pairs.

  • List

    Why it's wrong here

    Lists are ordered collections accessed by index.

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 →

How Courseiva writes practice questions · Editorial policy

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.