hardMultiple Select
FC0-U71 Practice Question: Which THREE are valid primitive data types in…
Which THREE are valid primitive data types in most programming languages? (Choose three.)
⚠ Common exam trap
The ITF+ exam often tests the misconception that String is a primitive type because it appears simple and is used frequently, but it is actually a reference type in nearly all modern languages.
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
✓
Character
Character (B), Boolean (C), and Integer (D) are all primitive data types because they represent single, indivisible values directly supported by the language's type system: a character holds one text symbol (e.g., char in C/Java), a Boolean holds true/false, and an integer holds a whole number. These types are typically built into the language and stored as simple values rather than as composite structures. In contrast, String (A) is generally a composite or reference type (e.g., a sequence of characters, such as java.lang.String), and Array (E) is a derived/aggregate data structure that holds multiple elements, so neither qualifies as primitive.
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 is a composite sequence of characters, not a primitive scalar in most languages. It is tempting because strings are ubiquitous and often written with literal syntax, but the question targets single-value types such as integer, boolean and float.
- ✓
Character
Why this is correct
Character is a primitive type in most languages, representing a single text symbol such as a letter or digit. It is distinct from composite types like strings, which are sequences of characters rather than a single primitive value.
- ✓
Boolean
Why this is correct
Boolean represents truth values (true/false), making it a fundamental primitive in most languages. It satisfies the question's requirement for valid primitive data types, alongside integers and characters. Unlike composite structures such as arrays or objects, Boolean values are built into the language itself and stored directly, not composed from other types.
- ✓
Integer
Why this is correct
Integer is a primitive type because it stores whole numbers directly as a fixed-width binary value in memory, typically 32 or 64 bits, rather than referencing a composite object. This satisfies the stem's requirement for a fundamental, built-in data type recognised across most programming languages.
- ✗
Array
Why it's wrong here
An array is a composite aggregate holding multiple elements, not a primitive; primitives store a single value directly. It is tempting because arrays appear in nearly every language, but the question asks for built-in scalar types, not containers.
Go deeper
Related to this question
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 →
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.