plepChoice
1. Whichpstatementpbestpdescribespapcomputerpprogram?
A) Approgrampispapsequencepofpcomments.
B) Approgrampcanpdecidepwhatptaskpitpisptopperform.
C) Approgrampispapsequencepofpinstructionspandpdecisionspthatpthepcomputerpcarriespout.p
D) Approgrampcanponlypperformponepsimpleptask.
Ans:pC
2. Whichpstatementpregardingpcomputerpprogramspispcorrect?
A) Computerpprogramspcanpdecidepwhatptaskptopperform.
B) Largepandpcomplexpcomputerpprogramsparepgenerallypwrittenpbyponlyponepprogrammer.
C) Computerpprogramsparepcomposedpofpextremelypprimitivepoperations.
D) Smallpcomputerpprogramsparepnotpdocumented.
Answer:pc
3. WhatpdoespCPUpstandpfor?
A) ComputerpProgrammingpUnit
B) ComputerpProcessingpUnit
C) CentralpProcessingpUnitp
D) CentralpProgrammingpUnit
Ans:pC
4. WhichponepofpthepfollowingpispNOTpapfunctionpofpapCPU?
A) Performingparithmeticpoperations
B) Processingpdatapandpcontrollingpprograms
pC)pQueryingpapdatabasep
D)pFetchingpandpstoringpdatapfrompstoragepandpinputpdevices
Ans:pC
5. Whichptypepofp storagepispmadepfrompmemorypchips?
A) CD
B) hardpdisk
C) primarypstoragep
D) DVD
Ans:pC
6. Whichponepofpthepfollowingpmemoryptypespprovidespstoragepthatppersistspwithoutpelectricity?
A) primarypstorage
B) RAM
C) memory
D) secondarypstoragep
Ans:pD
,7. Whichptypepofpsecondarypstoragepconsistspofprotatingpplatters,pwhichparepcoatedpwithpapmagneticpmaterial,pan
dpread/writepheads,pwhichpcanpdetectpandpchangeptheppatternspofpvaryingpmagneticpfluxponpthepplatters?
A) hardpdisk
B) flashdrive
C) DVD
D) RAM
Ans:pA
8. WhatparepthepelectricalplinespcalledpthatpinterconnectpthepCPU,pRAM,pandpthepelectronicspcontrollingpthephardpdiskpand
potherpdevices?
A) bus
B) network
C) opticalpdisk
D) powerplines
Ans:pA
9. WhichppartpofpapcomputerpcontainspthepCPU,pthepRAM,pandpconnectorsptopperipheralpdevices?
A) network
B) bus
C) motherboard
D) opticalpdisk
Ans:pC
10. Forpapprogramptopbepexecuted,pwherepmustpitpresidepsopthatpthepCPUpcanpreadpitspinstructions?
A) opticalpdisk
B) primarypmemory
C) secondarypmemory
D) hardpdisk
Ans:pB
11. Whichpmemoryptypepdoespnotpprovideppersistentpstorage?
A) secondarypstorage
B) hardpdisk
C) primarypstorage
D) DVD
Answer:pc
12. Whichpofpthepfollowingpispnotpcontainedponpthepmotherboardpofpapcomputer?
A) RAM
B) integratedpcircuit
C) hardpdisk
D) CPU
Answer:pc
,13. WhatptermpispusedptopreferptopthepcomputerpinstructionspthatparepexecutedpbypapCPU,pwhichparepspecificptopeachpCPU?
A) virtualpmachine
B) machinepcode
C) high-levelpcode
D) instructionpset
Ans:pB
14. WhatpispthepJVM?
A) ApvitalpmachinepthatpneverpfailsptoprunpcompiledpJavapcode.
B) ApvitalpmachinepthatpcompilespJavapcodepintopmachinepinstructions.
C) ApvirtualpmachinepthatprunspcompiledpJavapcodeponpanypCPU.
D) ApvirtualpmachinepthatpcompilespJavapcodepintopmachinepinstructions.
Answer:pc
15. WhatpisptheptermpusedptopreferptopJavapcodepthatprunspinpapbrowser?
A) applet
B) script
C) html
D) class
Answer:pa
16. Whatptermpispusedptopreferptoplanguagespthatpallowpprogrammersptopdescribeptaskspatpaphigherpconceptualplevelptha
npmachinepcode?
A) virtual
B) high-level
C) sophisticated
D) conceptual
Ans:pB
17. Whatptranslatesphigh-levelpdescriptionspintopmachinepcode?
A) debugger
B) assembler
C) compiler
D) linker
Ans:pC
18. WhatptranslatespJavapsourcepcodepintopfilespthatpcontainpinstructionspforpthepJVM?
A) linker
B) compiler
C) assembler
D) interpreter
, Ans:pB
19. WhichpstatementpisptruepaboutprunningpapJavapprogramponpapdifferentpCPU?
A) YoupneedpdifferentpJavapsourcepcodepforpeachpprocessor.
B) YoupcanptakepcodepthatphaspbeenpgeneratedpbypthepJavapcompilerpandprunpitponpdifferentpCPUs.
C) YoupneedptoprecompilepthepJavapprogrampforpeachpprocessor.
D) YoupcannotprunpthepprogramponpapcomputerpwithpapdifferentpprocessorpbecausepJava,pbeingpaphigh-
levelpprogrammingplanguage,pispmachinepdependent.
Ans:pB
20. WhenpwaspJavapofficiallypintroduced?
A) 1989
B) 1995
C) 2005
D) 2000
Ans:pB
21. WhichpstatementpbestpdescribespthepportabilitypcharacteristicpofpJava?
A) ItpispeasyptopcopypJavapsourcepcodepfromponepmachineptopanother.
B) ThepsamepJavapclasspfilespwillprunponpdifferentpoperatingpsystemspwithoutpchange.
C) ItpispeasyptopcompilepJavapsourcepcodeponpdifferentpoperatingpsystems.
D) ItpispeasyptopchangepapJavapprogrampsopthatpitpwillpworkponpdifferentpoperatingpsystems.
Ans:pB
22. WhenpapJavapapplicationpstarts,pwhatpispthepnamepofpthepmethodpthatpispexecuted?
A) main
B) start
C) begin
D) Main
Answer:pa
23. Textpenclosedpbetweenpthispandpthependpofplinepispignoredpbypthepcompiler.
A) ''
B) //
C) ()
"D)p"""""
Answer:pb
24. WhatpispthepnamepofpthepfilepdeclaringpthepclasspnamedMyClass?
A) MyClass