• 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 402 pages
Exam (elaborations)

Introduction to Java Programming and Data Structures: Comprehensive Version (12th Edition) by Daniel Liang – Test Bank – Practice Questions with Answers

Document preview thumbnail
Preview 4 out of 402 pages

Introduction to Java Programming and Data Structures: Comprehensive Version (12th Edition) by Daniel Liang – Test Bank – Practice Questions with AnswersThis document contains a comprehensive test bank for Introduction to Java Programming and Data Structures: Comprehensive Version (12th Edition) by Daniel Liang. It includes a wide range of practice questions with answers designed to assess understanding of Java programming fundamentals, object-oriented programming, and data structures. The material covers core programming concepts such as variables, data types, operators, control statements, methods, arrays, strings, and file input/output, followed by detailed exploration of object-oriented programming with classes, objects, inheritance, polymorphism, and interfaces. It also addresses exception handling, generics, collections, recursion, and algorithm development. Additional content covers fundamental data structures such as lists, stacks, queues, trees, heaps, and hash tables, along with sorting and searching techniques, providing broad coverage for Java programming and data-structures coursework.

Content preview

TEST BANK FOR bg bg




INTRODUCTION TO J bg bg




AVA PROGRAMMINGbg




AND DATA STRUCTU
bg bg bg




RES COMPREHENSIV
bg




E VERSION, 12TH EDIT
bg bg bg




ION,Y.DANIEL LIANG bg bg bg

,Chapter 1 Introduction to Computers, Programs, and Java
bg bg bg bg bg bg bg




Section 1.2 What is a Computer?
bg bg bg bg bg



1. is the physical aspect of the computer that can be seen.
bg bg bg bg bg bg bg bg bg bg



a. Hardware
b. Software
c. Operating system bg



d. Application program bg



Key:a See the first paragraph in Section 1.2.
bg bg bg bg bg bg bg




#
Section 1.2.1 What is a Computer?
bg bg bg bg bg



2. is the brain of a computer. bg bg bg bg bg



a. Hardware
b. CPU
c. Memory
d. Disk
Key:b See the first paragraph in Section 1.2.1.
bg bg bg bg bg bg bg




#
3. The speed of the CPU may be measured in
bg bg . bg bg bg bg bg bg



a. megabytes
b. gigabytes
c. megahertz
d. gigahertz
Key:cd See the third paragraph in Section 1.2.1. 1 megahertz equals 1 million pulses per second and 1 gigahertz is 100
bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg



0 megahertz.
bg




#
Section 1.2.2 Bits and Bytes
bg bg bg bg



4. Why do computers use zeros and ones?
bg bg bg bg bg bg



a. because combinations of zeros and ones can represent any numbers and characters.
bg bg bg bg bg bg bg bg bg bg bg



b. because digital devices have two stable states and it is natural to use one state for 0 and the other for 1.
bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg



c. because binary numbers are simplest.
bg bg bg bg



d. because binary numbers are the bases upon which all other number systems are built.
bg bg bg bg bg bg bg bg bg bg bg bg bg bg



Key:b See the second paragraph in Section 1.2.2.
bg bg bg bg bg bg bg




#
5. One byte has bg bits. bg



a. 4
b. 8
c. 12
d. 16
Key:b See the thrid paragraph in Section 1.2.2.
bg bg bg bg bg bg bg




#
5. One gigabyte is approximately
bg bytes. bg bg



a. 1 million
bg



b. 10 million
bg



c. 1 billion
bg



d. 1 trillion
bg



Key:c See the fifth paragraph in Section 1.2.2.
bg bg bg bg bg bg bg

,#
Section 1.2.3 Memory bg bg



6. A program and its data must be moved into the computer's
bg bg bg bg bg bg bg bg bg bg before they can be executed by the CPU.
bg bg bg bg bg bg bg



a. memory
b. hard disk bg



c. CPU
d. CD-ROM
Key:a See the first paragraph in Section 1.2.3.
bg bg bg bg bg bg bg




#
Section 1.2.4 Storage Devices
bg bg bg



6. A computer's
bg bg is volatile; that is, any information stored in it is lost when the system's power is turned off.
bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg



a. memory
b. hard disk bg



c. flash stick bg



d. CD-ROM
Key:a See the first paragraph in Section 1.2.4.
bg bg bg bg bg bg bg




#
6. Which of the following are storage devices?
bg bg bg bg bg bg



a. portable disk bg



b. hard disk bg



c. flash stick bg



d. CD-ROM
Key:abcd See the second paragraph in Section 1.2.4.
bg bg bg bg bg bg bg




#
Section 1.2.5 Input and Output Devices
bg bg bg bg bg



7. The specifies the number of pixels in horizontal and vertical dimensions of the display device. bg bg bg bg bg bg bg bg bg bg bg bg bg



a. screen resolution bg



b. pixel
c. dot pitch bg



d. monitor
Key:a See the third last paragraph in Section 1.2.5.
bg bg bg bg bg bg bg bg




#
Section 1.2.6 Communications Devices
bg bg bg



7. is a device to connect a computer to a local area network (LAN). bg bg bg bg bg bg bg bg bg bg bg bg



a. Regular modem bg



b. DSL
c. Cable modem bg



d. NIC
Key:d See the bullet items in Section 1.2.6.
bg bg bg bg bg bg bg




#
Section 1.3 Program Languages
bg bg bg



8. are instructions to the computer. bg bg bg bg



a. Hardware
b. Software
c. Programs
d. Keyboards
Key:bc See the Key Point in Section 1.3.
bg bg bg bg bg bg bg bg




#

© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg

, 9. Computer can execute the code in bg bg bg bg bg .
a. machine language bg



b. assembly language bg



c. high-level language bg



d. none of the above bg bg bg



Key:a See the first paragraph in Section 1.3.1.
bg bg bg bg bg bg bg




#
10. translates high-level language program into machine language program. bg bg bg bg bg bg bg



a. An assembler bg



b. A compiler bg



c. CPU
d. The operating system bg bg



Key:b See the first paragraph after Table 1.1 in Section 1.3.3.
bg bg bg bg bg bg bg bg bg bg




#
Section 1.4 Operating Systems bg bg bg



11. is an operating system. bg bg bg



a. Java
b. C++
c. Windows
d. Visual Basic bg



e. Ada
Key:c See the first paragraph in Section 1.4.
bg bg bg bg bg bg bg




#
12. is a program that runs on a computer to manage and control a computer's activities.
bg bg bg bg bg bg bg bg bg bg bg bg bg bg



a. Operating system bg



b. Java
c. Modem
d. Interpreter
e. Compiler
Key:a See the first paragraph in Section 1.4.
bg bg bg bg bg bg bg




#
Section 1.5 Java, World Wide Web, and Beyond
bg bg bg bg bg bg bg



14. Due to security reasons, Java
bg bg cannot run from a Web browser in the new version of Java.
bg bg bg bg bg bg bg bg bg bg bg bg bg



a. applications
b. applets
c. servlets
d. Micro Edition programs bg bg



Key:b See the last paragraph in Section 1.5.
bg bg bg bg bg bg bg




#
15. bg is not an object-oriented programming language.
bg bg bg bg bg



a. Java
b. C++
c. C
d. C#
e. Python
Key:c See Table 1.1 in Section 1.3.1.
bg bg bg bg bg bg




#
16. bg is interpreted.
bg




© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they currently exi
bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg bg





st.

Connected book
 image
Publisher: 2007 ISBN: 9780132237383 Edition: Unknown

Document information

Uploaded on
September 2, 2026
Number of pages
402
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$21.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.
SkillForge
3.6
(8)
Sold
130
Followers
14
Items
1000
Last sold
3 days 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