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