Your browser does not support JavaScript. You will need to view non-JavaScript portions of this page.

CGS 2820: Fall Term 2001
On-Line Quizzes

Test Timer

In order to forward you your test results please enter your name & email address below:

Enter First Name followed by a space then your Last Name here



Enter E-mail Address here:



Tutorial 9: Working With JavaScript Objects and Events

Tutorial 9 Quiz Masters:

(mkbair@hotmail.com) [Text Input]

John Taylor (jtaylor@hcc.cc.fl.us) [Consultant]


Multiple Choice [One Answer Only]


Question 1

Client-side validation is possible by using JavaScript that is stored ______.


a) on the server
b) on the client
c) Both A and B
d) None of the above

Question 2

An advantage of client-side validation of forms is that _____ .

a) users receive immediate feedback as they enter data
b) the amount of network traffic is reduced
c) Both A and B
d) None of the above

Question 3

JavaScript is a(n) _____ language, which means that the language is based on manipulating objects by either modifying their properties or applying methods to them.

a) object-method
b) object-based
c) Web
d) None of the above

Question 4

When describing a car using an object-based language, its model number is a(n) _______.

a)object
b)method
c)property
d)None of the above

Question 5

When describing a car using an object-based language, the car is a(n) _____ ..

a)object
b)method
c)property
d)None of the above

Question 6

When describing a car using an object-based language, starting the engine is a(n) ______.

a) object
b) method
c) property
d) None of the above

Question 7

The JavaScript you refer to an object using its _______.

a) object code
b) properties
c) methods
d) object name

Question 8

When you want to use JavaScript to manipulate the browser window, the browser window's object name is

a) frame
b) document
c) window
d) browser_window

Question 9

When you want to use JavaScript to manipulate the currently displayed Web page, the Web page's JavaScript object name is

a) frame
b) document
c) window
d) browser_window

Question 10

You can work with properties in JavaScript by

a) changing the value of a property
b) storing the values property in a variable
c) testing whether the property equals some specific value in an If..Then expression.
d) All of the above

Question 11

The syntax for changing the value of a property is _____.

a) object.property = expression
b) property.object = expression
c) change_object.property = expression
d) expression = object.property

Question 12

In the expression document.bgcolor="red", document is a(n) _____.

a) object
b) method
c) expression
d) property

Question 13

The expression document.bgcolor = "red" will

a) change the Web browser's foregroound color to red.
b) change the Web browser's background color to red
c) display the text"red" on the Web page
d) None of the above

Question 14

Alert(message), close(), and reset() are JavaScript

a) objects
b) methods
c) properties
d) commands

Question 15

Some methods contain ______, which are values that control how the method is applied to the object.

a) properties
b) other methods
c) commands
d) parameters

Question 16

The syntax for applying a method to an object is _____.

a) object.method;
b) object.method()
c) object.method();
d) property.method();

Question 17

In the example form.submit(), submit() is a(n) _____.

a) object
b) method
c) property
d) command

Question 18

A(n) _______ is a specific action that triggers the browser to run a block of JavaScript commands.

a) method
b) property
c) parameter
d) event

Question 19

_______ is a JavaScript event.

a) Abort
b) Focus
c) Change
d) All of the above.

Question 20

Code added to an HTML tag that runs whenever a particular event occurs is a(n)______.

a) event
b) method
c) event handler
d) None of the above.

Question 21

The names onClick, onLoad, and onFocus are JavaScript _______.

a) events
b) methods
c) event handlers
d) None of the above

Question 22

Use the _____ method to make an input box active when a form opens.

a) focus()
b) blur()
c) select()
d) type()

Question 23

Use the _____ function to change a text value into a numeric value.

a) focus()
b) eval()
c) change()
d) type()

Question 24

The result of the document.write("5" + "3") is _____.

a) 53
b) 5 + 3
c) 8
d) "53"

Question 25

The _____ keyword is reserved by JavaScript to refer to the currently selected object.

a) this
b) object
c) this.object
d) None of the above.

Question 26

If you want to inform users of invalid responses using a dialop box use the ______ method.

a) prompt()
b) confirm()
c) alert()
d) None of the above

Question 27

If you want to inform form users of invalid responses using a dialog box that contains an OK button and a Cancel button, use the _____ method.

a) prompt()
b) confirm()
c) alert()
d) None of the above

Question 28

All of the following are properties of check boxes except ______.

a) checked
b) clicked
c) defaultChecked
d) name

Question 29

To reload a page use the _____.

a) reload() method
b) location object
c) onClick event
d) reload object

Question 30

You must place the onLoad event handler in the ____ tag of the HTML file.

a) < HTML>
b) < BODY>
c) < SCRIPT>
d) None of the above



True/False Questions


Question 31

Form validation is the process of checking the form entries to eliminate possible errors.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 32

In server-side validation, the server checks the user's input and then returns the correct input to the user.


a) The statement above is TRUE.
b) The statement above is FALSE.


Question 33

In client-side validation the form is checked as the user enters information, and immediate feedback is provided if the user makes a mistake.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 34

Client-side validation is performed by a JavaScript.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 35

JavaScript is an object-based language.

a) The statement above is TRUE
b) The statement above is FALSE.


Question 36

The topmost object in the JavaScript hierarchy is the window.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 37

The syntax for changing the value of a property is object.expression = property.

b) The statement above is TRUE.
a) The statement above is FALSE.


Question 38

To assign an object property value to a variable, use the syntax variable = object.property.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 39

You can modify the appCodeName property.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 40

When you use JavaScript to emulate an event, you are causing the Web page to perform an action for the user.

a) The statement above is TRUE.
b) The statement above is FALSE.



Fill-in-the-Blank


Fill in the Blank with the word(s) that best fits the definition:

(hint: use vocabulary from the checkboxes below)

Question 41. The process of ensuring that a value entered into a form is valid is called validation.


Question 42. In validation, the user submits the form to the server, where it is checked and returned to the user if mistakes are encountered.


Question 43. In validation, the form is checked as the user enters information, and immediate feedback is provided.


Question 44. The property of the navigator object identifies the version number of your Web browser.


Question 45. If...ELSE is an example of a statement that changes how something behaves based on the value of an object property.


Question 46. The method that displays a dialog box with a message in the window is


Question 47. The method that goes to the next page is


Question 48. The event that occurs when the user cancels the loading of an image is


Question 49. The event that occurs when the user leaves the form field is


Question 50. If the user clicks the OK button in a confirm dialog box, the method returns a value of





I have


Please add a comment below



The 'Muddy Water' Issues that I need help on are as follows:





I need class review on the following vocabulary words from this chapter:

reset() alert() If-Else forward() writeln()

client-side server-side click appVersion conditional

form validation object.property



When you have completed this quiz, press the ALL DONE-CHECK TEST button below to check the test! Then you may go back and change the incorrect answers before you submit the test. You may check the answers as many times as you need until you achieve a perfect grade. Sometimes the pop-up box does not appear when you click on the button after checking the test the first time. If this happens, minimize the test and the answer box will be behind the browser. close the box and maximize the test to continue checking the test and finally submitting it.



When you have finished checking the test, press the SUBMIT button to send answers to your instructor


Back to CGS 2820 Course Menu Page






Caution: Click reset to clear all answers

Users whose browser does not support JavaScript, when you have completed this quiz click the submit button below to send answers to your instructor




index index index map map map sdn nude 30 bbs sdn nude 30 bbs sdn nude 30 bbs nude fat girl nude fat girl nude fat girl ti nude ti nude ti nude nude jap nude jap nude jap godesses nude godesses nude godesses nude nude 11 16 nude 11 16 nude 11 16 nude b and b nude b and b nude b and b nude sex art nude sex art nude sex art nude delishis nude delishis nude delishis nude rat rod girls nude rat rod girls nude rat rod girls nude car babe nude car babe nude car babe drunk and nude drunk and nude drunk and nude nude pashtun nude pashtun nude pashtun wow nude mob wow nude mob wow nude mob nude in chaps nude in chaps nude in chaps