Quiz: Data Types

To View Tricks: Login Required

Number of Questions: 10

Question: 1 -

What is a Primitive Data Type in Java?

Options:
  1. Data type, which is implemented in an Object-oriented way.

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

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

  4. None of the above

  5. Answer:

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

    Solution not available.

Question: 2 -

What does a Data Type in Java refers to?

Options:
  1. The place where data is stored

  2. The technique how data is retreived

  3. None of the above

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

  5. Answer:

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

    Solution:

    Integers, Real numbers, Boolean, Characters etc


Question: 3 -

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

Options:
  1. byte

  2. char

  3. int

  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: 4 -

Choose the wrong statement about Java programming?

Options:
  1. Java supports signed integers

  2. Java supports unsigned integers

  3. None of the above

  4. Java supports signed char

  5. Answer:

    Java supports unsigned integers

    Solution:

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


Question: 5 -

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

Options:
  1. short

  2. int

  3. long double

  4. double

  5. Answer:

    long double

    Solution:

    "long double" is present only in C language.