Quick questions Flashcards
JavaScript programming makes applications which of the following?
a. static
b. dynamic
c. syntactically correct
d. interactive
d) interactive
Which of the following are JavaScript libraries? (Choose all that apply.)
a. Dojo
b. MooTools
c. YUI
d. jQuery
All
Which of the following names is a valid JavaScript variable?
a. my.variable
b. 1st-variable
c. ord[‘a’]
d. [TBC]var1_$
d. [TBC]var1_$
When can JavaScript not be used?
a. With HTML 4.01 and previous
b. When the user has set a browser preference to disable JavaScript
c. When the user hasn’t installed JavaScript on his or her desktop
d. none of the above
b. When the user has set a browser preference to disable JavaScript
JavaScript uses which property to change the current content of HTML elements?
c. innerHTML
An individual statement in JavaScript ends in a ________.
a. hash mark
b. closing parenthesis
c. period
d. semicolon
d. semicolon
Which of the following does JavaScript use to add new elements to a program display? (Choose all that apply.)
a. createElement
b. appendChild
c. getElement d. addChild
a. createElement
Which of the following can you use to show and hide elements in a JavaScript program?
a. display attribute
b. show-hide attribute
c. show command
d. innerHTML
b. show-hide attribute