Exam 4: Debugging and Error Handling

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

____________________ is the examination of individual statements in an executing program.

Free
(Short Answer)
4.9/5
(42)
Correct Answer:
Verified

Tracing

____ allows programs to handle errors as they occur in the execution of a program.

Free
(Multiple Choice)
4.7/5
(31)
Correct Answer:
Verified

D

Match each statement below with correct item:
A statement in the code at which program execution enters break mode
bug
The first line of defense in locating bugs in JavaScript programs
bulletproofing
Caused by incorrect use of JavaScript code or references to objects, methods, and variables that do not exist
window.alert()
Correct Answer:
Verified
Premises:
Responses:
A statement in the code at which program execution enters break mode
bug
The first line of defense in locating bugs in JavaScript programs
bulletproofing
Caused by incorrect use of JavaScript code or references to objects, methods, and variables that do not exist
window.alert()
Displays a value in a dialog box
commenting out
Displays all local variables within the currently executing function, regardless of whether they have been initialized
watch list
Writing code that anticipates and handles potential problems
error messages
A JavaScript program that contains only the code you are testing
variables list
A list of expressions whose values are displayed and updated throughout the execution of a program
breakpoint
Any error in a program that causes it to function incorrectly
syntax errors
Identifying lines you think maybe causing problems and transforming them into comments
driver program
Free
(Matching)
5.0/5
(43)
Correct Answer:
Verified

Which of the following JavaScript statements works like a breakpoint?

(Multiple Choice)
4.9/5
(38)

The ____ is the ordered list maintained by a JavaScript processor containing all the procedures that have been called but have not yet finished processing.

(Multiple Choice)
4.8/5
(36)

____ is the temporary suspension of program execution so you can monitor values and trace program execution.

(Multiple Choice)
4.9/5
(37)

Briefly explain how to use comments to locate bugs with JavaScript.

(Essay)
4.8/5
(32)

You log values to the console using the window.alert()method.

(True/False)
4.7/5
(45)

Name two tools you can use to analyze your HTML code for errors, and describe how to use them for this task.

(Essay)
4.7/5
(34)

You enclose code that may contain an exception in a ____ statement.

(Multiple Choice)
5.0/5
(37)

A ____ error occurs when the JavaScript interpreter encounters a problem while a program is executing.

(Multiple Choice)
4.8/5
(40)

In ____________________ mode, some features are removed from the language, while other features require more stringent syntax.

(Short Answer)
4.9/5
(42)

Explain how strict mode can be useful in debugging.

(Essay)
4.8/5
(44)

What is the difference between a variables list and a watch list in browser debugging tools?

(Essay)
4.8/5
(34)

Explain how access to the call stack is useful in debugging.

(Essay)
4.7/5
(45)

Writing values directly to the console is known as ____.

(Multiple Choice)
4.7/5
(39)

You use a ____ statement within a try block to specify an error message .

(Multiple Choice)
4.8/5
(32)

A program's ____  is the order in which various parts of the program run, or execute.

(Multiple Choice)
4.8/5
(30)

A ____ error occurs when the interpreter fails to recognize code.

(Multiple Choice)
4.8/5
(38)

Syntax refers to the order in which various parts of a program run, or execute.

(True/False)
4.8/5
(34)
Showing 1 - 20 of 41
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)