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

COP 2822: 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: Debugging JavaScript

Tutorial 9 Quiz Masters:

Sandi Showalter(sandals30@yahoo.com) [Text Input]

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


Multiple Choice [One Answer Only]


Question 1

What type of error occurs when you enter JavaScript program statements that the interpreter does not recognize?

a) compile errors
b) logic errors
c) run-time errors
d) syntax errors


Question 2

Errors in JavaScript program are not discovered until a program is run because JavaScript is

a) an interpreted language
b) an interactive language
c) a compiled language
d) a stateless language


Question 3

An infinite loop is one example of a(n) ______________ error.

a) run-time
b) logic
c) syntax
d) functional


Question 4

What must you type into the location box of Netscape Navigator 4.0 or higher to see JavaScript error messages if they do not appear automatically?

a) display:
b) viewMessage:
c) javascript:
d) debug:


Question 5

The Internet Explorer Script Error dialog box gives you the option to

a) restart the program from the beginning
b) disable script processing for the current page
c) modify the value for the variable in error
d) step over the statement in error


Question 6

Which method can be inserted at various points in a JavaScript program to display the contents of variables, arrays or values returned from functions?

a) debug()
b) trace()
c) step()
d) alert()


Question 7

Debugging information can be written from a program to the status bar using the status property of which object?

a) Location
b) Window
c) Document
d) Browser


Question 8

Although multiple alert() methods can be included in a JavaScript program to assist in debugging the code, there is a minor drawback, which is:

a) a maximum of ten alert() call may be used
b) each alert() call must display the same variable or value
c) every dialog box must be closed or responded to before the program can continue
d) none of the above


Question 9

Which of the following statements can be used to open a separate window to display debugging information for a JavaScript program?

a) newWindow=window.open("",""," height=450, width=450);
b) newWindow=open.window("",""," height=450, width=450);
c) newWindow=window:open("",""," height=450, width=450);
d) newWindow=open:window("",""," height=450, width=450);


Question 10

Another method of debugging a JavaScript program is to

a) run the Netscape Navigator code parser to locate errors
b) run the Debug Wizard in Internet Explorer
c) comment out lines that you think may be in error and then run the program
d) all of the above


Question 11

Frequently, a problem that seems to be in a JavaScript program may actually turn out to be a problem with

a) the Web browser
b) the JavaScript compiler
c) the Web sever running the program
d) the HTML tags


Question 12

What value will be displayed by an alert statement if the value or variable it is to display is never initialized to a value?

a) nil
b) null
c) undefined
d) 0 (zero)


Question 13

Which of the following statements shows the correct syntax for a JavaScript URL?

a) javascript: URL=statement(s)
b) javascript.statement(s)
c) javascript:statement(s)
d) javascript.URL:statement(s)


Question 14

After making changes to a JavaScript program and saving the changes , you can usually load the revised version by clicking which Navigator browser button?

a) Reopen
b) Load
c) Reload
d) Recycle


Question 15

To determine if the correct values are being assigned to the properties of an object, you can use the ___________ loop statement to display all the property values for the object.

a) for...prop
b) for...property
c) for...in
d) for...object


Question 16

`Which of the following program statements shows the correct syntax for setting a watch point?

a) object.watch("property", function_name, count_value);
b) object.watch("property", count_value);
c) object.watch("property", function_name);
d) object.watch(property="property_name", function=funtion_name);


Question 17

What method is used to cancel a previously declared watch point?

a) stopwatch()
b) nowatch()
c) removewatch()
d) unwatch()


Question 18

When you have a document you want to debug, which JavaScript Debugger window should you open the document in?

a) The applet window
b) The applet stub window
c) The start page
d) The watch window


Question 19

To start Netscape JavaScript Debugger, which file must be opened?

a) Jsdebugger.html
b) Jsdebugger.exe
c) Jsdebugger.scr
d) none of the above


Question 20

When an applet being debugged first loads in the JavaScript Debugger, the Debugger window will contain a Call Stack window and a(n)_________ window.

a) Watch point
b) Breakpoint
c) Object
d) Console


Question 21

Every HTML document opened in JavaScript Debugger has its own

a) stub window
b) Source View window
c) Page Object
d) trace file


Question 22

Which command in the JavaScript Debugger allows you to skip the function calls?

a) Step Over
b) Bypass
c) Step Around
d) Skip Over


Question 23

What command on the JavaScript Debugger's Control menu allows you to stop execution of the current function and continue to execute the rest of the program?

a) Step Out
b) Abort
c) Step Over
d) Jump


Question 24

A breakpoint can be removed by placing the insertion point anywhere in the line containing the breakpoint and then clicking what option on the Control menu?

a) Remove Breakpoint
b) Clear Breakpoint
c) Cut
d) Delete Breakpoint


Question 25

What JavaScript Debugger window is used for monitoring specific variables and expressions that you enter?

a) Stub
b) Applet
c) Watches
d) Display


Question 26

Which area of the JavaScript Debugger refers to the order in which functions or methods execute in a program?

a) Order of Precedence
b) the Heap
c) Procedure Stack
d) Call Stack


Question 27

In addition to JavaScript, the Microsoft Script Debugger can also debug which of the following?

a) Visual Basic Script
b) Java Beans
c) Active X components
d) all of the above


Question 28

Which command in Microsoft Script Debugger is the equivalent of the Set Interrupt command in JavaScript Debugger?

a) Set Breakpoint
b) Break When
c) Break at Next statement
d) Insert Breakpoint


Question 29

If the Call Stack and Command windows do not appear when the Script Debugger starts, they can be opened from which menu?

a) Edit
b) Debug
c) View
d) Window


Question 30

In which Script Debugger window can the values Object properties be changed?

a) Call Stack
b) Watches
c) Properties
d) Command




True/False Questions


Question 31

In a JavaScript Debugger, a breakpoint can be removed by clicking on the red circles in the left margin of the Source View window.

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



Question 32

An example of syntax error would be if you create a program that should multiply two numbers, but instead actually divides them.

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



Question 33

The line number that displays in an error dialog box in both Navigator and Explorer is always the line that contains the error.

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



Question 34

Another method of displaying programinformation is to use the write() and writeIn() methods to display data in a separate window.

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



Question 35

The cause of an error in one program statement could be caused by an error in some proceeding statement.

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



Question 36

JavaScript URL's can be used for testing JavaScript statements without an HTML document or JavaScript source.

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



Question 37

a for...prop loop command can be used to display all the values for all the properties in an object.

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



Question 38

When downloading the Netscape JavaScript Debugger, you will be asked to grant privileges, and you will not be able to use the debugger if you do not grant privileges.

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



Question 39

Setting multiple breakpoints provides a convenient way to pause a program at critical points to examine variables and values.

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



Question 40

Each time a program calls a procedure, the procedure is added to the bottom of the call stack.

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. Omitting a closing parenthesis for a method call statement is one example of a(n) error.



Question 42. Errors that are discovered during the interpretation and execution of a program are called errors.



Question 43. Debugging information can be written to the browser's status bar using the property of the Window object.



Question 44. A variable being displayed by an alert() method dialog box will display a value of if the variable was not initialized before being displayed.



Question 45. To create a JavaScript URL, enter the word javascript, followed by a(n) , followed by the JavaScript statement.



Question 46. A JavaScript URL can be entered into Netscape Navigator's box to test JavaScript statements without an HTML document or JavaScript source file.



Question 47. The function called by a watch() method needs to include three in the function header to receive the passed argument.



Question 48. Entering JavaScript Debugger mode temporarily suspends program execution allowing you to view and change variable values.



Question 49. When a program in the JavaScript Debugger is suspended, you can instruct the debugger to continue by selecting the command from the Control menu.



Question 50. You can pause program execution at key points within a program by setting multiple at the places you want the program to stop.






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:

syntax errors run-time errors logical errors exception handling debugging

infinite loop JavaScript interpreter tracing error messages watch point

watch() method unwatch() method break mode source view Step into command


Step over command breakpoints tracing variables call stack script debugger





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:
index index index map map map hentai suck dick hentai suck dick hentai suck dick hentai hard nipples hentai hard nipples hentai hard nipples seattle hentai seattle hentai seattle hentai hentai blonde doctor hentai blonde doctor hentai blonde doctor hentai fighter hentai fighter hentai fighter sumari champloo hentai sumari champloo hentai sumari champloo hentai toon anime hentai cartoon porn comics toon anime hentai cartoon porn comics toon anime hentai cartoon porn comics hentai chatrooms hentai chatrooms hentai chatrooms mo hentai mo hentai mo hentai gabumon hentai gabumon hentai gabumon hentai hentai chickens hentai chickens hentai chickens worldwide hentai worldwide hentai worldwide hentai hentai straight shotacon hentai straight shotacon hentai straight shotacon adult comics sex comics hentai comics adult comics sex comics hentai comics adult comics sex comics hentai comics hentai collection yahoo hentai collection yahoo hentai collection yahoo hentai museum hentai museum hentai museum hentai busty blonde doctor hentai busty blonde doctor hentai busty blonde doctor horny bunnies hentai horny bunnies hentai horny bunnies hentai hentai lip hentai lip hentai lip hentai prince hentai prince hentai prince hentai anime hard hentai anime hard hentai anime hard hentai sex adventure hentai sex adventure hentai sex adventure possible disney hentai possible disney hentai possible disney hentai hentai swimmer hentai swimmer hentai swimmer hentai streaming trailer hentai streaming trailer hentai streaming trailer hentai licking nipples hentai licking nipples hentai licking nipples ball de dragon hentai z ball de dragon hentai z ball de dragon hentai z stich hentai foundry stich hentai foundry stich hentai foundry bra hentai bra hentai bra hentai 3d hentai babes 3d hentai babes 3d hentai babes venus hentai venus hentai venus hentai big tit hentai softcore big tit hentai softcore big tit hentai softcore hentai neo hentai neo hentai neo hentai teentitans