TEST BANK FOR
b b
INTRODUCTION TO b
JAVA
b
PROGRAMMING
b
AND DATA
b b
STRUCTURES
b
COMPREHENSIVE
b
VERSION, 12TH
b b
EDITION,Y.DANIEL
b b b
LIANG
b
, Chapter 1 Introduction to Computers, Programs, and Java
b b b b b b b
Section 1.2 What is a Computer?
b b b b b
1. is the physical aspect of the computer that can be seen.
b b b b b b b b b b
a. Hardware
b. Software
c. Operating system b
d. Application program b
Key:a See the first paragraph in Section 1.2.
b b b b b b b
#
Section 1.2.1 What is a Computer?
b b b b b
2. is the brain of a computer. b b b b b
a. Hardware
b. CPU
c. Memory
d. Disk
Key:b See the first paragraph in Section 1.2.1.
b b b b b b b
#
3. The speed of the CPU may be measured in
b b . b b b b b b
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 1000
b b b b b b b b b b b b b b b b b b b b
megahertz.
b
#
Section 1.2.2 Bits and Bytes
b b b b
4. Why do computers use zeros and ones?
b b b b b b
a. because combinations of zeros and ones can represent any numbers and characters.
b b b b b b b b b b b
b. because digital devices have two stable states and it is natural to use one state for 0 and the other for 1.
b b b b b b b b b b b b b b b b b b b b b
c. because binary numbers are simplest.
b b b b
d. because binary numbers are the bases upon which all other number systems are built.
b b b b b b b b b b b b b
Key:b See the second paragraph in Section 1.2.2.
b b b b b b b b
#
5. One byte has b bits. b
a. 4
b. 8
c. 12
d. 16
Key:b See the thrid paragraph in Section 1.2.2.
b b b b b b b
#
5. One gigabyte is approximately
b bytes. b b
a. 1 million
b
b. 10 million
b
c. 1 billion
b
d. 1 trillion
b
Key:c See the fifth paragraph in Section 1.2.2.
b b b b b b b
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
,#
Section 1.2.3 Memory b b
6. A program and its data must be moved into the computer's
b b b b b b b b b b before they can be executed by the CPU.
b b b b b b b
a. memory
b. hard disk b
c. CPU
d. CD-ROM
Key:a See the first paragraph in Section 1.2.3.
b b b b b b b
#
Section 1.2.4 Storage Devices
b b b
6. A computer's
b b is volatile; that is, any information stored in it is lost when the system's power is turned off. b b b b b b b b b b b b b b b b b
a. memory
b. hard disk b
c. flash stick b
d. CD-ROM
Key:a See the first paragraph in Section 1.2.4.
b b b b b b b
#
6. Which of the following are storage devices?
b b b b b b
a. portable disk b
b. hard disk b
c. flash stick b
d. CD-ROM
Key:abcd See the second paragraph in Section 1.2.4.
b b b b b b b
#
Section 1.2.5 Input and Output Devices
b b b b b
7. The specifies the number of pixels in horizontal and vertical dimensions of the display device. b b b b b b b b b b b b b
a. screen resolution b
b. pixel
c. dot pitch
b
d. monitor
Key:a See the third last paragraph in Section 1.2.5.
b b b b b b b b
#
Section 1.2.6 Communications Devices
b b b
7. is a device to connect a computer to a local area network (LAN). b b b b b b b b b b b b
a. Regular modem b
b. DSL
c. Cable modem b
d. NIC
Key:d See the bullet items in Section 1.2.6.
b b b b b b b
#
Section 1.3 Program Languages
b b b
8. are instructions to the computer. b b b b
a. Hardware
b. Software
c. Programs
d. Keyboards
Key:bc See the Key Point in Section 1.3. #
b b b b b b b b
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
, 9. Computer can execute the code in b b b b b .
a. machine language b
b. assembly language b
c. high-level language b
d. none of the above b b b
Key:a See the first paragraph in Section 1.3.1.
b b b b b b b
#
10. translates high-level language program into machine language program. b b b b b b b
a. An assembler b
b. A compiler b
c. CPU
d. The operating system
b b
Key:b See the first paragraph after Table 1.1 in Section 1.3.3.
b b b b b b b b b b
#
Section 1.4 Operating Systems
b b b
11. is an operating system. b b b
a. Java
b. C++
c. Windows
d. Visual Basic b
e. Ada
Key:c See the first paragraph in Section 1.4.
b b b b b b b
#
12. is a program that runs on a computer to manage and control a computer's activities.
b b b b b b b b b b b b b b
a. Operating system b
b. Java
c. Modem
d. Interpreter
e. Compiler
Key:a See the first paragraph in Section 1.4.
b b b b b b b
#
Section 1.5 Java, World Wide Web, and Beyond
b b b b b b b
14. Due to security reasons, Java
b b cannot run from a Web browser in the new version of Java.
b b b b b b b b b b b b b
a. applications
b. applets
c. servlets
d. Micro Edition programs b b
Key:b See the last paragraph in Section 1.5.
b b b b b b b
#
15. b is not an object-oriented programming language.
b b b b b
a. Java
b. C++
c. C
d. C#
e. Python
Key:c See Table 1.1 in Section 1.3.1.
b b b b b b
#
16. b is interpreted.
b
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
b b b b b b b b b b b b b b b b b b b b b
b b
INTRODUCTION TO b
JAVA
b
PROGRAMMING
b
AND DATA
b b
STRUCTURES
b
COMPREHENSIVE
b
VERSION, 12TH
b b
EDITION,Y.DANIEL
b b b
LIANG
b
, Chapter 1 Introduction to Computers, Programs, and Java
b b b b b b b
Section 1.2 What is a Computer?
b b b b b
1. is the physical aspect of the computer that can be seen.
b b b b b b b b b b
a. Hardware
b. Software
c. Operating system b
d. Application program b
Key:a See the first paragraph in Section 1.2.
b b b b b b b
#
Section 1.2.1 What is a Computer?
b b b b b
2. is the brain of a computer. b b b b b
a. Hardware
b. CPU
c. Memory
d. Disk
Key:b See the first paragraph in Section 1.2.1.
b b b b b b b
#
3. The speed of the CPU may be measured in
b b . b b b b b b
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 1000
b b b b b b b b b b b b b b b b b b b b
megahertz.
b
#
Section 1.2.2 Bits and Bytes
b b b b
4. Why do computers use zeros and ones?
b b b b b b
a. because combinations of zeros and ones can represent any numbers and characters.
b b b b b b b b b b b
b. because digital devices have two stable states and it is natural to use one state for 0 and the other for 1.
b b b b b b b b b b b b b b b b b b b b b
c. because binary numbers are simplest.
b b b b
d. because binary numbers are the bases upon which all other number systems are built.
b b b b b b b b b b b b b
Key:b See the second paragraph in Section 1.2.2.
b b b b b b b b
#
5. One byte has b bits. b
a. 4
b. 8
c. 12
d. 16
Key:b See the thrid paragraph in Section 1.2.2.
b b b b b b b
#
5. One gigabyte is approximately
b bytes. b b
a. 1 million
b
b. 10 million
b
c. 1 billion
b
d. 1 trillion
b
Key:c See the fifth paragraph in Section 1.2.2.
b b b b b b b
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
,#
Section 1.2.3 Memory b b
6. A program and its data must be moved into the computer's
b b b b b b b b b b before they can be executed by the CPU.
b b b b b b b
a. memory
b. hard disk b
c. CPU
d. CD-ROM
Key:a See the first paragraph in Section 1.2.3.
b b b b b b b
#
Section 1.2.4 Storage Devices
b b b
6. A computer's
b b is volatile; that is, any information stored in it is lost when the system's power is turned off. b b b b b b b b b b b b b b b b b
a. memory
b. hard disk b
c. flash stick b
d. CD-ROM
Key:a See the first paragraph in Section 1.2.4.
b b b b b b b
#
6. Which of the following are storage devices?
b b b b b b
a. portable disk b
b. hard disk b
c. flash stick b
d. CD-ROM
Key:abcd See the second paragraph in Section 1.2.4.
b b b b b b b
#
Section 1.2.5 Input and Output Devices
b b b b b
7. The specifies the number of pixels in horizontal and vertical dimensions of the display device. b b b b b b b b b b b b b
a. screen resolution b
b. pixel
c. dot pitch
b
d. monitor
Key:a See the third last paragraph in Section 1.2.5.
b b b b b b b b
#
Section 1.2.6 Communications Devices
b b b
7. is a device to connect a computer to a local area network (LAN). b b b b b b b b b b b b
a. Regular modem b
b. DSL
c. Cable modem b
d. NIC
Key:d See the bullet items in Section 1.2.6.
b b b b b b b
#
Section 1.3 Program Languages
b b b
8. are instructions to the computer. b b b b
a. Hardware
b. Software
c. Programs
d. Keyboards
Key:bc See the Key Point in Section 1.3. #
b b b b b b b b
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
, 9. Computer can execute the code in b b b b b .
a. machine language b
b. assembly language b
c. high-level language b
d. none of the above b b b
Key:a See the first paragraph in Section 1.3.1.
b b b b b b b
#
10. translates high-level language program into machine language program. b b b b b b b
a. An assembler b
b. A compiler b
c. CPU
d. The operating system
b b
Key:b See the first paragraph after Table 1.1 in Section 1.3.3.
b b b b b b b b b b
#
Section 1.4 Operating Systems
b b b
11. is an operating system. b b b
a. Java
b. C++
c. Windows
d. Visual Basic b
e. Ada
Key:c See the first paragraph in Section 1.4.
b b b b b b b
#
12. is a program that runs on a computer to manage and control a computer's activities.
b b b b b b b b b b b b b b
a. Operating system b
b. Java
c. Modem
d. Interpreter
e. Compiler
Key:a See the first paragraph in Section 1.4.
b b b b b b b
#
Section 1.5 Java, World Wide Web, and Beyond
b b b b b b b
14. Due to security reasons, Java
b b cannot run from a Web browser in the new version of Java.
b b b b b b b b b b b b b
a. applications
b. applets
c. servlets
d. Micro Edition programs b b
Key:b See the last paragraph in Section 1.5.
b b b b b b b
#
15. b is not an object-oriented programming language.
b b b b b
a. Java
b. C++
c. C
d. C#
e. Python
Key:c See Table 1.1 in Section 1.3.1.
b b b b b b
#
16. b is interpreted.
b
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
b b b b b b b b b b b b b b b b b b b b b