Courseiva
easyMultiple SelectObjective-mapped

FC0-U71 Practice Question: Which TWO of the following are primitive data…

Which TWO of the following are primitive data types commonly used in programming?

⚠ Common exam trap

A common pitfall is thinking String is a primitive because it looks simple, but in most languages it is a reference type with methods and internal state.

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

Integer

Integer and Boolean are primitive data types because they represent single, indivisible values directly supported by the hardware and language runtime. An Integer stores whole numbers (e.g., 42), while a Boolean stores true/false values. These are fundamental building blocks that are not composed of other data types.

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

    String is a sequence of characters, often considered a composite type, not primitive.

  • Integer

    Why this is correct

    Integer is a primitive numeric data type.

  • Boolean

    Why this is correct

    Boolean is a primitive data type with true/false values.

  • Array

    Why it's wrong here

    Array is a composite data type that stores multiple elements.

  • Function

    Why it's wrong here

    Function is not a data type; it's a callable construct.

About these practice questions

This FC0-U71 question is part of Courseiva's 988-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.