ple nChoice
1. Whichnstatementnbestndescribesnancomputernprogram?
A) Anprogramnisnansequence nof ncomments.
B) Anprogramncanndecide nwhatntasknitnisntonperform.
C) Anprogramnisnansequence nof ninstructionsnandndecisionsnthatnthe ncomputerncarriesnout.n
D) Anprogramncannonlynperformnone nsimple ntask.
Ans:nC
2. Whichnstatementnregardingncomputernprogramsnisncorrect?
A) Computernprogramsncanndecide nwhatntaskntonperform.
B) Large nandncomplex ncomputernprogramsnare ngenerallynwrittennbynonlynone nprogrammer.
C) Computernprogramsnare ncomposednof nextremelynprimitive noperations.
D) Smallncomputernprogramsnare nnotndocumented.
Answer:nc
3. WhatndoesnCPUnstandnfor?
A) ComputernProgrammingnUnit
B) ComputernProcessingnUnit
C) CentralnProcessingnUnitn
D) CentralnProgrammingnUnit
Ans:nC
4. Whichnone nofnthe nfollowingnisnNOTnanfunctionnofnanCPU?
A) Performingnarithmeticnoperations
B) Processingndatanandncontrollingnprograms
n C) n Queryingn an database n
D) nFetchingnandnstoringndatanfromnstorage nandninputndevices
Ans:nC
5. Whichntype nofn storage nisnmade nfromnmemorynchips?
A) CD
B) hardndisk
C) primarynstorage n
D) DVD
Ans:nC
6. Whichnone nofnthe nfollowingnmemoryntypesnprovidesnstorage nthatnpersistsnwithoutnelectricity?
A) primarynstorage
B) RAM
C) memory
D) secondarynstorage n
Ans:nD
,7. Whichntype nofnsecondarynstorage nconsistsnofnrotatingnplatters,nwhichnare ncoatednwithnanmagneticnmaterial,nan
dnread/write nheads,nwhichncanndetectnandnchange nthe npatternsnof nvaryingnmagneticnflux nonnthe nplatters?
A) hardndisk
B) flashdrive
C) DVD
D) RAM
Ans:nA
8. Whatnare nthe nelectricalnlinesncallednthatninterconnectnthenCPU,nRAM,nandnthe nelectronicsncontrollingnthe nhardndisknand
n othern devices?
A) bus
B) network
C) opticalndisk
D) powernlines
Ans:nA
9. Whichnpartnofnancomputerncontainsnthe nCPU,nthe nRAM,nandnconnectorsntonperipheralndevices?
A) network
B) bus
C) motherboard
D) opticalndisk
Ans:nC
10. Fornanprogramntonbe nexecuted, nwhere nmustnitnreside nsonthatnthe nCPUncannreadnitsninstructions?
A) opticalndisk
B) primarynmemory
C) secondarynmemory
D) hardndisk
Ans:nB
11. Whichnmemoryntype ndoesnnotnprovide npersistentnstorage?
A) secondarynstorage
B) hardndisk
C) primarynstorage
D) DVD
Answer:nc
12. Whichnof nthe nfollowingnisnnotncontainednonnthe nmotherboardnofnancomputer?
A) RAM
B) integratedncircuit
C) hardndisk
D) CPU
Answer:nc
,13. Whatntermnisnusedntonreferntonthe ncomputerninstructionsnthatnare nexecutednbynanCPU,nwhichnare nspecificntoneachnCPU?
A) virtualnmachine
B) machine ncode
C) high-levelncode
D) instructionnset
Ans:nB
14. Whatnisnthe nJVM?
A) Anvitalnmachine nthatnnevernfailsntonrunncompilednJavancode.
B) Anvitalnmachine nthatncompilesnJavancode nintonmachine ninstructions.
C) Anvirtualnmachine nthatnrunsncompilednJavancode nonnanynCPU.
D) Anvirtualnmachine nthatncompilesnJavancode nintonmachine ninstructions.
Answer:nc
15. Whatnisnthe ntermnusedntonreferntonJavancode nthatnrunsninnanbrowser?
A) applet
B) script
C) html
D) class
Answer:na
16. Whatntermnisnusedntonreferntonlanguagesnthatnallownprogrammersntondescribe ntasksnatnanhighernconceptualnlevelntha
nnmachine ncode?
A) virtual
B) high-level
C) sophisticated
D) conceptual
Ans:nB
17. Whatntranslatesnhigh-levelndescriptionsnintonmachine ncode?
A) debugger
B) assembler
C) compiler
D) linker
Ans:nC
18. WhatntranslatesnJavansource ncode nintonfilesnthatncontainninstructionsnfornthe nJVM?
A) linker
B) compiler
C) assembler
D) interpreter
, Ans:nB
19. Whichnstatementnisntrue naboutnrunningnanJavanprogramnonnandifferentnCPU?
A) YounneedndifferentnJavansource ncode nforneachnprocessor.
B) Youncanntake ncode nthatnhasnbeenngeneratednbynthe nJavancompilernandnrunnitnonndifferentnCPUs.
C) Younneedntonrecompile nthe nJavanprogramnforneachnprocessor.
D) Youncannotnrunnthe nprogramnonnancomputernwithnandifferentnprocessornbecause nJava,nbeingnanhigh-
levelnprogrammingnlanguage,nisnmachine ndependent.
Ans:nB
20. WhennwasnJavanofficiallynintroduced?
A) 1989
B) 1995
C) 2005
D) 2000
Ans:nB
21. Whichnstatementnbestndescribesnthe nportabilityncharacteristicnof nJava?
A) ItnisneasyntoncopynJavansource ncode nfromnone nmachine ntonanother.
B) The nsame nJavanclassnfilesnwillnrunnonndifferentnoperatingnsystemsnwithoutnchange.
C) Itnisneasyntoncompile nJavansource ncode nonndifferentnoperatingnsystems.
D) Itnisneasyntonchange nanJavanprogramnsonthatnitnwillnworknonndifferentnoperatingnsystems.
Ans:nB
22. WhennanJavanapplicationnstarts,nwhatnisnthe nname nofnthe nmethodnthatnisnexecuted?
A) main
B) start
C) begin
D) Main
Answer:na
23. Textnenclosednbetweennthisnandnthe nendnof nline nisnignorednbynthe ncompiler.
A) ''
B) //
C) ()
"D) n"""""
Answer:nb
24. Whatnisnthe nname nofnthe nfile ndeclaringnthe nclassnnamedMyClass?
A) MyClass