Tag: programming languages

Questions Related to programming languages

What gets printed here... System.out.println("Sum of 5 and 3 is:"+5+3);

  1. Sum of 5 and 3 is:8

  2. error during compilation

  3. Sum of 5 and 3 is:53

  4. None of these


Correct Option: C
  1. a byte

  2. a word

  3. a boolean

  4. a null-terminated string


Correct Option: B
  1. an array of unsigned long

  2. an array of floating-point values

  3. an array of unary

  4. an array of zero-terminated strings


Correct Option: A

The variable "g_nWheels" follows the Hungarian notation.

  1. True

  2. False


Correct Option: B
  1. public

  2. final

  3. static

  4. all the above

  5. there should not be any variable in an interface


Correct Option: D
  1. a class implements one or more interfaces

  2. a class extends one or more interfaces

  3. an interface extends one of more interfaces

  4. Serializable is a marker Interface


Correct Option: B