Introduction to Java Programming and Data
Structures, 12th Edition (Y. Daniel Liang) –
COMPLETE QUESTION BANK Questions
with Verified Answers & Detailed Rationales |
2026
Complete Chapters 1–44 | Undergraduate Java
Exam Prep
TABLE OF CONTENTS
| Part | Chapters | Questions |
||-|--|
| Part I: Fundamentals | 1–8 | 1–80 |
1
,| Part II: Object-Oriented Programming | 9–13
| 81–130 |
| Part III: GUI Programming | 14–16 | 131–150
|
| Part IV: Data Structures & Algorithms | 17–
29 | 151–220 |
| Part V: Advanced Java | 30–44 | 221–270 |
PART I: FUNDAMENTALS (Q1–80)
Chapter 1: Introduction to Computers,
Programs, and Java
1. ________ is the physical aspect of the
computer that can be seen.
2
,A) Hardware
B) Software
C) Operating system
D) Application program
Answer: A) Hardware
Rationale: Hardware is the physical aspect of
the computer that can be seen .
2. ________ is the brain of a computer.
A) Memory
B) CPU
3
, C) Disk
D) Motherboard
Answer: B) CPU
Rationale: The CPU (Central Processing Unit)
is the brain of a computer, responsible for
executing instructions .
3. The speed of the CPU may be measured in
__________. (Select all that apply)
A) megabytes
B) gigabytes
4
Structures, 12th Edition (Y. Daniel Liang) –
COMPLETE QUESTION BANK Questions
with Verified Answers & Detailed Rationales |
2026
Complete Chapters 1–44 | Undergraduate Java
Exam Prep
TABLE OF CONTENTS
| Part | Chapters | Questions |
||-|--|
| Part I: Fundamentals | 1–8 | 1–80 |
1
,| Part II: Object-Oriented Programming | 9–13
| 81–130 |
| Part III: GUI Programming | 14–16 | 131–150
|
| Part IV: Data Structures & Algorithms | 17–
29 | 151–220 |
| Part V: Advanced Java | 30–44 | 221–270 |
PART I: FUNDAMENTALS (Q1–80)
Chapter 1: Introduction to Computers,
Programs, and Java
1. ________ is the physical aspect of the
computer that can be seen.
2
,A) Hardware
B) Software
C) Operating system
D) Application program
Answer: A) Hardware
Rationale: Hardware is the physical aspect of
the computer that can be seen .
2. ________ is the brain of a computer.
A) Memory
B) CPU
3
, C) Disk
D) Motherboard
Answer: B) CPU
Rationale: The CPU (Central Processing Unit)
is the brain of a computer, responsible for
executing instructions .
3. The speed of the CPU may be measured in
__________. (Select all that apply)
A) megabytes
B) gigabytes
4