Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

2 select the correct answer. in an employee database, which data type w…

Question

2
select the correct answer.
in an employee database, which data type would you use to categorize an employee as male or female?
○ a. text
○ b. binary
○ c. number
○ d. boolean
○ e. autonumber

Explanation:

Brief Explanations
  • Text: Can store "male" or "female" but is less efficient for just two - category classification compared to a more specialized data type.
  • Binary: Usually used for storing raw binary data (like images in a very basic sense in some databases), not for categorical data like gender.
  • Number: Would require mapping (e.g., 1 = male, 2 = female), but it's an extra step and not as intuitive as a data type designed for two - state categorization.
  • Boolean: A Boolean data type has two states - True and False. We can easily map True to "male" (or vice - versa) and False to "female". It is a simple and efficient way to represent two - category data.
  • AutoNumber: Used for generating unique sequential numbers, not for categorizing gender.

Answer:

D. Boolean