QUESTION IMAGE
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
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 -
TrueandFalse. We can easily mapTrueto "male" (or vice - versa) andFalseto "female". It is a simple and efficient way to represent two - category data. - AutoNumber: Used for generating unique sequential numbers, not for categorizing gender.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
D. Boolean