




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































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 |
| 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
C) Disk D) Motherboard Answer: B) CPU Rationale: The CPU (Central Processing Unit) is the brain of a computer, responsible for executing instructions.
C) megahertz D) gigahertz Answer: C, D) megahertz, gigahertz Rationale: CPU speed is measured in megahertz (MHz) or gigahertz (GHz).
Answer: B) 8 Rationale: One byte consists of 8 bits.
D) 1 trillion Answer: C) 1 billion Rationale: One gigabyte is approximately 1 billion bytes.
Answer: A) memory Rationale: RAM (memory) is volatile; hard disks and flash drives are non-volatile.
Answer: A, B, C Rationale: Portable disk, hard disk, and flash stick are storage devices. CPU is a processor.
Answer: D) NIC Rationale: A NIC (Network Interface Card) connects a computer to a LAN.
Rationale: Programs are instructions to the computer.
Rationale: A compiler translates high-level language into machine language.