WGUID278IObjectiveIAssessmentIPrepI
(NewI2024/I2025IUpdate)IScriptingIandI
ProgrammingI-IFoundationsI|IQuestions
IandIVerifiedIAnswers|I100%ICorrect|IAI
GradeI
QUESTION
IImplicitIconversion
Answer:
AutomaticIconversionIofIoneIdataItypeItoIanother
QUESTION
ITypeIcast
Answer:
ConvertsIaIvalueIofIoneItypeItoIanotherItype
QUESTION
IModuloIOperatorI(%)
Answer:
EvaluatesItoItheIremainderIofItheIdivisionIofItwoIintegerIoperandsI
Ex.)I21I/I4I=I1
,QUESTION
IConstant
Answer:
AInamedIvalueIitemIthatIholdsIaIvalueIthatIcannotIchange;IcommonlyIusedIinIprogramsItoIhol
dItheIvalueIofImathematicalIorIphysicalIconstantsIsuchIhasIPi,IspeedIofIlight,Ietc.
QUESTION
IBranch
Answer:
SequenceIofIstatementsIonlyIexecutedIunderIaIcertainIcondition
QUESTION
IDecision
Answer:
CreatesItwoIbranches:IifItheIdecisionIisItrueItheIfirstIbranchIexecutes;IelseItheIsecondIbrandIe
xecutes
AfterwardItheIbranchesIrejoin
CalledIif-elseIbranches
QUESTION
INestedIbranches
Answer:
AIbranchIcontainingIif-elseIbranch
,QUESTION
IMultipleIbranches
Answer:
EachIdecisionIisIindependent,IthisImoreIthanIoneIbranchIcanIexecute
QUESTION
IEqualityIoperator
Answer:
ChecksIwhetherItwoIoperands'IvaluesIareItheIsameI(==)IorIdifferentI(!=)
QUESTION
IBoolean
Answer:
AItypeIthatIhasIjustItwoIvaluesI:ItrueIorIfalse
QUESTION
IRelationalIoperator
Answer:
ChecksIhowIoneIoperand'sIvalueIrelatesItoIanotherI(>I,I<,I=,I>=,I<=)
QUESTION
, ILogicalIoperator
Answer:
treatsIoperandsIasIbeingItrueIorIfalse,IandIevaluatesItoItrueIorIfalse;Iincludes:Iand,Ior,Inot
CommonlyIusedItoIdetectIifIaIvalueIisIwithinIaIrange
Ex.)IxI=I4
(x>1)IandI(x<9)Itrue
QUESTION
IPrecedenceIrules
Answer:
TheIorderIinIwhichIoperatorsIareIevaluatedIinIanIexpression.
QUESTION
IIfIstatement
Answer:
isIanIifIdecisionIexpressionIfollowedIbyIaIsub-statement,IwithoutItheI"else"Ipart
QUESTION
ILoop
Answer:
AIprogramIconstructedIthatIrepeatedlyIexecutesItheIloopsIstatementI(loopIbody)IwhileItheIloo
pIexpressionIisItrueI
WhenIfalse,IexecutionIproceedsIpastItheIloop
(NewI2024/I2025IUpdate)IScriptingIandI
ProgrammingI-IFoundationsI|IQuestions
IandIVerifiedIAnswers|I100%ICorrect|IAI
GradeI
QUESTION
IImplicitIconversion
Answer:
AutomaticIconversionIofIoneIdataItypeItoIanother
QUESTION
ITypeIcast
Answer:
ConvertsIaIvalueIofIoneItypeItoIanotherItype
QUESTION
IModuloIOperatorI(%)
Answer:
EvaluatesItoItheIremainderIofItheIdivisionIofItwoIintegerIoperandsI
Ex.)I21I/I4I=I1
,QUESTION
IConstant
Answer:
AInamedIvalueIitemIthatIholdsIaIvalueIthatIcannotIchange;IcommonlyIusedIinIprogramsItoIhol
dItheIvalueIofImathematicalIorIphysicalIconstantsIsuchIhasIPi,IspeedIofIlight,Ietc.
QUESTION
IBranch
Answer:
SequenceIofIstatementsIonlyIexecutedIunderIaIcertainIcondition
QUESTION
IDecision
Answer:
CreatesItwoIbranches:IifItheIdecisionIisItrueItheIfirstIbranchIexecutes;IelseItheIsecondIbrandIe
xecutes
AfterwardItheIbranchesIrejoin
CalledIif-elseIbranches
QUESTION
INestedIbranches
Answer:
AIbranchIcontainingIif-elseIbranch
,QUESTION
IMultipleIbranches
Answer:
EachIdecisionIisIindependent,IthisImoreIthanIoneIbranchIcanIexecute
QUESTION
IEqualityIoperator
Answer:
ChecksIwhetherItwoIoperands'IvaluesIareItheIsameI(==)IorIdifferentI(!=)
QUESTION
IBoolean
Answer:
AItypeIthatIhasIjustItwoIvaluesI:ItrueIorIfalse
QUESTION
IRelationalIoperator
Answer:
ChecksIhowIoneIoperand'sIvalueIrelatesItoIanotherI(>I,I<,I=,I>=,I<=)
QUESTION
, ILogicalIoperator
Answer:
treatsIoperandsIasIbeingItrueIorIfalse,IandIevaluatesItoItrueIorIfalse;Iincludes:Iand,Ior,Inot
CommonlyIusedItoIdetectIifIaIvalueIisIwithinIaIrange
Ex.)IxI=I4
(x>1)IandI(x<9)Itrue
QUESTION
IPrecedenceIrules
Answer:
TheIorderIinIwhichIoperatorsIareIevaluatedIinIanIexpression.
QUESTION
IIfIstatement
Answer:
isIanIifIdecisionIexpressionIfollowedIbyIaIsub-statement,IwithoutItheI"else"Ipart
QUESTION
ILoop
Answer:
AIprogramIconstructedIthatIrepeatedlyIexecutesItheIloopsIstatementI(loopIbody)IwhileItheIloo
pIexpressionIisItrueI
WhenIfalse,IexecutionIproceedsIpastItheIloop