Something Important About Java Quiz 1

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Tcarteronw
T
Tcarteronw
Community Contributor
Quizzes Created: 37 | Total Attempts: 31,078
Questions: 31 | Attempts: 858

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

    Correct Answer
    B. Class
    Explanation
    REF: 26

    Rate this question:

  • 2. 

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

    • A.

      Disk

    • B.

      Compiler

    • C.

      Interpreter

    • D.

      Object

    Correct Answer
    D. Object
    Explanation
    REF: 25

    Rate this question:

  • 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

    Correct Answer
    A. Loader
    Explanation
    REF: 14

    Rate this question:

  • 4. 

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

    • A.

      .cpp

    • B.

      .java

    • C.

      .class

    • D.

      .jav

    Correct Answer
    C. .class
    Explanation
    REF: 14

    Rate this question:

  • 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

    Correct Answer
    A. Analyzing the problem
    Explanation
    REF: 17

    Rate this question:

  • 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

    Correct Answer
    A. Compiler
    Explanation
    REF: 14

    Rate this question:

  • 7. 

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

    • A.

      Program

    • B.

      Applet

    • C.

      Application

    • D.

      Method

    Correct Answer
    B. Applet
    Explanation
    REF: 16

    Rate this question:

  • 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

    Correct Answer
    B. Class name
    Explanation
    REF: 13

    Rate this question:

  • 9. 

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

    • A.

      Logical

    • B.

      Syntax

    • C.

      Linking

    • D.

      Run-time

    Correct Answer
    B. Syntax
    Explanation
    REF: 14

    Rate this question:

  • 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

    Correct Answer
    A. Compiler
    Explanation
    REF: 11

    Rate this question:

  • 11. 

    The source program is written in ____.

    • A.

      Assembly language

    • B.

      Machine language

    • C.

      A high-level language

    • D.

      None of these

    Correct Answer
    C. A high-level language
    Explanation
    REF: 13

    Rate this question:

  • 12. 

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

    • A.

      Loader

    • B.

      Interpreter

    • C.

      Compiler

    • D.

      Assembler

    Correct Answer
    D. Assembler
    Explanation
    REF: 10

    Rate this question:

  • 13. 

    The term ZB refers to ____.

    • A.

      Zerobyte

    • B.

      Zettabyte

    • C.

      Zonebyte

    • D.

      None of these

    Correct Answer
    B. Zettabyte
    Explanation
    REF: 8

    Rate this question:

  • 14. 

    The term PB refers to ____.

    • A.

      Processing byte

    • B.

      Petabyte

    • C.

      Personal byte

    • D.

      None of these

    Correct Answer
    B. Petabyte
    Explanation
    REF: 8

    Rate this question:

  • 15. 

    The term EB refers to ____.

    • A.

      Exabyte

    • B.

      Extrabyte

    • C.

      Extremebyte

    • D.

      None of these

    Correct Answer
    A. Exabyte
    Explanation
    REF: 8

    Rate this question:

  • 16. 

    The term GB refers to ____.

    • A.

      Giant byte

    • B.

      Gigabyte

    • C.

      Group byte

    • D.

      None of these

    Correct Answer
    B. Gigabyte
    Explanation
    REF: 8

    Rate this question:

  • 17. 

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

    • A.

      Analog signals

    • B.

      Application programs

    • C.

      Digital signals

    • D.

      System programs

    Correct Answer
    C. Digital signals
    Explanation
    REF: 7

    Rate this question:

  • 18. 

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

    • A.

      Bit

    • B.

      Bytecode

    • C.

      Unicode

    • D.

      Hexcode

    Correct Answer
    A. Bit
    Explanation
    REF: 7

    Rate this question:

  • 19. 

    The term MB refers to ____.

    • A.

      Megabyte

    • B.

      My byte

    • C.

      Moving byte

    • D.

      None of these

    Correct Answer
    A. Megabyte
    Explanation
    REF: 8

    Rate this question:

  • 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

    Correct Answer
    C. Operating system
    Explanation
    REF: 7

    Rate this question:

  • 21. 

    Which of the following is NOT an output device?

    • A.

      Monitor

    • B.

      Printer

    • C.

      CPU

    • D.

      Secondary storage

    Correct Answer
    C. CPU
    Explanation
    REF: 6

    Rate this question:

  • 22. 

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

    • A.

      Output devices

    • B.

      Input devices

    • C.

      Monitors

    • D.

      Printers

    Correct Answer
    B. Input devices
    Explanation
    REF: 6

    Rate this question:

  • 23. 

         All of the following are examples of secondary storage except ____.

    • A.

      Hard disks

    • B.

      Floppy disks

    • C.

      Keyboards

    • D.

      Tapes

    Correct Answer
    C. Keyboards
    Explanation
    REF: 6

    Rate this question:

  • 24. 

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

    • A.

      Main memory

    • B.

      Secondary storage

    • C.

      Hard disks

    • D.

      Floppy disks

    Correct Answer
    A. Main memory
    Explanation
    REF: 6

    Rate this question:

  • 25. 

         The ____ carries out all arithmetic and logical operations.

    • A.

      Compiler

    • B.

      Program counter

    • C.

      Interpreter

    • D.

      Arithmetic logical unit

    Correct Answer
    D. Arithmetic logical unit
    Explanation
    REF: 5

    Rate this question:

  • 26. 

        All data must be brought into ____ before a program can manipulate it

    • A.

      Secondary storage

    • B.

      Main memory

    • C.

      An output device

    • D.

      All of the above

    Correct Answer
    B. Main memory
    Explanation
    REF: 5

    Rate this question:

  • 27. 

         Each memory cell has a unique location in main memory, called the ____.

    • A.

      Unique identifier

    • B.

      Address

    • C.

      Cell location

    • D.

      ID

    Correct Answer
    B. Address
    Explanation
    REF: 6

    Rate this question:

  • 28. 

      The first device known to carry out calculations was a(n) ____.

    • A.

      Abacus

    • B.

      Pascaline

    • C.

      Difference engine

    • D.

      None of these

    Correct Answer
    A. Abacus
    Explanation
    REF: 2 | 3

    Rate this question:

  • 29. 

         The ____ is the brain of the computer.

    • A.

      Arithmetic logic unit

    • B.

      Central processing unit

    • C.

      Accumulator

    • D.

      Control unit

    Correct Answer
    B. Central processing unit
    Explanation
    REF: 4

    Rate this question:

  • 30. 

                       Which of the following is NOT part of the central processing unit?

    • A.

      Control unit

    • B.

      Program counter

    • C.

      Instruction register

    • D.

      Main memory

    Correct Answer
    D. Main memory
    Explanation
    REF: 5

    Rate this question:

  • 31. 

    The term TB refers to ____.

    • A.

      Turning byte

    • B.

      Tight byte

    • C.

      Terabyte

    • D.

      None of these

    Correct Answer
    C. Terabyte
    Explanation
    REF: 8

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Aug 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • May 11, 2011
    Quiz Created by
    Tcarteronw
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.