Courseiva
easyMultiple ChoiceObjective-mapped

FC0-U71 Practice Question: A database administrator wants to enforce that a…

A database administrator wants to enforce that a column only accepts whole numbers. Which data type should be used?

⚠ Common exam trap

Watch out — candidates often confuse FLOAT with INTEGER, assuming FLOAT can store whole numbers, but FLOAT always permits decimal places, which violates the 'whole numbers only' constraint.

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

The INTEGER data type is specifically designed to store whole numbers without fractional components. In database systems, enforcing a column to accept only whole numbers requires a data type that disallows decimal points, which INTEGER does by definition. Using INTEGER ensures data integrity by rejecting any non-integer input, such as 3.14 or 'abc'.

Answer analysis

Option-by-option breakdown

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

  • Integer

    Why this is correct

    Integer stores whole numbers without decimals.

  • String

    Why it's wrong here

    String stores text, not whole numbers.

  • Boolean

    Why it's wrong here

    Boolean stores true/false values, not numbers.

  • Float

    Why it's wrong here

    Float stores numbers with decimal points, not just whole numbers.

About these practice questions

Courseiva writes every FC0-U71 question from scratch — 988 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.