Quiz No. 2 In Java Programming

30 Questions | Attempts: 2094
Share

SettingsSettingsSettings
Quiz No. 2 In Java Programming - Quiz

The quiz is about identification of the correct or incorrect declaration of identifiers and Java statements. (Valid or Invalid / Correct or Incorrect)


Questions and Answers
  • 1. 
    Select V if the identifier below is VALID, otherwise select I.      ==counter
    • A. 

      V

    • B. 

      I

  • 2. 
    Select V if the identifier below is VALID, otherwise select I.      initial
    • A. 

      V

    • B. 

      I

  • 3. 
    Select V if the identifier below is VALID, otherwise select I.      2nd_num
    • A. 

      V

    • B. 

      I

  • 4. 
    Select V if the identifier below is VALID, otherwise select I.      *pointer
    • A. 

      V

    • B. 

      I

  • 5. 
    Select V if the identifier below is VALID, otherwise select I.      Main
    • A. 

      V

    • B. 

      I

  • 6. 
    Select V if the identifier below is VALID, otherwise select I.      _Public
    • A. 

      V

    • B. 

      I

  • 7. 
    Select V if the identifier below is VALID, otherwise select I.      Strong
    • A. 

      V

    • B. 

      I

  • 8. 
    Select V if the identifier below is VALID, otherwise select I.      cake
    • A. 

      V

    • B. 

      I

  • 9. 
    Select V if the identifier below is VALID, otherwise select I.      int
    • A. 

      V

    • B. 

      I

  • 10. 
    Select V if the identifier below is VALID, otherwise select I.      Default
    • A. 

      V

    • B. 

      I

  • 11. 
    Select V if the identifier below is VALID, otherwise select I.      char
    • A. 

      V

    • B. 

      I

  • 12. 
    Select V if the identifier below is VALID, otherwise select I.      b
    • A. 

      V

    • B. 

      I

  • 13. 
    Select V if the identifier below is VALID, otherwise select I.      Byte
    • A. 

      V

    • B. 

      I

  • 14. 
    Select V if the identifier below is VALID, otherwise select I.      short
    • A. 

      V

    • B. 

      I

  • 15. 
    Select V if the identifier below is VALID, otherwise select I.      large
    • A. 

      V

    • B. 

      I

  • 16. 
    Select C if the given statement is CORRECT, otherwise select I.      Boolean a;
    • A. 

      C

    • B. 

      I

  • 17. 
    Select C if the given statement is CORRECT, otherwise select I.      System.out.println('Welcome to Java');
    • A. 

      C

    • B. 

      I

  • 18. 
    Select C if the given statement is CORRECT, otherwise select I.      double 56;
    • A. 

      C

    • B. 

      I

  • 19. 
    Select C if the given statement is CORRECT, otherwise select I.      char next_line="\n");
    • A. 

      C

    • B. 

      I

  • 20. 
    Select C if the given statement is CORRECT, otherwise select I.      Public class SECOND {
    • A. 

      C

    • B. 

      I

  • 21. 
    Select C if the given statement is CORRECT, otherwise select I.      public static void main (string [] args) {
    • A. 

      C

    • B. 

      I

  • 22. 
    Select C if the given statement is CORRECT, otherwise select I.      float a, int b;
    • A. 

      C

    • B. 

      I

  • 23. 
    Select C if the given statement is CORRECT, otherwise select I.      System.out.pritnln("Java Programming is COOL!");
    • A. 

      C

    • B. 

      I

  • 24. 
    Select C if the given statement is CORRECT, otherwise select I.      int
    • A. 

      C

    • B. 

      I

  • 25. 
    Select C if the given statement is CORRECT, otherwise select I.      char gender="m";
    • A. 

      C

    • B. 

      I

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.