b
b Class:bbb
b
b Date:bbb
b
b
Chapterb02:bElementsbofbHigh-QualitybProgramsb
b
CopyrightbCengagebLearning.bPoweredbbybCognero.b
Pageb1b
b
1.bAllbprogrammingblanguagesbsupportbfourbbroadbdatabtypes.b
bb
a.bbTrueb
bb
b.bbFalseb
ANSWER:bbb
Falseb
FEEDBACK:bbb
CorrectbbbCorrect.bTherebarebtwobbroadbdatabtypes:bnumericbandbstring.b
IncorrectbbbIncorrect.bTherebarebtwobbroadbdatabtypes:bnumericbandbstring.b
b
POINTS:bbb
1b
REFERENCES:bbb
39b
UnderstandingbDatabTypesb
QUESTIONbTYPE:bbb
Trueb/bFalseb
HASbVARIABLES:bbb
Falseb
LEARNINGbOBJECTIVES:bbbPL&D.FARR.18.02.01b-bDeclarebandbusebvariablesbandbconstantsb
DATEbCREATED:bbb
9/12/2016b12:40bPMb
DATEbMODIFIED:bbb
11/15/2019b4:11bPMb
b
b
2.bBecausebonebmemoryblocationbcanbbebusedbrepeatedlybwithbdifferentbvalues,byoubcanbwrit
ebprogrambinstructionsbonceb
andbthenbusebthembforbthousandsbofbseparatebcalculationsb
bb
a.bbTrueb
bb
b.bbFalseb
ANSWER:bbb
Trueb
FEEDBACK:bbb
CorrectbbbCorrect.bVariablesbarebnamedbmemoryblocationsbwhosebcontentsbcanbvaryborbdifferb
,overbtime.bThebabilitybofbvariablesbtobchangebinbvaluebisbwhatbmakesbcomputersbandb
programmingbworthwhile.b
IncorrectbbbIncorrect.bVariablesbarebnamedbmemoryblocationsbwhosebcontentsbcanbvaryborbdi
fferb
overbtime.bThebabilitybofbvariablesbtobchangebinbvaluebisbwhatbmakesbcomputersbandb
programmingbworthwhile.b
b
POINTS:bbb
1b
REFERENCES:bbb
40b
UnderstandingbUnnamed,bLiteralbConstantsb
QUESTIONbTYPE:bbb
Trueb/bFalseb
HASbVARIABLES:bbb
Falseb
LEARNINGbOBJECTIVES:bbbPL&D.FARR.18.02.01b-bDeclarebandbusebvariablesbandbconstantsb
DATEbCREATED:bbb
9/12/2016b12:40bPMb
DATEbMODIFIED:bbb
11/15/2019b4:11bPMb
b
b
3.bInbmanybprogrammingblanguages,bifbyoubdeclarebabvariablebandbdobnotbinitializebit,bthebvar
iablebcontainsbanbunknownb
valuebuntilbitbisbassignedbabvalue.b
bb
a.bbTrueb
bb
b.bbFalseb
ANSWER:bbb
Trueb
FEEDBACK:bbb
CorrectbbbCorrect.bAbvariable’sbunknownbvaluebcommonlybisbcalledbgarbage,balthoughbsomeb
languagesbusebabdefaultbvaluebforbsomebvariables.b
IncorrectbbbIncorrect.bAbvariable’sbunknownbvaluebcommonlybisbcalledbgarbage,balthoughbso
meb
languagesbusebabdefaultbvaluebforbsomebvariables.b
b
DOWNLOADbTHEbTestbBankbforbProgrammingbLogicb&bDesignbComprehensiveb9th
bbbbbbbbbbbbbbbbbbbbbbbbbbbbEditionbFarrell
mynursytest.store
Name:bbb
b
b Class:bbb
b
b Date:bbb
b
b
,Chapterb02:bElementsbofbHigh-QualitybProgramsb
b
CopyrightbCengagebLearning.bPoweredbbybCognero.b
Pageb2b
b
POINTS:bbb
1b
REFERENCES:bbb
46b
AssigningbValuesbtobVariablesb
QUESTIONbTYPE:bbb
Trueb/bFalseb
HASbVARIABLES:bbb
Falseb
LEARNINGbOBJECTIVES:bbbPL&D.FARR.18.02.01b-bDeclarebandbusebvariablesbandbconstantsb
DATEbCREATED:bbb
9/12/2016b12:40bPMb
DATEbMODIFIED:bbb
11/15/2019b4:11bPMb
b
b
4.bVariablebnamesbcanbbebmorebthanbonebwordbwithbblanksbbetweenbthebwords.b
bb
a.bbTrueb
bb
b.bbFalseb
ANSWER:bbb
Falseb
FEEDBACK:bbb
CorrectbbbCorrect.bVariablebnamesbareboftenbmorebthanbonebword,bbutbwordsbarebseparatedb
followingbabvarietybofbnamingbconventions.bSomebcommonbnamingbconventionsb
includebcamelbcase,bPascalbcase,bsnakebcase,bmixedbcasebwithbunderscores,bandb
kebobbcase.b
IncorrectbbbIncorrect.bVariablebnamesbareboftenbmorebthanbonebword,bbutbwordsbarebseparat
edb
followingbabvarietybofbnamingbconventions.bSomebcommonbnamingbconventionsb
includebcamelbcase,bPascalbcase,bsnakebcase,bmixedbcasebwithbunderscores,bandb
kebobbcase.b
b
POINTS:bbb
1b
REFERENCES:bbb
43b
UnderstandingbabDeclaration’sbIdentifierb
QUESTIONbTYPE:bbb
Trueb/bFalseb
HASbVARIABLES:bbb
, Falseb
LEARNINGbOBJECTIVES:bbbPL&D.FARR.18.02.01b-bDeclarebandbusebvariablesbandbconstantsb
DATEbCREATED:bbb
9/12/2016b12:40bPMb
DATEbMODIFIED:bbb
11/15/2019b4:11bPMb
b
b
5.bThebassignmentboperatorbhasbleft-to-
rightbassociativity,bwhichbmeansbthatbthebvaluebofbthebexpressionbtobthebleftbofbtheb
assignmentboperatorbisbevaluatedbfirstbandbthatbthebresultbisbassignedbtobtheboperandbonbtheb
right.b
bb
a.bbTrueb
bb
b.bbFalseb
ANSWER:bbb
Falseb
FEEDBACK:bbb
CorrectbbbCorrect.bThebassignmentboperatorbalwaysboperatesbfrombrightbtobleft,bwhichbmeans
b
thatbitbhasbright-associativityborbright-to-leftbassociativity.bThisbmeansbthatbthebvalueb
ofbthebexpressionbonbthebrightbofbthebassignmentbisbevaluatedbfirst,bandbthenbtheb
resultbisbassignedbtobtheboperandbonbthebleft.b
IncorrectbbbIncorrect.bThebassignmentboperatorbalwaysboperatesbfrombrightbtobleft,bwhichbme
ansb
thatbitbhasbright-associativityborbright-to-leftbassociativity.bThisbmeansbthatbthebvalueb
ofbthebexpressionbonbthebrightbofbthebassignmentbisbevaluatedbfirst,bandbthenbtheb
resultbisbassignedbtobtheboperandbonbthebleft.b
b
POINTS:bbb
1b
REFERENCES:bbb
45b
AssigningbValuesbtobVariablesb
DOWNLOADbTHEbTestbBankbforbProgrammingbLogicb&bDesignbComprehensiveb9th
bbbbbbbbbbbbbbbbbbbbbbbbbbbbEditionbFarrell
mynursytest.store
Name:bbb
b
b Class:bbb
b
b Date:bbb
b
b
Chapterb02:bElementsbofbHigh-QualitybProgramsb
b
CopyrightbCengagebLearning.bPoweredbbybCognero.b
Pageb3b
b