Our app is now available on Google Play. Get it on Google Play

What is data type?

  1. It represent the type of data that a variable can store
  2. It is the value stored in a variable
  3. It a type of program
  4. All of the above

Answer: It represent the type of data that a variable can store


Long Answer:

Data type represents that type of data a variable can store. The data type are as follows:

  1. Integers: It stored only integer values
  2. String: It stores text and sentences
  3. Char: It stores only characters such as ‘A’, ‘Z’
  4. Boolean: It stores either true or false
  5. Float: It stores decimal values.

All data types have their minimum and maximum storage range. You cannot add more or less data than specified ranges.