INTRODUCTION TO
JAVA
PROGRAMMING
AND DATA
STRUCTURES
COMPREHENSIVE
VERSION, 12TH
EDITION, Y. DANIEL
LIANG
, Chapteru1uIntroductionutouComputers,uPrograms,uanduJava
Sectionu1.2uWhatuisuauComputer?
1. isutheuphysicaluaspectuofutheucomputeruthatucanubeuseen.
a. Hardware
b. Software
c. Operatingusystem
d. Applicationuprogram
Key:auSeeutheufirstuparagraphuinuSectionu1.2.
#
Sectionu1.2.1uWhatuisuauComputer?
2. isutheubrainuofuau computer.
a. Hardware
b. CPU
c. Memory
d. Disk
Key:buSeeutheufirstuparagraphuinuSectionu1.2.1.
#
3. TheuspeeduofutheuCPUumayubeu measureduin .
a. megabytes
b. gigabytes
c. megahertz
d. gigahertz
Key:cduSeeutheuthirduparagraphuinuSectionu1.2.1.u1umegahertzuequalsu1umillionupulsesuperuseconduandu1ugigahertzuisu1
000umegahertz.
#
Sectionu1.2.2uBitsuanduBytes
4. Whyudoucomputersuuseuzerosuandu ones?
a. becauseucombinationsuofuzerosuanduonesucanurepresentuanyunumbersuanducharacters.
b. becauseudigitaludevicesuhaveutwoustableustatesuanduituisunaturalutouuseuoneustateuforu0uandutheuotheruforu1.
c. becauseubinaryunumbersu areusimplest.
d. becauseubinaryunumbersuareutheubasesuuponuwhichualluotherunumberusystemsuareubuilt
.uKey:buSeeutheuseconduparagraphuinuSectionu1.2.2.
#
5. Oneubyteuhas bits.
a. 4
b. 8
c. 12
d. 16
Key:buSeeutheuthriduparagraphuinuSectionu1.2.2.
#
5. Oneugigabyteuisuapproximately bytes.
a. 1umillion
b. 10umillion
c. 1ubillion
d. 1utrillion
Key:cuSeeutheufifthuparagraphuinuSectionu1.2.2.
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
,#
Sectionu1.2.3uMemory
6. Auprogramuanduitsudataumustubeumoveduintoutheucomputer's beforeutheyucanubeuexecutedubyutheuCPU.
a. memory
b. hardudisk
c. CPU
d. CD-ROM
Key:auSeeutheufirstuparagraphuinuSectionu1.2.3.
#
Sectionu1.2.4uStorageuDevices
6.uAucomputer's isuvolatile;uthatuis,uanyuinformationustoreduinuituisulostuwhenutheusystem'supoweruisuturneduoff.
a. memory
b. hardudisk
c. flashustick
d. CD-ROM
Key:auSeeutheufirstuparagraphuinuSectionu1.2.4.
#
6. Whichuofutheufollowinguareustorageudevices?
a. portableudisk
b. hardudisk
c. flashustick
d. CD-ROM
Key:abcduSeeutheuseconduparagraphuinuSectionu1.2.4.
#
Sectionu1.2.5uInputuanduOutputuDevices
7. The specifiesutheunumberuofupixelsuinuhorizontaluanduverticaludimensionsuofutheudisplayudevice.
a. screenuresolution
b. pixel
c. dotupitch
d. monitor
Key:auSeeutheuthirdulastu paragraphuinuSectionu1.2.5.
#
Sectionu1.2.6uCommunicationsuDevices
7. isuaudeviceutouconnectuau computerutouaulocalu areaunetworku(LAN).
a. Regularumodem
b. DSL
c. Cableumodem
d. NIC
Key:duSeeutheubulletuitemsuinuSectionu1.2.6.
#
Sectionu1.3uProgramu Languages
8. areuinstructionsutoutheucomputer.
a. Hardware
b. Software
c. Programs
d. Keyboards
Key:bcuSeeutheuKeyuPointuinuSectionu1.3.
u#
© 2020 Pearson Education, Inc., Hoboken, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
, 9. Computerucanuexecuteutheucodeuin .
a. machineulanguage
b. assemblyulanguage
c. high-levelu language
d. noneuofutheuabove
Key:auSeeutheufirstuparagraphuinuSectionu1.3.1.
#
10. translatesuhigh-levelulanguageuprogramuintoumachineulanguageuprogram.
a. Anuassembler
b. Aucompiler
c. CPU
d. Theuoperatingusystem
Key:buSeeutheufirstuparagraphuafteruTableu1.1uinuSectionu1.3.3.
#
Sectionu1.4uOperatinguSystems
11. isuanuoperatingusystem.
a. Java
b. C++
c. Windows
d. VisualuBasic
e. Ada
Key:cuSeeutheufirstuparagraphuinuSectionu1.4.
#
12. isuauprogramuthaturunsuonuau computerutoumanageuanducontroluaucomputer'suactivities.
a. Operatingusystem
b. Java
c. Modem
d. Interpreter
e. Compiler
Key:auSeeutheufirstuparagraphuinuSectionu1.4.
#
Sectionu1.5uJava,uWorlduWideuWeb,uandu Beyond
14. Dueutousecurityureasons,uJava cannoturunufromuauWebu browseruinutheunewuversionuofuJava.
a. applications
b. applets
c. servlets
d. MicrouEditionuprograms
Key:buSeeutheulastuparagraphuinuSectionu1.5.
#
15. uisunotuanu object-orientedu programmingu language.
a. Java
b. C++
c. C
d. C#
e. Python
Key:cuSeeuTableu1.1uinuSectionu1.3.1.
#
16. uisuinterpreted.
©u2020uPearsonuEducation,uInc.,uHoboken,uNJ.uAllurightsureserved.uThisumaterialuisuprotecteduunderuallucopyrightulawsuasutheyucurrentl
yuexist.