Courseiva
easyMultiple Choice

FC0-U71 Practice Question: A developer needs to store a list of employee…

A developer needs to store a list of employee names. Which data structure is most appropriate?

⚠ Common exam trap

Test-takers frequently confuse a single string with a collection, thinking a string can hold multiple names by concatenation, but the question specifically asks for a 'list' structure, which requires an array or similar collection type.

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 employee names because it allows multiple values (strings) to be stored in a single, ordered collection. Unlike a single string, which holds only one value, an array can hold many strings and provides indexed access to each element, making it ideal for lists of items.

Answer analysis

Option-by-option breakdown

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

  • ✗

    String

    Why it's wrong here

    A string holds a single sequence of characters, so it cannot store multiple employee names as discrete, individually addressable elements. It is tempting because a string is the correct structure for one name, or for a single field such as a job title, rather than a collection.

  • ✓

    Array

    Why this is correct

    An array stores an ordered, indexed collection of elements of the same type, making it ideal for a simple list of employee names where each entry is accessed by position. It provides constant-time indexed access and minimal overhead compared with structures designed for key-value or relational relationships.

  • ✗

    Boolean

    Why it's wrong here

    A Boolean holds only true or false, so it cannot represent multiple employee names. It is tempting because Booleans are a fundamental primitive type used for flags and conditional checks, where a single binary state genuinely suffices.

  • ✗

    Integer

    Why it's wrong here

    An Integer stores whole numbers, so it cannot hold text such as employee names. It is tempting because integers are a core primitive type used for counts, ages and IDs, where numeric values are genuinely required.

About these practice questions

One of 988 original FC0-U71 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.