Program Coding

There is no content available!

To Access the full content, Please Purchase

  • Q1

    Unary operator requires

    Marks:1
    Answer:

    one operand.

    Explanation:

    The word unary means one. Post increment operator is an example of unary operator. It takes one operand as input and processes it to give the output.

    View Answer
  • Q2

    A character constant is enclosed in

    Marks:1
    Answer:

    single quotes.

    Explanation:

    Text enclosed in single quotes is treated as character constant. The type of character constant is int. Its value is the ASCII code for the character.

    View Answer
  • Q3

    Classes, arrays, and interface are examples of

    Marks:1
    Answer:

    reference data types.

    Explanation:
    The variables storing memory addresses are known as reference variables and their data type is known as reference data type.
    View Answer
  • Q4

    A named memory location, which holds a data value of a particular data type is a/an

    Marks:1
    Answer:

    variable.

    Explanation:

    Variables represent named storage locations, whose values can be manipulated.

    View Answer
  • Q5

    The size of one char data type is equal to

    Marks:1
    Answer:

    16 bits.

    Explanation:

    The character data type is used to store characters. A character in Java can represent all ASCII as well as Unicode characters.It is enclosed within a single quote.

    View Answer