n n
INTRODUCTION TO n
JAVA
n
PROGRAMMING
n
AND DATA
n n
STRUCTURES
n
COMPREHENSIVE
n
VERSION, 12TH
n n
EDITION, Y. DANIEL
n n n
LIANG
n
, Chapter n1 nIntroduction nto nComputers, nPrograms, nand nJava
Section n1.2 nWhat nis na nComputer?
1. is nthe nphysical naspect nof nthe ncomputer nthat ncan n be nseen.
a. Hardware
b. Software
c. Operating nsystem
d. Application nprogram
Key:a nSee nthe nfirst nparagraph nin nSection n1.2.
#
Section n1.2.1 nWhat nis na nComputer?
2. is nthe nbrain nof na ncomputer.
a. Hardware
b. CPU
c. Memory
d. Disk
Key:b nSee nthe nfirst nparagraph nin nSection n1.2.1.
#
3. The nspeed nof nthe nCPU n may nbe n measured nin .
a. megabytes
b. gigabytes
c. megahertz
d. gigahertz
Key:cd nSee nthe nthird nparagraph nin nSection n1.2.1. n1 nmegahertz nequals n1 nmillion npulses nper nsecond nand n1
ngigahertz nis n1000 nmegahertz.
#
Section n1.2.2 nBits nand nBytes
4. Why ndo ncomputers nuse nzeros nand n ones?
a. because ncombinations nof nzeros nand nones ncan nrepresent nany nnumbers nand ncharacters.
b. because ndigital ndevices nhave ntwo nstable nstates nand n it nis nnatural nto nuse none n state nfor n0 nand nthe nother nfor n1.
c. because nbinary nnumbers nare nsimplest.
d. because nbinary nnumbers nare nthe nbases nupon nwhich nall nother nnumber nsystems
nare nbuilt. nKey:b nSee nthe nsecond nparagraph nin nSection n1.2.2.
#
5. One nbyte nhas bits.
a. 4
b. 8
c. 12
d. 16
Key:b nSee nthe nthrid nparagraph nin nSection n1.2.2.
#
5. One ngigabyte n is napproximately bytes.
a. 1 nmillion
b. 10 nmillion
c. 1 nbillion
d. 1 ntrillion
Key:c nSee nthe nfifth nparagraph nin nSection n1.2.2.
© n2020 nPearson nEducation, nInc., nHoboken, nNJ. nAll nrights nreserved. nThis nmaterial nis nprotected nunder nall ncopyright nlaws nas nthey
ncurrently nexist.
,#
Section n1.2.3 nMemory
6. A nprogram nand nits ndata nmust nbe nmoved ninto nthe ncomputer's before nthey ncan n be n executed nby nthe nCPU.
a. memory
b. hard ndisk
c. CPU
d. CD-ROM
Key:a nSee nthe nfirst nparagraph nin nSection n1.2.3.
#
Section n1.2.4 nStorage nDevices
6. nA ncomputer's is nvolatile; nthat nis, nany n information nstored nin n it nis nlost nwhen nthe nsystem's npower nis
nturned noff.
a. memory
b. hard ndisk
c. flash nstick
d. CD-ROM
Key:a nSee nthe nfirst nparagraph nin nSection n1.2.4.
#
6. Which nof nthe nfollowing nare nstorage ndevices?
a. portable ndisk
b. hard ndisk
c. flash nstick
d. CD-ROM
Key:abcd nSee nthe nsecond nparagraph nin nSection n1.2.4.
#
Section n1.2.5 nInput nand nOutput nDevices
7. The specifies nthe nnumber nof npixels n in nhorizontal nand n vertical ndimensions nof nthe ndisplay ndevice.
a. screen nresolution
b. pixel
c. dot npitch
d. monitor
Key:a nSee nthe nthird nlast nparagraph nin nSection n1.2.5.
#
Section n1.2.6 nCommunications nDevices
7. is na ndevice nto nconnect na ncomputer nto na n local n area nnetwork n(LAN).
a. Regular nmodem
b. DSL
c. Cable nmodem
d. NIC
Key:d nSee nthe nbullet nitems nin nSection n1.2.6.
#
Section n1.3 nProgram nLanguages
8. are ninstructions nto nthe ncomputer.
a. Hardware
b. Software
c. Programs
d. Keyboards
Key:bc nSee nthe nKey nPoint nin nSection
n1.3. n#
© n2020 nPearson nEducation, nInc., nHoboken, nNJ. nAll nrights nreserved. nThis nmaterial nis nprotected nunder nall ncopyright nlaws nas nthey
ncurrently nexist.
, 9. Computer ncan n execute nthe ncode nin .
a. machine nlanguage
b. assembly nlanguage
c. high-level n language
d. none nof nthe nabove
Key:a nSee nthe nfirst nparagraph nin nSection n1.3.1.
#
10. translates nhigh-level n language nprogram n into nmachine nlanguage nprogram.
a. An nassembler
b. A ncompiler
c. CPU
d. The noperating nsystem
Key:b nSee nthe nfirst nparagraph nafter nTable n1.1 nin nSection n1.3.3.
#
Section n1.4 nOperating nSystems
11. is nan noperating nsystem.
a. Java
b. C++
c. Windows
d. Visual nBasic
e. Ada
Key:c nSee nthe nfirst nparagraph nin nSection n1.4.
#
12. is na nprogram nthat nruns non na ncomputer nto nmanage nand ncontrol na ncomputer's nactivities.
a. Operating nsystem
b. Java
c. Modem
d. Interpreter
e. Compiler
Key:a nSee nthe nfirst nparagraph nin nSection n1.4.
#
Section n1.5 nJava, nWorld nWide nWeb, nand nBeyond
14. Due nto nsecurity nreasons, nJava cannot nrun n from na n Web n browser nin nthe nnew nversion nof nJava.
a. applications
b. applets
c. servlets
d. Micro nEdition nprograms
Key:b nSee nthe nlast nparagraph nin nSection n1.5.
#
15. nis nnot nan n object-oriented n programming n language.
a. Java
b. C++
c. C
d. C#
e. Python
Key:c nSee nTable n1.1 nin nSection n1.3.1.
#
16. nis ninterpreted.
© n2020 nPearson nEducation, nInc., nHoboken, nNJ. nAll nrights nreserved. nThis nmaterial nis nprotected nunder nall ncopyright nlaws nas
nthey ncurrently nexist.