Quiz: Data Types

To View Tricks: Login Required

Number of Questions: 10

Question: 1 -

Choose the wrong statement about Java programming?

Options:
  1. Java supports unsigned integers

  2. Java supports signed char

  3. None of the above

  4. Java supports signed integers

  5. Answer:

    Java supports unsigned integers

    Solution:

    Only C language supports unsigned integers. Java does not support.


Question: 2 -

What is a Primitive Data Type in Java?

Options:
  1. None of the above

  2. Data Type which is implemented in a non-object oriented way.

  3. Data type, which is implemented in an Object-oriented way.

  4. Data Type which is implemented in a machine-dependent way

  5. Answer:

    Data Type which is implemented in a non-object oriented way.

    Solution not available.

Question: 3 -

What does a Data Type in Java refers to?

Options:
  1. None of the above

  2. The place where data is stored

  3. The type or variety of data being handled for reading and writing

  4. The technique how data is retreived

  5. Answer:

    The type or variety of data being handled for reading and writing

    Solution:

    Integers, Real numbers, Boolean, Characters etc


Question: 4 -

Which data type among the following is an implementation of Objects or OOPs?

Options:
  1. char

  2. int

  3. byte

  4. None of the above

  5. Answer:

    None of the above

    Solution:

    All primitive data types are implemented in a Non-Object Oriented way.


Question: 5 -

which among the following is not a Data Type in Java?

Options:
  1. double

  2. int

  3. long double

  4. short

  5. Answer:

    long double

    Solution:

    "long double" is present only in C language.