True/False Indicate whether the sentence or statement is true
or false.
|
||||||||||||
|
1. |
Including the date that a Web page was last modified gives users confidence that the
data on the page is current.
|
|||||||||||
|
2. |
Scrolling messages often are used on Web sites to highlight breaking news, key
products, or special promotions.
|
|||||||||||
|
3. |
The
display object component of a scrolling message is a text string assigned to a
variable.
|
|||||||||||
|
4. |
Large
text strings used in scrolling messages may cause older Netscape browsers to crash.
|
|||||||||||
|
5. |
The
statement, beginPos = beginPos * 1, increments the beginPos locator by 1.
|
|||||||||||
|
6. |
To
open an HTML file stored on a disk in drive A, click File on the menu bar, click Save, click
31/2 Floppy (A:) in the Look in box, and then double-click the desired document
to open.
|
|||||||||||
|
7. |
One
reason to avoid assigning a scrolling message to the status bar is that the message can hide
information the user needs to see relating to the current or next page being loaded.
|
|||||||||||
|
8. |
In
HTML code, the variables required in the scrollingMsg() function are not assigned initial values
before the function statements are entered.
|
|||||||||||
|
9. |
It is
good programming practice to use statements that only can be understood by programmers familiar with
the language you are using.
|
|||||||||||
|
10. |
The
comparison, a==b, is true if a equals b and the data are of the same type.
|
|||||||||||
|
11. |
After
you have saved an HTML file the first time, subsequent Save commands use a different file name with
each save.
|
|||||||||||
|
12. |
To
avoid errors, it is good development practice to test a Web page several times during its development
and a final time before publishing it to your Web site.
|
|||||||||||
|
13. |
The
anchor tag defines a target link.
|
|||||||||||
|
14. |
It is
not necessary to write JavaScript code to test data for values that are negative or
zero.
|
|||||||||||
|
15. |
If
the value of decipos is negative one (-1), then decipos is set equal to the length of the
string.
|
|||||||||||
Multiple Choice Identify the
letter of the choice that best completes the statement or answers the question.
|
||||||||||||
|
16. |
Which
of the following is a basic component of a scrolling message?
|
|||||||||||
|
17. |
Which
of the following statements increments a variable by one?
|
|||||||||||
|
18. |
Which
of the following conditional operators evaluates as true if a does not equal b?
|
|||||||||||
|
19. |
Which
of the following event handlers triggers JavaScript code when used with buttons and
links?
|
|||||||||||
|
20. |
Which
of the following event handlers is used to trigger an action when a document is loaded into the
browser window?
|
|||||||||||
|
21. |
Which
of the following is not a task performed by the scrollingMsg() function?
|
|||||||||||
|
22. |
Which
of the following is a variable required by the user-defined scrollingMsg() function?
|
|||||||||||
|
23. |
The
first part of the If statement includes ____?
|
|||||||||||
|
24. |
When
the user performs an action, such as clicking a button, which of the following generally triggers the
JavaScript code associated with the action?
|
|||||||||||
|
25. |
Which
of the following tags is used with the onload event handler?
|
|||||||||||
|
26. |
Which
of the following is the general form of the JavaScript statement used to assign a value to a text box
object within a form?
|
|||||||||||
|
27. |
Within the HTML code, which of the following starts an anchor tag?
|
|||||||||||
|
28. |
When
you set the focus to a text box, the JavaScript statement automatically positions which of the
following in the text box?
|
|||||||||||
|
29. |
According to good programming practice, under which of the following should lines of
code be indented?
|
|||||||||||
|
30. |
On
which of the following is the JavaScript validation procedure completed?
|
|||||||||||
|
31. |
Which
of the following is a built-in function of JavaScript?
|
|||||||||||
|
32. |
Which
of the following raises 2 to the power of 3?
|
|||||||||||
|
33. |
Which
of the following should you double-check after entering in the code?
|
|||||||||||
|
34. |
Which
of the following is not a step performed by the dollarFormat(function)?
|
|||||||||||
|
35. |
Which
of the following attributes supplied in the open() method allow you to determine the size at which
the new window initially displays?
|
|||||||||||
Completion Complete each sentence or
statement.
|
||||||||||||
|
36. |
A
scrolling message displays either in a text box within the Web page or on the
______________________.
|
|||||||||||
|
37. |
When
naming a text box for use in a scrolling message, the ______________________ attribute indicates the
display width of the text box.
|
|||||||||||
|
38. |
The
JavaScript statement, ______________________, automatically adds 1 to a variable.
|
|||||||||||
|
39. |
To
determine if the current value of the beginPos variable is greater than the length of the message,
use the ______________________ statement.
|
|||||||||||
|
40. |
The
submit button object generally is used with the ______________________ event handler.
|
|||||||||||
|
41. |
To
complete the scrollingMsg() function, you need to add a(n) ______________________ method that pauses
before calling the scrollingMsg() function again.
|
|||||||||||
|
42. |
<TAG tag attribute eventhandlername = "JavaScript instruction"> is the
general form of the statement for a(n) ______________________.
|
|||||||||||
|
43. |
Form
validation in JavaScript uses the ______________________ statement.
|
|||||||||||
|
44. |
Using
______________________ If...Else statements is one method to test multiple conditions.
|
|||||||||||
|
45. |
The
______________________ value, returned by the indexOf() method, indicates at what position to
concatenate the decimal values.
|
|||||||||||
|
46. |
If
the value of decipos is zero, then the input value is a(n) ______________________ .
|
|||||||||||
|
47. |
The
______________________ loop relies on a conditional statement using numeric values.
|
|||||||||||
|
48. |
When
the TITLEBAR attribute of the open() method is set to ______________________, the title bar is
removed.
|
|||||||||||
|
49. |
The
toolbar attribute of the open() method is written as, ______________________.
|
|||||||||||
|
50. |
The
______________________ attribute of the open(method) includes a status bar when set to the value of
yes.
|
|||||||||||
|
|
|
|
|
|