Java Programming MCQ Trivia Test! Quiz

10 Questions | Total Attempts: 1261

SettingsSettingsSettings
Please wait...
Java Programming Quizzes & Trivia

.


Questions and Answers
  • 1. 
    The Java compiler generates
    • A. 

      Source code

    • B. 

      Bytecode

    • C. 

      Executable file

    • D. 

      Image file

  • 2. 
    Which of the following features make Java a favourite for internet?
    • A. 

      Portability and security

    • B. 

      Multithreaded

    • C. 

      Object Oriented

    • D. 

      Simple

  • 3. 
    The Java feature, "write once, run anywhere", is termed as
    • A. 

      Object-oriented

    • B. 

      Robust

    • C. 

      Multithreaded

    • D. 

      Platform independent

  • 4. 
    Which one of the following is true about the Java platform?
    • A. 

      Compiler compiles source code to a .class file

    • B. 

      Compiler compiles source code to machine code

    • C. 

      Interpreter interprets the source code to .class file

    • D. 

      Interpreter interprets the source code to machine code

  • 5. 
    The feature of Java which makes it possible to run many jobs simultaneously is known as
    • A. 

      Dynamic

    • B. 

      Distributed

    • C. 

      Multithreaded

    • D. 

      Architecture neutral

  • 6. 
    Javac.exe found in the Java Development Kit (JDK) is known as
    • A. 

      Interpreter

    • B. 

      Compiler

    • C. 

      Debugger

    • D. 

      Executable

  • 7. 
    The location of Java compiler and interpreter in JDK is in
    • A. 

      C:\java

    • B. 

      C:\Program Files\Java

    • C. 

      C:\Program Files\Java\jdk1.6.0\bin

    • D. 

      C:\ jdk1.6.0\bin

  • 8. 
    What is Java API?
    • A. 

      An application to display a Java program output.

    • B. 

      A collection of ready-made software components in Java.

    • C. 

      It is a Java application used to interface two or more systems.

    • D. 

      Java applet interface.

  • 9. 
    Which of the following is true about a Java applet?
    • A. 

      It is a tiny Java program dynamically downloaded across the internet.

    • B. 

      It needs a Java enabled browser to display.

    • C. 

      It is an active program that reacts to the user inputs and dynamically changes.

    • D. 

      All of the above

  • 10. 
    What are the input and outputs of a Java compiler?
    • A. 

      Source code; byte code

    • B. 

      Byte code; native code

    • C. 

      Source code; native code

    • D. 

      Native code; source code