Write appropriate data type for the following fields.
I. Name ii. Roll no. III. DOB iv. Class v. Phone vi. Email vii. Colour viii. Location
Answers
Answered by
8
Answer:
zacharyking
12
29/1/2008
seventh
you phone number
your email
black
you location
Answered by
3
Appropriate data type for the following fields are Here.
Data Types :
I. Name - String(Ex : "Aathi" , "Aarthi")
- String is basically an object that represents sequence of char values.
ii. Roll no. - String (or) int (or) Long int (Ex : "718UGCSE001" , "76543" )
III. DOB - String (Ex : "09/12/2018")
iv. Class - String (Ex : "XII" , "VIII")
v. Phone - long int (EX : 9876543210)
- long int data type occupies 4 bytes (32 bits) of memory to store an integer value.
vi. Email - String (Ex : "[email protected]")
vii. Color - String (Ex : "Blue" , "yellow" )
viii. Location - String (Ex : "India" , "Chennai")
Similar questions
Math,
4 months ago
Computer Science,
4 months ago
Math,
8 months ago
Art,
8 months ago
Economy,
11 months ago