True/False
Indicate whether the sentence or statement is true
or false.
|
|
1.
|
Documents created using basic HTML are dynamic.
|
|
2.
|
A
scripting engine is an interpreter that is part of the Web browser.
|
|
3.
|
JavaScript was introduced in Internet Explorer.
|
|
4.
|
VBScript is Microsoft's scripting language.
|
|
5.
|
JavaScript is NOT an object-oriented scripting language.
|
|
6.
|
JavaScript is NOT case-sensitive.
|
|
7.
|
A
JavaScript source file does NOT contain the <script> element tag.
|
|
8.
|
JavaScript is compatible with all browsers.
|
|
9.
|
Variable names can include spaces.
|
|
10.
|
Functions must be contained within the <script>...<script> tag
pair.
|
|
11.
|
writeln() is a method of the Document object.
|
|
12.
|
In
JavaScript, document and Document are the same object.
|
|
13.
|
Comments in JavaScript use the same syntax as comments created in C++ and
Java.
|
|
14.
|
HTML
tags are case-sensitive.
|
|
15.
|
One
reason to put the JavaScript code in a separate file instead of adding the code to an HTML document
is that the JavaScript code can be shared among multiple HTML documents.
|
Multiple Choice
Identify the
letter of the choice that best completes the statement or answers the question.
|
|
16.
|
JavaScript was created by _____. a. | Sun | c. | IBM | b. | Microsoft | d. | Netscape | | | | |
|
|
17.
|
A Web
browser that contains a scripting engine is called a(n) _____ a. | compiler | c. | converter | b. | scripting host | d. | interpreter | | | | |
|
|
18.
|
Within which tag are the JavaScript statements contained? a. | <jscript> | c. | <script> | b. | <statements> | d. | <body> | | | | |
|
|
19.
|
The
object that represents the content of a browser's window is _____. a. | Object | c. | Element | b. | Document | d. | Method | | | | |
|
|
20.
|
The
object name and the method name are separated by _____. a. | parentheses | c. | a
period | b. | a comma | d. | an ampersand | | | | |
|
|
21.
|
String literals are contained within _____.
|
|
22.
|
Which
method adds a carriage return after the line of text? a. | writeln() | c. | write() | b. | print() | d. | println() | | | | |
|
|
23.
|
What
is the extension of a JavaScript source file?
|
|
24.
|
What
is the attribute used to specify the JavaScript source file? a. | language | c. | file | b. | source | d. | src | | | | |
|
|
25.
|
The
type of comment that spans multiple lines is _____.
|
|
26.
|
The
tag that is used to tell the user that his (or her) browser is not compatible with JavaScript is
_____. a. | <incomp> | c. | <noscript> | b. | <nosupport> | d. | <hide> | | | | |
|
|
27.
|
What
is the keyword used with variable declaration?
|
|
28.
|
Statements are separated by _____. a. | colons | c. | periods | b. | semicolons | d. | commas | | | | |
|
|
29.
|
Abort, Change, and Submit are examples of _____. a. | variables | c. | events | b. | tags | d. | identifiers | | | | |
|
|
30.
|
Which
property is used to make a message appear in the status bar? a. | message | c. | display | b. | show | d. | status | | | | |
|
|
31.
|
A
procedure is a collection of _____. a. | statements | c. | objects | b. | methods | d. | documents | | | | |
|
|
32.
|
When
calling a method, the information passed to it is called _____. a. | a
parameter | c. | text | b. | a literal | d. | an argument | | | | |
|
|
33.
|
What
does the writeln() method add after the line of text? a. | Empty
line | c. | Double
quote | b. | Carriage return | d. | Tab | | | | |
|
|
34.
|
The
operator used to assign a value to a variable is _____.
|
|
35.
|
Which
of the following events is triggered when a text box changes? a. | Focus | c. | Blur | b. | Change | d. | Update | | | | |
|
|
36.
|
The
event that is triggered when the mouse moves off an element is _____. a. | MouseOver | c. | MouseExit | b. | MouseOut | d. | MouseBlur | | | | |
|
|
37.
|
In
the following tag, type is a(n) _____.
<input type="input
type">
a. | event | c. | tag | b. | attribute | d. | element | | | | |
|
|
38.
|
To
start a function declaration, you use the keyword _____. a. | func | c. | sub | b. | function | d. | procedure | | | | |
|
|
39.
|
Which
operator is used to combine literal strings with variables?
|
|
40.
|
What
is the smallest number of parameters a method can have?
|