MrBrightside
Brightest Member
- Joined
- Jan 18, 2010
- Messages
- 2,032
- Gender
- Undisclosed
- HSC
- N/A
There was this question saying which data type would be best relevant to to the Male/Female Field in a database.
(A) Number
(B) Boolean
(C) Character
(D) Alphanumeric
The correct answer is (C). Now From previous knowledge I thought a boolean value can be substituted for any two options. E.g. M or F. But My teacher said that boolean can only be [true or false] OR [Yes or no]. -.-
Is this a stupid question or a trick question.
(A) Number
(B) Boolean
(C) Character
(D) Alphanumeric
The correct answer is (C). Now From previous knowledge I thought a boolean value can be substituted for any two options. E.g. M or F. But My teacher said that boolean can only be [true or false] OR [Yes or no]. -.-
Is this a stupid question or a trick question.
Last edited: