IEEE Tech Event Contest

6 Questions

Settings
Please wait...
IEEE Quizzes & Trivia

Questions and Answers
  • 1. 
    What is the size of a Char in Java?
    • A. 

      1 bit

    • B. 

      4 bit

    • C. 

      8 bit

    • D. 

      16 bit

  • 2. 
    A class cannot be declared ......
    • A. 

      Public

    • B. 

      Private

    • C. 

      Default

  • 3. 
    Following code will result in: int a = 3.5;
    • A. 

      Compilation error

    • B. 

      Runtime error

    • C. 

      A will equal 3.5

    • D. 

      A will equal 3

  • 4. 
    Following code will result in: int a = 9/0;
    • A. 

      Compilation error: Divisions must be in a try block.

    • B. 

      Compilation error: DivideByZeroException

    • C. 

      Runtime Exception

    • D. 

      No Error: a is Null

  • 5. 
    Following code will result in: class A {       public static void main(String [] args) {             B b = new A();       } } class B extends A {}
    • A. 

      Compile Error

    • B. 

      Runtime Error

    • C. 

      No Error

  • 6. 
    A class can be transient
    • A. 

      True

    • B. 

      False