INTRODUCTIONTO i.d
JAVA
i.d
PROGRAMMING
i.d
ANDDATA
i.d i.d
STRUCTURES
i.d
COMPREHENSIVE
i.d
VERSION, 12TH
i.d i.d
EDITION,Y.DANIEL
i.d i.d i.d
LIANG
i.d
, Chapter1Introduction to Computers, Programs, and Java i.d i.d i.d i.d i.d i.d i.d
Section1.2 What is a Computer? i.d i.d i .d i.d i.d
1. is the physical aspectof the computer that can be seen. i.d i.d i.d i.d i.d i.d i.d i.d i.d i .d
a. Hardware
b. Software
c. Operatingsystem i.d
d. Applicationprogram i.d
Key:a See the first paragraphin Section 1.2.
i.d i.d i.d i.d i.d i.d i.d
#
Section1.2.1 What is a Computer? i.d i.d i.d i .d i.d
2. is the brain of a computer. i .d i .d i.d i.d i .d
a. Hardware
b. CPU
c. Memory
d. Disk
Key:b See the first paragraphin Section 1.2.1.
i.d i .d i.d i.d i.d i.d i.d
#
3. Thespeed of the CPU may be measured in
i.d . i.d i.d i .d i.d i.d i .d i.d
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
i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i .d i.d i.d i.d i.d i.d
megahertz.
i.d
#
Section1.2.2 Bitsand Bytes i.d i.d i.d i.d
4. Why do computers use zerosand ones? i.d i.d i .d i .d i.d i.d
a. because combinations of zerosand ones can represent any numbers and characters.
i.d i.d i.d i.d i .d i .d i.d i.d i.d i.d i .d
b. because digital devices have twostable states and it is natural to use one state for 0 and the other for 1.
i.d i.d i.d i .d i.d i.d i.d i.d i.d i.d i .d i .d i .d i.d i.d i.d i.d i.d i.d i.d i.d
c. because binarynumbers are simplest. i.d i.d i .d i.d
d. because binarynumbers are the bases upon which all other number systems are built.
i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d
Key:b See the second paragraph in Section 1.2.2.
i.d i.d i.d i.d i.d i.d i.d i.d
#
5. One byte has bits. i.d i.d
a. 4
b. 8
c. 12
d. 16
Key:b See the thrid paragraphin Section1.2.2.
i .d i .d i.d i.d i.d i .d i.d
#
5. One gigabyte is approximately i.d bytes. i.d i.d
a. 1 million
i.d
b. 10 million i.d
c. 1 billion
i.d
d. 1 trillion
i.d
Key:c See the fifth paragraph in Section1.2.2.
i.d i.d i .d i.d i.d i.d i.d
©2020PearsonEducation, Inc.,Hoboken,NJ.Allrightsreserved.Thismaterialisprotectedunderallcopyrightlawsasthey currentlyexist.
i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d
,#
Section1.2.3Memory i.d i.d
6. A program and its data must be moved intothe computer's
i .d i.d i .d i .d i .d i.d i .d i .d i.d i .d before they can be executed bythe CPU.
i.d i.d i.d i.d i.d i.d i .d
a. memory
b. hard disk i.d
c. CPU
d. CD-ROM
Key:a See the first paragraphin Section 1.2.3.
i.d i.d i.d i.d i.d i.d i.d
#
Section1.2.4StorageDevices i.d i.d i.d
6. A computer's
i.d i .d is volatile; thatis, any information stored in it is lost when the system's poweris turnedoff. i.d i.d i.d i.d i .d i.d i.d i .d i.d i.d i .d i.d i.d i.d i.d i .d i.d
a. memory
b. hard disk i.d
c. flash stick i.d
d. CD-ROM
Key:a See the first paragraphin Section 1.2.4.
i.d i.d i.d i.d i.d i.d i.d
#
6. Which of the following are storage devices? i.d i.d i.d i .d i.d i.d
a. portabledisk i.d
b. hard disk i.d
c. flash stick i.d
d. CD-ROM
Key:abcd See the second paragraphin Section 1.2.4. i.d i.d i.d i .d i.d i.d i.d
#
Section1.2.5 Input and Output Devices i.d i.d i.d i.d i.d
7. The specifiesthe numberof pixels in horizontaland verticaldimensions of the display device. i.d i.d i.d i .d i.d i.d i.d i .d i.d i.d i .d i.d i.d
a. screenresolution i.d
b. pixel
c. dot pitch i.d
d. monitor
Key:a See the third last paragraphin Section 1.2.5.
i.d i.d i .d i.d i.d i.d i.d i.d
#
Section1.2.6Communications Devices i.d i.d i.d
7. is a deviceto connect a computer to a local area network (LAN). i.d i .d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d
a. Regularmodem i.d
b. DSL
c. Cable modem i.d
d. NIC
Key:d See the bullet items in Section1.2.6.
i.d i .d i.d i.d i.d i.d i.d
#
Section1.3Program Languages i.d i.d i.d
8. are instructions to the computer. i.d i.d i.d i.d
a. Hardware
b. Software
c. Programs
d. Keyboards
Key:bc See the Key Point in Section 1.3. # i.d i.d i.d i.d i.d i.d i.d i.d
©2020PearsonEducation, Inc.,Hoboken,NJ.Allrightsreserved.Thismaterialisprotectedunderallcopyrightlawsastheycurrentlyexist.
i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d
, 9. Computercan executethe code in i.d i.d i.d i.d i.d .
a. machine language i.d
b. assemblylanguage i.d
c. high-level language i . d
d. none of the above i.d i.d i .d
Key:a See the first paragraphin Section 1.3.1.
i.d i.d i.d i.d i.d i.d i.d
#
10. translates high-level languageprogram intomachine languageprogram. i.d i.d i.d i.d i.d i.d i.d
a. An assembler i.d
b. A compiler i.d
c. CPU
d. Theoperating system i.d i.d
Key:b See the first paragraph after Table 1.1 in Section1.3.3.
i.d i.d i.d i.d i.d i .d i.d i.d i .d i.d
#
Section1.4OperatingSystems i.d i.d i.d
11. is an operating system. i.d i .d i.d
a. Java
b. C++
c. Windows
d. VisualBasic i.d
e. Ada
Key:c See the first paragraphin Section 1.4.
i.d i.d i.d i.d i.d i.d i.d
#
12. is a program thatruns ona computer to manage and control a computer's activities. i.d i.d i .d i.d i .d i.d i .d i.d i .d i.d i .d i .d i .d i.d
a. Operatingsystem i.d
b. Java
c. Modem
d. Interpreter
e. Compiler
Key:a See the first paragraphin Section 1.4.
i.d i.d i.d i.d i.d i.d i.d
#
Section1.5Java, WorldWide Web, and Beyond
i.d i.d i .d i.d i.d i.d i .d
14. Due to security reasons, Java cannot run from a Web browser in the new version of Java.
i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i .d i.d i.d
a. applications
b. applets
c. servlets
d. Micro Edition programs i.d i.d
Key:b See the last paragraphin Section1.5.
i.d i .d i.d i.d i.d i .d i.d
#
15. i.d is not an object-oriented programming language.
i.d i.d i . d i . d i . d
a. Java
b. C++
c. C
d. C#
e. Python
Key:c See Table 1.1in Section1.3.1.
i .d i .d i .d i.d i.d i.d
#
16. i.d is interpreted.
i.d
©2020PearsonEducation, Inc.,Hoboken, NJ.Allrights reserved.Thismaterialisprotectedunderallcopyrightlawsastheycurrently exist.
i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d i.d