Quick questions Flashcards

1
Q

JavaScript programming makes applications which of the following?

a. static
b. dynamic
c. syntactically correct
d. interactive

A

d) interactive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following are JavaScript libraries? (Choose all that apply.)

a. Dojo
b. MooTools
c. YUI
d. jQuery

A

All

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following names is a valid JavaScript variable?

a. my.variable
b. 1st-variable
c. ord[‘a’]
d. [TBC]var1_$

A

d. [TBC]var1_$

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

b. When the user has set a browser preference to disable JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

JavaScript uses which property to change the current content of HTML elements?

A

c. innerHTML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

An individual statement in JavaScript ends in a ________.

a. hash mark
b. closing parenthesis
c. period
d. semicolon

A

d. semicolon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

a. createElement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

b. show-hide attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly