If we have to store the following information about a student, how many values of from each data type group do we need.
Correct Answer : B
Student name is a set of characters like "Ram", "Jenny". So it belongs to character datatype.
College name is a set of characters like "Govt Junior College". So it belongs to character datatype.
Roll Number is a set of digits like 1234. So its an integer datatype.
Total marks can be 100 or 25 or any other number. So its an integer datatype.
Percentage can be 45.5 or 92.4 or some other number. So its a floating datatype.
Height in feet can be 4.5. So its a floating datatype.
Gender can have an answer male or female that can be assigned to true or false. So its boolean datatype.
Topic: Primitive Data Types In Java