Quiz No. 1 In Java 2 (Data Structure)

10 Questions | Total Attempts: 773

SettingsSettingsSettings
Please wait...
Java Quizzes & Trivia

It is a 10-item test to determine the basic knowledge of the students in Java Programming.


Questions and Answers
  • 1. 
    It is the characteristics of Java which ensures that program can go only where it is designed to go and eliminates the possibility of altering system data unintentionally.
    • A. 

      Java is simple.

    • B. 

      Java is free.

    • C. 

      Java is secure.

    • D. 

      Java is portable.

  • 2. 
    It is a form of Java program that runs locally on the command line.
    • A. 

      Applets

    • B. 

      Application

    • C. 

      Midlets

    • D. 

      Servlets

  • 3. 
    It defines the common variables and methods of a set of objects.
    • A. 

      Object

    • B. 

      Class

    • C. 

      Function

    • D. 

      Attribute

  • 4. 
    It is an instance of a class.
    • A. 

      Attribute

    • B. 

      Function

    • C. 

      Method

    • D. 

      Object

  • 5. 
    It is the process of removing errors found in the program.
    • A. 

      Editing

    • B. 

      Compiling

    • C. 

      Debugging

    • D. 

      Running

  • 6. 
    Which of the following is the data type used for a single character?
    • A. 

      Byte

    • B. 

      Char

    • C. 

      Long

    • D. 

      Short

  • 7. 
    Which symbol is used to denote a multi-line comment?
    • A. 

      //

    • B. 

      /* */

    • C. 

      { }

    • D. 

      < >

  • 8. 
    Which of the following is NOT a Java keyword?
    • A. 

      Default

    • B. 

      For

    • C. 

      Of

    • D. 

      Volatile

  • 9. 
    Which of the following is NOT a primitive data type?
    • A. 

      Byte

    • B. 

      Char

    • C. 

      Long

    • D. 

      String

  • 10. 
    Which of the following is an invalid first character of an identifier?
    • A. 

      __

    • B. 

      $

    • C. 

      A

    • D. 

      8