Something Important About Java Quiz 1

31 Questions | Attempts: 850
Share

SettingsSettingsSettings
Something Important About Java Quiz 1 - Quiz


Questions and Answers
  • 1. 
                      In Java, the mechanism that allows you to combine data and operations on the data into a single unit is called a(n) ____.
    • A. 

      Object

    • B. 

      Class

    • C. 

      Method

    • D. 

      Algorithm

  • 2. 
    A(n) ____ consists of data and the operations on those data.
    • A. 

      Disk

    • B. 

      Compiler

    • C. 

      Interpreter

    • D. 

      Object

  • 3. 
    A program called a(n) ____ loads the bytecode of your program and other programs provided by the SDK and used in the program to create the executable code
    • A. 

      Loader

    • B. 

      Interpreter

    • C. 

      Linker

    • D. 

      None of these

  • 4. 
    The bytecode for a Java program is saved in the file with the ____ extension.
    • A. 

      .cpp

    • B. 

      .java

    • C. 

      .class

    • D. 

      .jav

  • 5. 
    To develop a program to solve a problem, you start by ____.
    • A. 

      Analyzing the problem

    • B. 

      Implementing the solution in Java

    • C. 

      Designing the algorithm

    • D. 

      Entering the solution into a computer system

  • 6. 
                      Consider the following program.   public class HelloWorld {     public static void main(String[] args)     {          System.out.print("Hello World ")     } }   The missing semicolon in the code above will be caught by the ____.
    • A. 

      Compiler

    • B. 

      Editor

    • C. 

      Assembler

    • D. 

      Control unit

  • 7. 
    To run a Java ____, you must use either a Web browser or an applet viewer.
    • A. 

      Program

    • B. 

      Applet

    • C. 

      Application

    • D. 

      Method

  • 8. 
    In a Java program, the file name must be the same as the ____.
    • A. 

      Method name

    • B. 

      Class name

    • C. 

      Object name

    • D. 

      Data name

  • 9. 
    When all ____ errors are removed, the compiler generates the machine code (bytecode in Java).
    • A. 

      Logical

    • B. 

      Syntax

    • C. 

      Linking

    • D. 

      Run-time

  • 10. 
    The ____ translates a program written in a high-level language into the equivalent machine language.
    • A. 

      Compiler

    • B. 

      Assembler

    • C. 

      Interpreter

    • D. 

      A and B only

  • 11. 
    The source program is written in ____.
    • A. 

      Assembly language

    • B. 

      Machine language

    • C. 

      A high-level language

    • D. 

      None of these

  • 12. 
    A program called a(n) ____ translates the assembly language instructions into machine language.
    • A. 

      Loader

    • B. 

      Interpreter

    • C. 

      Compiler

    • D. 

      Assembler

  • 13. 
    The term ZB refers to ____.
    • A. 

      Zerobyte

    • B. 

      Zettabyte

    • C. 

      Zonebyte

    • D. 

      None of these

  • 14. 
    The term PB refers to ____.
    • A. 

      Processing byte

    • B. 

      Petabyte

    • C. 

      Personal byte

    • D. 

      None of these

  • 15. 
    The term EB refers to ____.
    • A. 

      Exabyte

    • B. 

      Extrabyte

    • C. 

      Extremebyte

    • D. 

      None of these

  • 16. 
    The term GB refers to ____.
    • A. 

      Giant byte

    • B. 

      Gigabyte

    • C. 

      Group byte

    • D. 

      None of these

  • 17. 
    ____ represent information with a sequence of 0s and 1s.
    • A. 

      Analog signals

    • B. 

      Application programs

    • C. 

      Digital signals

    • D. 

      System programs

  • 18. 
    The digit 0 or 1 is called a binary digit, or ____.
    • A. 

      Bit

    • B. 

      Bytecode

    • C. 

      Unicode

    • D. 

      Hexcode

  • 19. 
    The term MB refers to ____.
    • A. 

      Megabyte

    • B. 

      My byte

    • C. 

      Moving byte

    • D. 

      None of these

  • 20. 
                        The system program that loads first when you turn on your PC is called the ____.
    • A. 

      Central processing unit

    • B. 

      Application program

    • C. 

      Operating system

    • D. 

      Word processor

  • 21. 
    Which of the following is NOT an output device?
    • A. 

      Monitor

    • B. 

      Printer

    • C. 

      CPU

    • D. 

      Secondary storage

  • 22. 
         The devices that feed data and programs into computers are called ____.
    • A. 

      Output devices

    • B. 

      Input devices

    • C. 

      Monitors

    • D. 

      Printers

  • 23. 
         All of the following are examples of secondary storage except ____.
    • A. 

      Hard disks

    • B. 

      Floppy disks

    • C. 

      Keyboards

    • D. 

      Tapes

  • 24. 
         When the power is switched off, everything in ____ is lost.
    • A. 

      Main memory

    • B. 

      Secondary storage

    • C. 

      Hard disks

    • D. 

      Floppy disks

  • 25. 
         The ____ carries out all arithmetic and logical operations.
    • A. 

      Compiler

    • B. 

      Program counter

    • C. 

      Interpreter

    • D. 

      Arithmetic logical unit

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.