INTRODUCTION TO
JAVA
PROGRAMMING
AND DATA
STRUCTURES
COMPREHENSIVE
VERSION, 12TH
EDITION, Y. DANIEL
LIANG
, Chapter 1 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
Key:a See the first paragraph in Section 1.2.
#
Section ji1.2.1 jiWhat jiis jia j iComputer?
2. is jithe jibrain jiof jia j i computer.
a. Hardware
b. CPU
c. Memory
d. Disk
Key:b jiSee jithe jifirst jiparagraph jiin jiSection ji1.2.1.
#
3. The jispeed jiof jithe jiCPU jimay jibe j i measured jiin .
a. megabytes
b. gigabytes
c. megahertz
d. gigahertz
Key:cd jiSee jithe jithird jiparagraph jiin jiSection ji1.2.1. ji1 jimegahertz jiequals ji1 jimillion jipulses jiper jisecond jiand ji1 jigigahertz jiis
ji1000 jimegahertz.
#
Section ji1.2.2 jiBits jiand jiBytes
4. Why jido jicomputers jiuse jizeros jiand j i ones?
a. because jicombinations jiof jizeros jiand jiones jican jirepresent jiany jinumbers jiand jicharacters.
b. because jidigital jidevices jihave jitwo jistable jistates jiand j i it jiis jinatural jito jiuse jione jistate jifor ji0 jiand jithe jiother jifor ji1.
c. because jibinary jinumbers jiare jisimplest.
d. because jibinary jinumbers jiare jithe jibases jiupon jiwhich jiall jiother jinumber jisystems jiare
jibuilt. jiKey:b jiSee jithe jisecond jiparagraph jiin jiSection ji1.2.2.
#
5. One jibyte jihas bits.
a. 4
b. 8
c. 12
d. 16
Key:b jiSee jithe jithrid jiparagraph jiin jiSection ji1.2.2.
#
5. One jigigabyte jiis jiapproximately bytes.
a. 1 jimillion
b. 10 jimillion
c. 1 jibillion
d. 1 jitrillion
Key:c jiSee jithe jififth jiparagraph jiin jiSection ji1.2.2.
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
,#
Section ji1.2.3 jiMemory
6. A jiprogram jiand jiits jidata jimust jibe jimoved jiinto jithe jicomputer's before jithey jican ji be jiexecuted jiby jithe jiCPU.
a. memory
b. hard jidisk
c. CPU
d. CD-ROM
Key:a jiSee jithe jifirst jiparagraph jiin jiSection ji1.2.3.
#
Section ji1.2.4 jiStorage jiDevices
6. jiA jicomputer's is jivolatile; jithat jiis, jiany jiinformation jistored jiin jiit jiis jilost jiwhen jithe jisystem's jipower jiis jiturned jioff.
a. memory
b. hard jidisk
c. flash jistick
d. CD-ROM
Key:a jiSee jithe jifirst jiparagraph jiin jiSection ji1.2.4.
#
6. Which jiof jithe jifollowing jiare jistorage jidevices?
a. portable jidisk
b. hard jidisk
c. flash jistick
d. CD-ROM
Key:abcd jiSee jithe jisecond jiparagraph jiin jiSection ji1.2.4.
#
Section ji1.2.5 jiInput jiand jiOutput jiDevices
7. The specifies jithe jinumber jiof jipixels jiin jihorizontal jiand jivertical jidimensions jiof jithe jidisplay jidevice.
a. screen jiresolution
b. pixel
c. dot jipitch
d. monitor
Key:a jiSee jithe jithird jilast jiparagraph jiin jiSection ji1.2.5.
#
Section ji1.2.6 jiCommunications jiDevices
7. is jia jidevice jito jiconnect jia j i computer jito jia jilocal j i area jinetwork ji(LAN).
a. Regular jimodem
b. DSL
c. Cable jimodem
d. NIC
Key:d jiSee j ithe jibullet jiitems jiin jiSection ji1.2.6.
#
Section ji1.3 jiProgram jiLanguages
8. are jiinstructions jito jithe jicomputer.
a. Hardware
b. Software
c. Programs
d. Keyboards
Key:bc jiSee jithe jiKey jiPoint jiin jiSection
1.3. ji#
ji
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
, 9. Computer jican jiexecute jithe jicode jiin .
a. machine jilanguage
b. assembly jilanguage
c. high-level j i language
d. none jiof j ithe jiabove
Key:a jiSee jithe jifirst jiparagraph jiin jiSection ji1.3.1.
#
10. translates jihigh-level jilanguage jiprogram jiinto jimachine jilanguage jiprogram.
a. An jiassembler
b. A jicompiler
c. CPU
d. The jioperating jisystem
Key:b j i See jithe jifirst jiparagraph jiafter jiTable ji1.1 jiin jiSection ji1.3.3.
#
Section ji1.4 jiOperating jiSystems
11. is jian jioperating jisystem.
a. Java
b. C++
c. Windows
d. Visual jiBasic
e. Ada
Key:c jiSee jithe jifirst jiparagraph jiin jiSection ji1.4.
#
12. is jia jiprogram jithat jiruns jion jia jicomputer jito jimanage jiand jicontrol jia jicomputer's jiactivities.
a. Operating jisystem
b. Java
c. Modem
d. Interpreter
e. Compiler
Key:a jiSee jithe jifirst jiparagraph jiin jiSection ji1.4.
#
Section ji1.5 jiJava, jiWorld jiWide jiWeb, jiand jiBeyond
14. Due jito jisecurity jireasons, jiJava cannot jirun jifrom jia j i Web ji browser jiin jithe jinew jiversion j i of jiJava.
a. applications
b. applets
c. servlets
d. Micro jiEdition jiprograms
Key:b jiSee jithe jilast jiparagraph jiin jiSection ji1.5.
#
15. ji is jinot jian j i object-oriented j i programming j i language.
a. Java
b. C++
c. C
d. C#
e. Python
Key:c jiSee jiTable ji1.1 jiin jiSection ji1.3.1.
#
16. ji is jiinterpreted.
© ji2020 jiPearson jiEducation, jiInc., jiHoboken, jiNJ. jiAll jirights jireserved. jiThis jimaterial jiis jiprotected jiunder jiall jicopyright jilaws jias jithey jicurrently
jiexist.