KnowledgeBoat Logo
|

Computer Applications

Name the data types in order from top, given in the above picture.

Name the data types in order from top, given in the above picture.Computer Application Competency Focused Practice Questions Class 10 Solutions.
  1. int, char, double, String
  2. String, int, char, double
  3. char, double, int, String
  4. int, double, char, String

Values & Data Types Java

1 Like

Answer

String, int, char, double

Reason

  • The first value is a sentence in quotes, which is a String.
  • The second value is 578, a whole number without decimal, so it is of int type.
  • The third value is \n, which is an escape sequence representing a character, hence char type.
  • The fourth value is 51.048053, a number with decimals, which is of double type.

Answered By

3 Likes


Related Questions