Courseiva
easyMultiple ChoiceObjective-mapped

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 text value, not a collection.

  • Array

    Why this is correct

    An array can hold multiple values of the same type, like a list of names.

  • Boolean

    Why it's wrong here

    A Boolean only holds true or false, not a list.

  • Integer

    Why it's wrong here

    An integer holds a single number, not multiple names.

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.