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

COP 2822: Fall Term 2003 On-Line Quizzes

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 Five: Working With Windows

Tutorial 5 Quiz Masters:

Dr. Marcelle Bessman (mbessma@ju.edu) [Text Input]

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


Multiple Choice [One Answer Only]

Please Note that this test was prepared for the first edition of the text and it may have errors. Please note all errors in the: I have discovered that...Section below.

Question 1

The hierarchy of JavaScript objects is called the JavaScript object

a) tree
b) model
c) structure
d) world


Question 2

A browser window, or a frame within a browser window, is represented by a Window

a) class
b) method
c) object
d) entity


Question 3

Each element in an HTML document is represented by its own ______ in JavaScript.

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


Question 4

The brackets that follow some of the object names in The JavaScript object model indicate that these objects are

a) arrays
b) restricted
c) public
d) global


Question 5

When referring to a JavaScript object in colde, all of the object's _______ must be referred to as a series of properties separated by periods.

a) properties
b) classes
c) ancestors
d) subordinates


Question 6

The currently displayed browser window is always considered the _______ object in the JavaScript model.

a) original
b) top-level
c) base-level
d) public


Question 7

The _______ property is an alternate way of referring to the current Window object.

a) parent
b) base
c) origin
d) self


Question 8

When writing _______ code, it is a good idea to always include the Window object when referring to a browser window.

a) form definition
b) event-handling
c) frame definition
d) object definition


Question 9

A window object's status property can be used to obtain information

a) displayed in the browser's status bar.
b) about the currently loaded page.
c) about the status of a page load operation.
d) on the time the user has spent on viewing the page.


Question 10

An alternate way of writing the statement, self.alert("text string");, would be which of the following?

a) document.alert("text string");
b) self.document.alert("text string");
c) window.alert("text string");
d) window.self.alert("text string");


Question 11

The defaultStatus, location, parent, self, and top are all ______for the Windows object.

a) classes
b) methods
c) properties
d) functions


Question 12

The _______ Window object method removes the focus from a window.

a) hide()
b) blur()
c) move()
d) focus()


Question 13

JavaScript allows you to open a new browser window by means of the _______ method of the Window object.

a) new()
b) newWindow()
c) create()
d) open()


Question 14

Which of the following statements shows the correct syntax for opening a browser window?

a) window.open("URL",options,"name");
b) window.open("name","URL",options);
c) window.open(options,"name","URL");
d) window.open("URL","name",options);


Question 15

If the name specified in an open() method is the same as an already existing window, JavaScript will change the _______ to the existing window.

a) properties
b) origin
c) focus
d) none of the above


Question 16

The scrollbar, menubar, status, resizable, and toolbar displayed in a browser window are called _____ elements.

a) interface
b) GUI
c) cosmetic
d) add-on


Question 17

Which of the following are options that can be specified when opening a new window?

a) directories
b) top
c) resizable,
d) all of the above


Question 18

A Window object's _________ property cannot be used in JavaScript code, but can be used to specify a target window with a hypertext link.

a) size
b) parent
c) status
d) name


Question 19

Which of the following statements could be used to close a window with a variable name window?

a) close(window3);
b) window3.close();
c) window3=close();
d) window3_close();


Question 20

JavaScript's _______ method can be used to execute some code once a specified period of time has elapsed.

a) waitUntil()
b) checkTimer()
c) setTimeout()
d) timeExpired()


Question 21

A setTimeout method can be cancelled before the code executes by using the ______ method.

a) clearTimeout()
b) cancelTimeout()
c) skipTimeout()
d) nullTimeout()


Question 22

A method that is similar to the setTimeout method but will repeatedly execute the specified code is the _______ method.

a) setIteration()
b) setRepeat()
c) setCycle()
d) setInterval()


Question 23

JavaScript code can be created to open a Web page by using the _______ object.

a) NEWPAGE
b) GOTO
c) NEWOBJECT
d) LOCATION


Question 24

The ______ property of the Location object contains the reference to a URL's anchor.

a) hash
b) host
c) pathname
d) port


Question 25

The statement, location.reload(false); will

a) reload the current web page even it has not changed.
b) reload the home page if not already displayed.
c) reload the current page only if it has changed.
d) not allow the current Web page to be reloaded at all.


Question 26

The ______ method will overwrite the current Web page with a new Web page and replace the old URL in the history list with the new URL.

a) update()
b) reload()
c) replace()
d) refresh()


Question 27

The back(), forward(), and go() methods are all methods of the _______ object.

a) History
b) Location
c) View
d) Window


Question 28

Information about which Web browser is being used to view a page can be obtained from the _______ object.

a) History
b) Navigator
c) Browser
d) Viewer


Question 29

The statement, myPlatform=navigator.platform;, will return the ______ type to the variable myPlatform.

a) processor
b) browser
c) operating system
d) none of the above


Question 30

The Window object property that refers to the window that constructed the frames in an HTML document is the ______ property.

a) parent
b) top
c) base
d) origin




True/False Questions


Question 31

In the JavaScript object model, the Document object is a direct descendant of the Location object.

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



Question 32

It is not always necessary to include the Window object when listing an object's ancestors because the browser assumes you are referring to the currently displayed window.

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



Question 33

An alternate way of referring to the Window object is by using the parent property.

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



Question 34

When a new browser window is opened, a new Window object is created for the new window.

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



Question 35

To control a new window using JavaScript, the new window must be created and assigned to a variable.

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



Question 36

The setTimeout() method can be used to repeatedly execute some code after a specified amount of time has elapsed.

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



Question 37

The <BASE> tag allows a programmer to avoid repeating the TARGET attribute when multiple links are defined for the same frame.

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



Question 38

A SCROLLING attribute of yes will cause the scroll bars to be turned on when the contents of a frame extend.

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



Question 39

The href property of the Location object contains the full URL address of the object.

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



Question 40

A list of all documents that have been opened in a Web browser section is maintained by the History object.

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. Alternate names for the object model include the browser object mode, the client-side object model, and the Navigator object model.



Question 42. In the JavaScript object model, an HTML page displayed in a browser window is represented by a(n) object.



Question 43. When referring to a JavaScript object in code, all of its ancestors must be referred to as a series of separated by periods.



Question 44. The self property refers to the current object.



Question 45. After using the open() method to create a new window, the focus can be returned to the original browser window by coding the statement .



Question 46. The browser window which contains no height and width properties in the options string contains no elements.



Question 47. JavaScript can modify individual portions a a URL by accessing the properties of the object.



Question 48. It is possible to navigate directly to a previously visited Web page using the go() method of the object.



Question 49. The Web browser name, version, and language being used are all properties of the object.



Question 50. The Window object's property refers to the topmost window in an HTML document.






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:

window object p203    self property p206    history object p241    document object p204    location object p239

navigator object p243    JavaScript Object Model p203    browser object model p203    navigator object model p203    focus() method p207

alert() method p207    prompt() method    confirm() method    setTimeout() method p216    clearTimeout() method p217


setInterval() method p218    clearInterval() method p218    window.open() method    window.close() method    window options string

interface elements p211    frames[] object    target attribute    <base> tag    hash p240    top property p249





When you have completed this quiz click the submit button (Those users whose Browser supports JavaScript) to send answers to your instructor

(This may takes a few moments to submit)


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


Quiz Page was last modified by John Taylor: