Chapter 4 Flashcards

1
Q

T/F Each time a program calls a procedure, the procedure is added to the top of the call stack, and then removed after it finishes executing

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

T/F For each error encountered, a browser’s console displays a line number and a description of the error

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

T/F A breakpoint is a designation added to a specific statement in a program that causes program execution to pause when it reaches that statement

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A(n) BLANK error occurs when the interpreter fails to recognize code

A

syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A(n) BLANK error occurs when the JavaScript interpreter encounters a problem while a program is executing

A

run-time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A(n) BLANK error is a flaw in a program’s design that prevents the program from running as you anticipate

A

logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When using console.log() method to trace bugs, it can be helpful to use a(n) BLANK

A

driver program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

call stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

Exception handling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

You enclose code that may contain an exception in a(n) BLANK statement

A

try

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

You use a(n) BLANK statement within a try block to specify an error message

A

throw

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

After you throw an error, you use a(n) BLANK to handle the error

A

catch() statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The rules of a programming language are known as its BLANK

A

syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A program’s BLANK is the order in which various parts of the program run or execute

A

logic

17
Q

The console.log() debugging method results in messages being BLANK

A

displayed in the browser console

18
Q

The window.alert() debugging method results in messages being BLANK

A

displayed in dialog boxes

19
Q

The debugging tools built into modern browsers are especially useful in tracking down BLANK

A

syntax errors

20
Q

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

A

break mode

21
Q

After you evaluate code for exceptions, you can use a(n) BLANK to perform cleanup or necessary tasks

A

finally statement

22
Q

The BLANK JavaScript statement works like a breakpoint

A

debugger

23
Q

The BLANK JavaScript statement requests that processors remove some features from the language and require more stringent syntax for other features

A

“use strict”;

24
Q

An infinite loop is an example of a(n) BLANK error

A

logic

25
Q

Writing values directly to the console is known as BLANK

A

logging

26
Q

BLANK is the examination of individual statements in an executing program

A

tracing

27
Q

You implement custom error handling using the BLANK event

A

error

28
Q

BLANK is the process of tracing and resolving errors in a program

A

debugging