Name: Class: Date:
Chapterg1g-
gIntroductiongtogJavascript
1. Agkeygcharacteristicgthatgsetsgscriptingglanguagesgapartgfromgothergprogrammingglanguagesgisgthatg .
a. scriptingglanguagesgmustgbegcompiledgbeforegtheygaregrun
b. scriptingglanguagesgaregrungdirectlygfromgagprogram,gnotgcompiled
c. non-scriptingglanguagesgrequireganginterpretergtogrun
d. non-scriptingglanguagesgaregnotgconvertedgintogmachinegcode
ANSWER: b
FEEDBACK: a.gIncorrect.gAgscriptingglanguagegbelongsgtogagsubcategorygofgprogramming
languagesgthatgdognotgrequiregcompilinggbutginsteadgaregrungdirectlygfromgagpro
gramgorgscript.gScriptingglanguagesgneedgtogbeginterpreted,gingwhichgthegcodegi
sgreadgline-by-
linegbyganginterpretergthatgscansgthegcodegforgerrorsgevengasgitgruns.gBeforegthe
ginstructionsgofgagnon-
scriptinggprogrammingglanguagegcangbegperformed,gtheygneedgtogbegcompiled,g
agprocessgbygwhichgthoseginstructionsgaregtransformedgintogmachinegcodegthatg
cangbegunderstoodgbygthegcomputergorgcomputergdevice.
b. Correct.gAgscriptingglanguagegbelongsgtogagsubcategorygofgprogrammingglangua
gesgthatgdognotgrequiregcompilinggbutginsteadgaregrungdirectlygfromgagprogramg
orgscript.gScriptingglanguagesgneedgtogbeginterpreted,gingwhichgthegcodegisgread
gline-by-
linegbyganginterpretergthatgscansgthegcodegforgerrorsgevengasgitgruns.gBeforegthe
ginstructionsgofgagnon-
scriptinggprogrammingglanguagegcangbegperformed,gtheygneedgtogbegcompiled,g
agprocessgbygwhichgthoseginstructionsgaregtransformedgintogmachinegcodegthatg
cangbegunderstoodgbygthegcomputergorgcomputergdevice.
c. Incorrect.gAgscriptingglanguagegbelongsgtogagsubcategorygofgprogrammingglang
uagesgthatgdognotgrequiregcompilinggbutginsteadgaregrungdirectlygfromgagprogra
mgorgscript.gScriptingglanguagesgneedgtogbeginterpreted,gingwhichgthegcodegisgr
eadgline-by-
linegbyganginterpretergthatgscansgthegcodegforgerrorsgevengasgitgruns.gBeforegthe
ginstructionsgofgagnon-
scriptinggprogrammingglanguagegcangbegperformed,gtheygneedgtogbegcompiled,g
agprocessgbygwhichgthoseginstructionsgaregtransformedgintogmachinegcodegthatg
cangbegunderstoodgbygthegcomputergorgcomputergdevice.
d. Incorrect.gAgscriptingglanguagegbelongsgtogagsubcategorygofgprogrammingglang
uagesgthatgdognotgrequiregcompilinggbutginsteadgaregrungdirectlygfromgagprogra
mgorgscript.gScriptingglanguagesgneedgtogbeginterpreted,gingwhichgthegcodegisgr
eadgline-by-
linegbyganginterpretergthatgscansgthegcodegforgerrorsgevengasgitgruns.gBeforegthe
ginstructionsgofgagnon-
scriptinggprogrammingglanguagegcangbegperformed,gtheygneedgtogbegcompiled,g
agprocessgbygwhichgthoseginstructionsgaregtransformedgintogmachinegcodegthatg
cangbegunderstoodgbygthegcomputergorgcomputergdevice.
POINTS: 1
DIFFICULTY: Moderate
REFERENCES: 1.1gExploringgthegJavaScriptgLanguage
QUESTIONgTYPE: MultiplegChoice
HASgVARIABLES: False
LEARNINGgOBJECTIVES:g JASC.CARE.22.1.1.2g-gExplaingthegusegofgcompilersgandgcompiling
KEYWORDS: Bloom's:gUnderstand
DATEgCREATED: 7/5/2021g2:07gPM
DATEgMODIFIED: 7/16/2021g12:02gPM
CopyrightgCengagegLearning.gPoweredgbygCogner Pageg1
o.
mynursytest.store
,DOWNLOADgTHEgTestgBankgforgJavaScriptgforgWebgWarriorsg7thgEditiongCarey
Name: Class: Date:
Chapterg1g-
gIntroductiongtogJavascript
2. A(n)g
transformsgagsetgofginstructionsgwrittengingagprogrammingglanguagegintogmachinegcode,gwhichgcangbegundersto
odgbygagcomputer.
CopyrightgCengagegLearning.gPoweredgbygCogner Pageg2
o.
mynursytest.store
,DOWNLOADgTHEgTestgBankgforgJavaScriptgforgWebgWarriorsg7thgEditiongCarey
Name: Class: Date:
Chapterg1g-
gIntroductiongtogJavascript
a. browser
b. scripter
c. interpreter
d. compiler
ANSWER: d
FEEDBACK: a.gIncorrect.gBeforegtheginstructionsgwrittengingagprogrammingglanguagegcangbe
performed,gtheygneedgtogbegtransformedgintogmachinegcodegthatgcangbegunder
stoodgbygthegcomputergorgcomputergdevicegbygagprogramgcalledgagcompiler.gTh
isgprocessgisgcalledgcompilation.gScriptingglanguages,gagsubsetgofgprogramming
glanguages,gneedgtogbeginterpreted,gingwhichgthegcodegisgreadgline-by-
linegbyganginterpretergthatgscansgthegcodegforgerrorsgevengasgitgruns.gAgJavaSc
riptginterpretergisgbuiltgintogeverygwebgbrowser,gsogtogcreategagJavaScriptgprogr
amgyougonlygneedgagtextgeditorgtogwritegthegcodegandgagwebgbrowsergtogrungit.
b. Incorrect.gBeforegtheginstructionsgwrittengingagprogrammingglanguagegcangbegp
erformed,gtheygneedgtogbegtransformedgintogmachinegcodegthatgcangbegunderst
oodgbygthegcomputergorgcomputergdevicegbygagprogramgcalledgagcompiler.gThis
gprocessgisgcalledgcompilation.gScriptingglanguages,gagsubsetgofgprogramminggl
anguages,gneedgtogbeginterpreted,gingwhichgthegcodegisgreadgline-by-
linegbyganginterpretergthatgscansgthegcodegforgerrorsgevengasgitgruns.gAgJavaSc
riptginterpretergisgbuiltgintogeverygwebgbrowser,gsogtogcreategagJavaScriptgprogr
amgyougonlygneedgagtextgeditorgtogwritegthegcodegandgagwebgbrowsergtogrungit.
c. Incorrect.gBeforegtheginstructionsgwrittengingagprogrammingglanguagegcangbegp
erformed,gtheygneedgtogbegtransformedgintogmachinegcodegthatgcangbegunderst
oodgbygthegcomputergorgcomputergdevicegbygagprogramgcalledgagcompiler.gThis
gprocessgisgcalledgcompilation.gScriptingglanguages,gagsubsetgofgprogramminggl
anguages,gneedgtogbeginterpreted,gingwhichgthegcodegisgreadgline-by-
linegbyganginterpretergthatgscansgthegcodegforgerrorsgevengasgitgruns.gAgJavaSc
riptginterpretergisgbuiltgintogeverygwebgbrowser,gsogtogcreategagJavaScriptgprogr
amgyougonlygneedgagtextgeditorgtogwritegthegcodegandgagwebgbrowsergtogrungit.
d. Correct.gBeforegtheginstructionsgwrittengingagprogrammingglanguagegcangbegper
formed,gtheygneedgtogbegtransformedgintogmachinegcodegthatgcangbegunderstoo
dgbygthegcomputergorgcomputergdevicegbygagprogramgcalledgagcompiler.gThisgp
rocessgisgcalledgcompilation.gScriptingglanguages,gagsubsetgofgprogrammingglan
guages,gneedgtogbeginterpreted,gingwhichgthegcodegisgreadgline-by-
linegbyganginterpretergthatgscansgthegcodegforgerrorsgevengasgitgruns.gAgJavaSc
riptginterpretergisgbuiltgintogeverygwebgbrowser,gsogtogcreategagJavaScriptgprogr
amgyougonlygneedgagtextgeditorgtogwritegthegcodegandgagwebgbrowsergtogrungit.
POINTS: 1
DIFFICULTY: Moderate
REFERENCES: 1.1gExploringgthegJavaScriptgLanguage
QUESTIONgTYPE: MultiplegChoice
HASgVARIABLES: False
LEARNINGgOBJECTIVES:g JASC.CARE.22.1.1.2g-gExplaingthegusegofgcompilersgandgcompiling
KEYWORDS: Bloom's:gUnderstand
DATEgCREATED: 7/5/2021g2:13gPM
DATEgMODIFIED: 7/23/2021g10:46gAM
3. A(n)g readsgthegcodegofgagprogramglinegbygline,gscanninggforgerrors,gasgthegprogramgisgrun.
a. interpreter
CopyrightgCengagegLearning.gPoweredgbygCogner Pageg3
o.
mynursytest.store
, DOWNLOADgTHEgTestgBankgforgJavaScriptgforgWebgWarriorsg7thgEditiongCarey
Name: Class: Date:
Chapterg1g-
gIntroductiongtogJavascript
b. compiler
c. script
d. CSS
ANSWER: a
FEEDBACK: a.gCorrect.gScriptingglanguages,gagsubsetgofgprogrammingglanguages,gneedgtogbe
interpreted,gingwhichgthegcodegisgreadgline-by-
linegbyganginterpretergthatgscansgthegcodegforgerrorsgevengasgitgruns.gAgscripting
glanguagegbelongsgtogagsubcategorygofgprogrammingglanguages gthatgdognotgreq
uiregcompilinggbutginsteadgaregrungdirectlygfromgagprogramgorgscript.gAgprogram
mingglanguagegisgagsetgofginstructionsgdirectinggthegactionsgofgthegcomputergorg
computergdevice.gForgagnon-
scriptingglanguage,gbeforegtheseginstructionsgcangbegperformed,gtheygneedgtogb
egcompiled,gagprocessgbygwhichgthoseginstructionsgaregtransformedgintogmachin
egcodegthatgcangbegunderstoodgbygthegcomputergorgcomputergdevice.gCSSg(Ca
scadinggStylegSheets)garegusedgtogdefineghowgagwebgpagegwillgappeargongagsp
ecifiedgdevice.
b. Incorrect.gScriptingglanguages,gagsubsetgofgprogrammingglanguages,gneedgtogbe
ginterpreted,gingwhichgthegcodegisgreadgline-by-
linegbyganginterpretergthatgscansgthegcodegforgerrorsgevengasgitgruns.gAgscripting
glanguagegbelongsgtogagsubcategorygofgprogrammingglanguages gthatgdognotgreq
uiregcompilinggbutginsteadgaregrungdirectlygfromgagprogramgorgscript.gAgprogram
mingglanguagegisgagsetgofginstructionsgdirectinggthegactionsgofgthegcomputergorg
computergdevice.gForgagnon-
scriptingglanguage,gbeforegtheseginstructionsgcangbegperformed,gtheygneedgtogb
egcompiled,gagprocessgbygwhichgthoseginstructionsgaregtransformedgintogmachin
egcodegthatgcangbegunderstoodgbygthegcomputergorgcomputergdevice.gCSSg(Cas
cadinggStylegSheets)garegusedgtogdefineghowgagwebgpagegwillgappeargongagspe
cifiedgdevice.
c. Incorrect.gScriptingglanguages,gagsubsetgofgprogrammingglanguages,gneedgtogbe
ginterpreted,gingwhichgthegcodegisgreadgline-by-
linegbyganginterpretergthatgscansgthegcodegforgerrorsgevengasgitgruns.gAgscripting
glanguagegbelongsgtogagsubcategorygofgprogrammingglanguages gthatgdognotgreq
uiregcompilinggbutginsteadgaregrungdirectlygfromgagprogramgorgscript.gAgprogram
mingglanguagegisgagsetgofginstructionsgdirectinggthegactionsgofgthegcomputergorg
computergdevice.gForgagnon-
scriptingglanguage,gbeforegtheseginstructionsgcangbegperformed,gtheygneedgtogb
egcompiled,gagprocessgbygwhichgthoseginstructionsgaregtransformedgintogmachin
egcodegthatgcangbegunderstoodgbygthegcomputergorgcomputergdevice.gCSSg(Cas
cadinggStylegSheets)garegusedgtogdefineghowgagwebgpagegwillgappeargongagspe
cifiedgdevice.
d. Incorrect.gScriptingglanguages,gagsubsetgofgprogrammingglanguages,gneedgtogbe
ginterpreted,gingwhichgthegcodegisgreadgline-by-
linegbyganginterpretergthatgscansgthegcodegforgerrorsgevengasgitgruns.gAgscripting
glanguagegbelongsgtogagsubcategorygofgprogrammingglanguages gthatgdognotgreq
uiregcompilinggbutginsteadgaregrungdirectlygfromgagprogramgorgscript.gAgprogram
mingglanguagegisgagsetgofginstructionsgdirectinggthegactionsgofgthegcomputergorg
computergdevice.gForgagnon-
scriptingglanguage,gbeforegtheseginstructionsgcangbegperformed,gtheygneedgtogb
egcompiled,gagprocessgbygwhichgthoseginstructionsgaregtransformedgintogmachin
egcodegthatgcangbegunderstoodgbygthegcomputergorgcomputergdevice.gCSSg(Cas
cadinggStylegSheets)garegusedgtogdefineghowgagwebgpagegwillgappeargongagspe
cifiedgdevice.
POINTS: 1
DIFFICULTY: Moderate
CopyrightgCengagegLearning.gPoweredgbygCogner Pageg4
o.
mynursytest.store