ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which data type would be MOST appropriate for storing the initial of a person’s first name?
|
character
|
|
string
|
|
integer
|
|
real
|
Explanation:
Detailed explanation-1: -Person name is a standard XDM data type that describes the full name of a person. As conventions for name structures differ widely across languages and cultures, names should always be modeled using this datatype.
Detailed explanation-2: -Names and email addresses are always of the type string, while numbers can be stored as a numerical type or as string since a string is a set of characters including digits.
There is 1 question to complete.