Big Java Early Objects, 7e Cay Horstmann
(Test Bank all Chapters, Answers at the end of each Chapter)
- / 4
Name:
Class:
Date:
testbank-bj-7-ch1
Powered by Cognero Page 1
Indicate the answer choice that best completes the statement or answers the question.
- Which statement best describes a computer program?
- A program is a sequence of comments.
- A program can decide what task it is to perform.
- A program is a sequence of instructions and decisions that the computer carries out.
- A program can only perform one simple task.
- Which statement regarding computer programs is correct?
- Computer programs can decide what task to perform.
- Large and complex computer programs are generally written by only one programmer.
- Computer programs are composed of extremely primitive operations.
- Small computer programs are not documented.
- What is an example of a typical instruction in a computer program?
- Add up two numbers.
- Lay out a term paper.
- Drive a car.
- Display a fancy font.
- What does CPU stand for?
- Computer Programming Unit
- Computer Processing Unit
- Central Processing Unit
- Central Programming Unit
- Which one of the following is NOT a function of a CPU?
- Performing arithmetic operations
- Processing data and controlling programs
- Querying a database
- Fetching and storing data from storage and input devices
- Which type of storage is made from electronic circuits that can store data?
- compact disk (CD)
- hard disk
- primary storage
- secondary storage
- Which one of the following memory types provides storage that persists without electricity?
- primary storage
- RAM
- memory
- secondary storage
- Which one of the following memory types provides storage that is slower and less expensive? 2 / 4
Name:
Class:
Date:
testbank-bj-7-ch1
Powered by Cognero Page 2
- primary storage
- secondary storage
- peripheral device
- the transistor
- Which type of secondary storage consists of rotating platters coated with a magnetic material?
- hard disk
- solid state drive
- compact disk (CD)
- memory
- Some computers are self-contained units; others are interconnected through what?
- bus
- networks
- peripheral devices
- power lines
- Which is an example of a peripheral device?
- the CPU
- primary storage
- motherboard
- speakers
- Which memory type does not provide persistent storage?
- secondary storage
- hard disk
- primary storage
- DVD
- Where must program instructions and data reside in order for the CPU to directly read and execute them?
- memory
- bus
- hard disk
- somewhere on the computer network
- What term is used to refer to the computer instructions that are executed by a CPU?
- virtual machine
- machine code
- high-level code
- instruction set
- What is the Java Virtual Machine?
- A CPU that runs compiled Java code.
- A library that makes it possible to write portable programs. 3 / 4
Name:
Class:
Date:
testbank-bj-7-ch1
Powered by Cognero Page 3
- A program that simulates a real CPU running compiled Java code.
- A program that translates Java code into machine instructions.
- What is the term used to refer to Java code that runs in a browser?
- applet
- script
- html
- class
- What term is used to refer to languages that allow programmers to describe tasks at a higher conceptual level than
- virtual
- high-level
- sophisticated
- conceptual
machine code?
- What tool translates high-level instructions into low level machine code?
- debugger
- assembler
- compiler
- linker
- What tool translates Java source code into files that contain instructions for the Java Virtual Machine?
- linker
- compiler
- assembler
- interpreter
- Which statement is true about running a Java program on a different CPU?
- You need different Java source code for each CPU.
- You can take code that has been generated by the Java compiler and run it on different CPUs.
- You need to compile the Java program for each CPU.
- You cannot run the program on a different CPU because Java, being a high-level programming language, is
machine dependent.
- When was Java officially introduced?
- 1991
- 1995
- 2000
- 2005
- Which statement best describes the portability characteristic of Java?
- The same already-compiled Java programs will run on Windows, UNIX, Linux, or Macintosh operating
- The same Java compiler can be used on many operating systems.
- / 4
systems without any change.