QUESTIONS AND ANSWERS RATED
A+ SURE PASS!!! | LATEST VERSION
Whichmvaluemismstoredmasmanmintegerminmcomputermprogramming?m-
mCORRECTmANSWERSm21.mRationale:mThemintegermdatamtypemismusedmtomrepresentmpositivemormne
gativemwholemnumbersmwithoutmfractionalmparts.
Whichmcodingmconstructmrepeatsmamtaskmwhilemamconditionmismtrue?m-
mCORRECTmANSWERSmIteration.mRationale:mThemiterationmconstruct,mormthemloopingmconstruct,mus
esmamwhilemstatementmtomperformmthemsamemtaskmovermandmovermagainmasmlongmasmthemcondition
mismtrue.
Howmaremitemsmaccessedminmamstack?m-
mCORRECTmANSWERSmThemlastmitemmtombemaddedmbecomesmthemfirstmitemmremovedm(LIFO).mRatio
nale:mAmstackmismanmorderedmgroupmofmitemsmthatmcanmonlymbemaccessedmatmonemend,mcalledmthemt
opmofmthemstack.mItemsmcanmbempushedmontomandmpoppedmoffmofmthismend.mTherefore,mthemlastmit
emmtombemaddedmbecomesmthemfirstmitemmremoved.
Amwebmbrowsermputsmwebsitesmintomamviewingmhistorymlogmandmaccessesmthemmostmrecentmonemw
henmthembackmbuttonmismclicked.mWhichmdatamstructuremwouldmbemappropriatemformthismsituation?
m-
mCORRECTmANSWERSmStack.mRationale:mAmstackmismanmorderedmgroupmofmitemsmthatmcanmonlymbem
accessedmatmonemend,mcalledmthemtopmofmthemstack.mItemsmcanmbempushedmontomandmpoppedmoffm
ofmthismend.mInmthismcase,mthemonlymitemmneedingmtombemaccessedmismthemmostmrecentlymaddedmit
em.mTherefore,mamstackmismmostmappropriatemformstoringmthemdata.
Whatmismthemrelationshipmbetweenmamparametermandmanmargument?m-
mCORRECTmANSWERSmAmparametermismamtemporarymvariableminmamfunctionmthatmreceivesmthemactu
almvaluemofmanmargument.mRationale:mAmparametermismdefinedmwithinmamfunctionmandmservesmasma
mtemporarymplaceholder.mThemargumentmismthemactualmvaluemthatmismpassedmtomthemfunctionmandm
getsmtemporarilymstoredminmthemparameter.