• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 737 pages
Exam (elaborations)

Test bank for Big Java Early Objects, Enhanced eText 7th Edition by Cay Horstmann | All Chapters

Document preview thumbnail
Preview 4 out of 737 pages

Test bank for Big Java Early Objects, Enhanced eText 7th Edition by Cay Horstmann | All Chapters

Content preview

TEST BANK


Big Java Early Objects, Enhanced eText 7th Edition


By Cay Horstmann
Ma
fi
ad
oc
s


Mafiadocs

,Name Class Dat
: : e:

testbank-bj-7-ch1

Indicate the answer choice that best completes the statement or answers the question.

1. Which statement best describes a computer program?
a. A program is a sequence of comments.
b. A program can decide what task it is to perform.
c. A program is a sequence of instructions and decisions that the computer carries out.
d. A program can only perform one simple task.

2. Which statement regarding computer programs is correct?
a. Computer programs can decide what task to perform.
Ma
b. Large and complex computer programs are generally written by only one programmer.
c. Computer programs are composed of extremely primitive operations.
d. Small computer programs are not documented.

3. What is an example of a typical instruction in a computer program?
a. Add up two numbers.
fi
b. Lay out a term paper.
c. Drive a car.
d. Display a fancy font.

4. What does CPU stand for?
ad
a. Computer Programming Unit
b. Computer Processing Unit
c. Central Processing Unit
d. Central Programming Unit

5. Which one of the following is NOT a function of a CPU?
oc
a. Performing arithmetic operations
b. Processing data and controlling programs
c. Querying a database
d. Fetching and storing data from storage and input devices

6. Which type of storage is made from electronic circuits that can store data?
s
a. compact disk (CD)
b. hard disk
c. primary storage
d. secondary storage

7. Which one of the following memory types provides storage that persists without electricity?
a. primary storage
b. RAM
c. memory
d. secondary storage

Powered by Cognero Page 1


Mafiadocs

,Name Class Dat
: : e:

testbank-bj-7-ch1
8. Which one of the following memory types provides storage that is slower and less expensive?
a. primary storage
b. secondary storage
c. peripheral device
d. the transistor

9. Which type of secondary storage consists of rotating platters coated with a magnetic material?
a. hard disk
b. solid state drive
c. compact disk (CD)
Ma
d. memory

10. Some computers are self-contained units; others are interconnected through what?
a. bus
b. networks
fi
c. peripheral devices
d. power lines

11. Which is an example of a peripheral device?
a. the CPU
b. primary storage
ad
c. motherboard
d. speakers

12. Which memory type does not provide persistent storage?
a. secondary storage
b. hard disk
oc
c. primary storage
d. DVD

13. Where must program instructions and data reside in order for the CPU to directly read and execute them?
a. memory
b. bus
s
c. hard disk
d. somewhere on the computer network

14. What term is used to refer to the computer instructions that are executed by a CPU?
a. virtual machine
b. machine code
c. high-level code
d. instruction set

15. What is the Java Virtual Machine?
a. A CPU that runs compiled Java code.
Powered by Cognero Page 2


Mafiadocs

, Name Class Dat
: : e:

testbank-bj-7-ch1

b. A library that makes it possible to write portable programs.
c. A program that simulates a real CPU running compiled Java code.
d. A program that translates Java code into machine instructions.

16. What is the term used to refer to Java code that runs in a browser?
a. applet
b. script
c. html
d. class
Ma
17. What term is used to refer to languages that allow programmers to describe tasks at a higher conceptual level than
machine code?
a. virtual
b. high-level
c. sophisticated
fi
d. conceptual

18. What tool translates high-level instructions into low level machine code?
a. debugger
b. assembler
c. compiler
ad
d. linker

19. What tool translates Java source code into files that contain instructions for the Java Virtual Machine?
a. linker
b. compiler
c. assembler
oc
d. interpreter

20. Which statement is true about running a Java program on a different CPU?
a. You need different Java source code for each CPU.
b. You can take code that has been generated by the Java compiler and run it on different CPUs.
c. You need to compile the Java program for each CPU.
s
d. You cannot run the program on a different CPU because Java, being a high-level programming language, is
machine dependent.

21. When was Java officially introduced?
a. 1991
b. 1995
c. 2000
d. 2005

22. Which statement best describes the portability characteristic of Java?
a. The same already-compiled Java programs will run on Windows, UNIX, Linux, or Macintosh operating
Powered by Cognero Page 3


Mafiadocs

Document information

Uploaded on
October 29, 2026
Number of pages
737
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$20.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Testbanksmafia
4.3
(20)
Sold
225
Followers
13
Items
607
Last sold
1 day ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions