INTRODUCTION TO JAVA PROGRAMMING AND DATA
STRUCTURES
13TH EDITION
CHAPTER NO. 01: INTRODUCTION TO COMPUTERS, PROGRAMS, AND JAVA
Section 1.2 What Is a Computer?
1) ________ is the physical aspect of the computer that can be seen.
A) Hardware
B) Software
C) Operating system
D) Application program
Answer: A
Explanation: See the first paragraph in Section 1.2.
Section: 1.2 What Is a Computer?
Section 1.2.1 Central Processing Unit
1) ________ is the brain of a computer.
A) Hardware
B) CPU
C) Memory
D) Disk
Answer: B
Explanation: See the first paragraph in Section 1.2.1.
Section: 1.2.1 Central Processing Unit
2) The speed of the CPU may be measured in ________. Please select all that apply.
A) megabytes
B) gigabytes
C) megahertz
D) gigahertz
Answer: C, D
Explanation: See the third paragraph in Section 1.2.1. 1 megahertz equals 1 million pulses per
second and 1 gigahertz is 1000 megahertz.
Section: 1.2.1 Central Processing Unit
Section 1.2.2 Bits and Bytes
,1) Why do computers use zeros and ones?
A) Because combinations of zeros and ones can represent any numbers and characters.
B) Because digital devices have two stable states and it is natural to use one state for 0 and the
other for 1.
C) Because binary numbers are simplest.
D) Because binary numbers are the bases upon which all other number systems are built.
Answer: B
Explanation: See the second paragraph in Section 1.2.2.
Section: 1.2.2 Bits and Bytes
2) One byte has ________ bits.
A) 4
B) 8
C) 12
D) 16
Answer: B
Explanation: See the third paragraph in Section 1.2.2.
Section: 1.2.2 Bits and Bytes
3) One gigabyte is approximately ________ bytes.
A) 1 million
B) 10 million
C) 1 billion
D) 1 trillion
Answer: C
Explanation: See the fifth paragraph in Section 1.2.2.
Section: 1.2.2 Bits and Bytes
Section 1.2.3 Memory
1) A program and its data must be moved into the computer's ________ before they can be
executed by the CPU.
A) memory
B) hard disk
C) CPU
D) CD-ROM
Answer: A
Explanation: See the first paragraph in Section 1.2.3.
Section: 1.2.3 Memory
Section 1.2.4 Storage Devices
,1) A computer's ________ is volatile; that is, any information stored in it is lost when the
system's power is turned off.
A) memory
B) hard disk
C) flash stick
D) CD-ROM
Answer: A
Explanation: See the first paragraph in Section 1.2.4.
Section: 1.2.4 Storage Devices
2) Which of the following are storage devices? Please select all that apply.
A) portable disk
B) hard disk
C) flash stick
D) CD-ROM
Answer: A, B, C, D
Explanation: See the second paragraph in Section 1.2.4.
Section: 1.2.4 Storage Devices
Section 1.2.5 Input and Output Devices
1) The ________ specifies the number of pixels in horizontal and vertical dimensions of the
display device.
A) screen resolution
B) pixel
C) dot pitch
D) monitor
Answer: A
Explanation: See the third last paragraph in Section 1.2.5.
Section: 1.2.5 Input and Output Devices
Section 1.2.6 Communications Devices
1) ________ is a device to connect a computer to a local area network (LAN).
A) Regular modem
B) DSL
C) Cable modem
D) NIC
Answer: D
Explanation: See the bullet items in Section 1.2.6.
Section: 1.2.6 Communications Devices
, Section 1.3 Programming Languages
1) ________ are instructions to the computer. Please select all that apply.
A) Hardware
B) Software
C) Programs
D) Keyboards
Answer: B, C
Explanation: See the Key Point in Section 1.3.
Section: 1.3 Programming Languages
2) Computer can execute the code in ________.
A) machine language
B) assembly language
C) high-level language
D) none of the above
Answer: A
Explanation: See the first paragraph in Section 1.3.1.
Section: 1.3 Programming Languages
3) ________ translates high-level language program into machine language program.
A) An assembler
B) A compiler
C) CPU
D) The operating system
Answer: B
Explanation: See the first paragraph after Table 1.1 in Section 1.3.3.
Section: 1.3 Programming Languages
Section 1.4 Operating Systems
1) ________ is an operating system.
A) Java
B) C++
C) Windows
D) Visual Basic
E) Ada
Answer: C
Explanation: See the first paragraph in Section 1.4.
Section: 1.4 Operating Systems