Click on the correct response for each question below.
 |
1 |  |  To cause a script to execute when the page is being loaded, we place it:
|
|  | A) | in the BODY section of the HTML document.
|
|  | B) | in the Executable section of the HTML document.
|
|  | C) | int the HEAD section of the HTML document.
|
|  | D) | anywhere; it will run automatically regardless of location.
|
|  | E) | in an external attached file
|
 |
 |
2 |  |  A script placed in the body section of the HTML document is often called a(n):
|
|  | A) | Executable script.
|
|  | B) | Stack script.
|
|  | C) | Default script.
|
|  | D) | Immediate script.
|
|  | E) | Internal Script
|
 |
 |
3 |  |  To declare multiple variables on the same line, simply use the Dim statement and:
|
|  | A) | Separate the variables with semicolons.
|
|  | B) | Separate the variables with colons.
|
|  | C) | Separate the variables with commas.
|
|  | D) | Separete the variables with & symbols
|
|  | E) | You can't declare multiple variables on a single line!
|
 |
 |
4 |  |  The Byte subtype is used to store:
|
|  | A) | Integers between -32,768 and 32,767.
|
|  | B) | Integer numbers between 0 and 15.
|
|  | C) | Integer numbers between 0 and 255.
|
|  | D) | Negative numbers.
|
|  | E) | Object's reference
|
 |
 |
5 |  |  Naming a variable with a single-letter, such as x, r, or e is a bad idea because:
|
|  | A) | Your code loses clarity, making it more difficult to read your code
|
|  | B) | It makes it difficult to tell what kind of information the variable contains due to the lack of a prefix such as lng or str.
|
|  | C) | VBScript will not accept a single letter as a variable name.
|
|  | D) | A and B
|
|  | E) | B and C.
|
 |
 |
6 |  |  The Dim intX(5) statement will allocate an array consisting of:
|
|  | A) | Four values, each Integer data type.
|
|  | B) | Five values, each Variant data type.
|
|  | C) | Six values, each Variant data type.
|
|  | D) | Many values, because the VBScript arrays are automatically set as dynamic arrays.
|
|  | E) | Six Integer values, each of them would be initialized to 0 automatically.
|
 |
 |
7 |  |  A good name for a sub procedure which displays a user's grade would be:
|
|  | A) | grade()
|
|  | B) | doGrading()
|
|  | C) | doGrading
|
|  | D) | DisplayGrade
|
|  | E) | DisplayGrade()
|
 |
 |
8 |  |  Case statement is used when:
|
|  | A) | There are only two alternative code segments that can be selected for execution.
|
|  | B) | There are exactly three alternative code segments that can be selected for execution.
|
|  | C) | The user inputted erroneous data.
|
|  | D) | The program needs to be sure the input is capitalized properly.
|
|  | E) | .None of the above
|
 |
 |
9 |  |  Which of the following is NOT a Looping statement in VBScript?
|
|  | A) | For...Next statement.
|
|  | B) | ForEach...Next statement.
|
|  | C) | Do...Loop.
|
|  | D) | While...Wend.
|
|  | E) | They're all looping statements!
|
 |
 |
10 |  |  The Window.open method returns:
|
|  | A) | A reference to the newly created window.
|
|  | B) | Nothing.
|
|  | C) | The number of windows, including the newly created one, that are on the screen.
|
|  | D) | A reference to the topmost window on the screen.
|
|  | E) | a reference to the form to be displayed in the new window.
|
 |