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