Courseiva
easyMultiple Select

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 (B) is a primitive data type because it directly represents whole-number values in a single, indivisible unit that the language's compiler or interpreter handles natively, such as int in Java/C# or int/long in C. Boolean (C) is also primitive because it stores a single truth value (true or false) as a fundamental, built-in type with no internal structure, e.g., bool in C++/C# or boolean in Java. By contrast, String (A) is typically a composite/reference type built from characters (or a class such as java.lang.String), Array (D) is a derived/aggregate type that holds multiple elements of another type, and Function (E) is a callable construct (often a reference type or object), not a primitive data type.

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 composite or reference type in most languages, not primitive; it is built from characters. It is tempting because strings appear alongside ints and booleans in declarations, but primitives are the built-in scalar types such as int, char, boolean and float.

  • ✓

    Integer

    Why this is correct

    Integer is a primitive type because the language stores the value directly rather than as a reference to an object. It satisfies the stem's requirement for a basic built-in data type, holding whole numbers without methods or properties.

  • ✓

    Boolean

    Why this is correct

    Boolean is primitive because it holds a single true or false value stored directly in memory, not as an object reference. This satisfies the stem's requirement for a fundamental built-in type used in conditional logic.

  • ✗

    Array

    Why it's wrong here

    An array is a composite or reference type holding multiple elements, not primitive. It is tempting because arrays are declared with type syntax, but primitives are scalar built-ins like int, char, boolean and float; arrays aggregate them.

  • ✗

    Function

    Why it's wrong here

    A function is executable code, not a data type at all, so it cannot be primitive. It is tempting because functions are declared and named like variables, but primitives describe values such as int, char, boolean and float, not callable routines.

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.