Web Dev Exam 2
Terms in this set (75)
A program's ____ is the order in which various parts of the program run, or execute
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 ____ error occurs when the interpreter fails to recognize code.
The window.alert() debugging method results in messages ____.
Displayed in dialog boxes
The rules of a programming language are known as its ____
A ____ error is a flaw in a program's design that prevents the program from running as you anticipate.
____ is the temporary suspension of program execution so you can monitor values and trace program execution.
The console.log() debugging method results in messages ____.
Displayed in the browsers console
____ is the process of tracing and resolving errors in a program.
You log values to the console using the window.alert() method.
You enclose code that may contain an exception in a ____ statement
When using the console.log() method to trace bugs, it can be helpful to use a ____ program.
____ allows programs to handle errors as they occur in the execution of a program.
After you evaluate code for exceptions, you can use a ____ statement to perform cleanup or necessary tasks.
Syntax refers to the order in which various parts of a program run, or execute.
After you throw an error, you use a ____ statement to handle the error.
The debugging tools built into modern browsers are especially useful in tracking down ____.
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.
The ____ is a single statement that declares a variable and specifies array values as its content.
One of the simplest types of loop statements is the ____ statement, which repeats a statement or series of statements as long as a given conditional expression evaluates to a truthy value.
The ____ label contains statements that execute when the value returned by the switch statement expression does not match a case label.
Unlike the while statement, the statements in a ____ statement always execute once, before a conditional expression is evaluated.
To end a switch statement once it performs its required task, include a(n) ____ statement at the end of the statements associated with each case label.
Which method returns a collection of references to all instances of a certain element in an HTML document?
A(n) ____ label in a switch statement represents a specific value and is followed by one or more statements that are executed if the value of the label matches the value of the switch statement's expression.
The ____ statement is used to repeat a statement or series of statements as long as a given conditional expression evaluates to a truthy value.
A single statement that declares a variable and specifies array values as its content is called an array ____.
Which of the following references the second element in the newsSections array?
You access an array element's value just as you access the value of any other variable, except that you include the element index in brackets.
Each repetition of a looping statement is called a(n) ____.
You use a(n) ____ when you want to store a group or a list of related information in a single, easily managed location.
The conditional expression in the while statement is enclosed within ____ following the keyword while.
A case label consists of the keyword case, followed by a literal value or variable name, followed by a ____.
colon ( : )
A set of statements contained within a set of braces is called the ____.
The ____ statement is used to execute specific programming code if the evaluation of a conditional expression returns a truthy value.
You can think of an array as a collection of variables contained within a single variable.
A ____ statement restarts a loop with a new iteration
A(n) ____ operator requires an operand before and after the operator.
A comparison operator is used to compare two operands and determine if one numeric value is greater than another.
A(n) ____ statement is a statement that returns a value to the statement that called the function.
Which of the following is a logical operator?
The variables or values that you place in the parentheses of a function call statement are called ____.
The AND operator is ____.
Placing a parameter name within the parentheses of a function definition is the equivalent of declaring a new ____.
A(n) ____ is a variable that is used within a function.
Data types that can be assigned only a single value are called ____ types.
Programming languages that require you to declare the data types of variables are called ____ typed programming languages.
Function statements are contained within the function ____.
A ____ variable is one that is declared outside a function and is available to all parts of your program.
Sending arguments to the parameters of a called function is called ____ arguments.
Parentheses are used with expressions to change the associativity with which individual operations in an expression are evaluated.
Which of the following is a falsy value?
A(n) ____ type is the specific category of information that a variable contains
A literal string can be assigned a zero-length string value called a(n) ____ string.
A(n) ____ tells the compiler or interpreter that the character that follows it has a special purpose
Symbols such as + and * used in expressions to manipulate operands are known as ____.
Which method do you use to reference an element on a web page in a script?
A(n) ____ comment occupies only a single line or part of a line.
A(n) ____ comment hides multiple lines of code.
____ can turn static documents into applications such as games or calculators.
Which method displays a dialog box with an OK button?
Which keyword do you use to create a variable?
____ are lines of code that are not processed by browsers, which you use to add notes about your code.
You can place script elements in either the document head or in the document body.
____ refers to programming using a scripting language that is executed from a web server.
YOU MIGHT ALSO LIKE...
IT 207 Quiz 2 Redo - Functions & Controls v2
THIS SET IS OFTEN IN FOLDERS WITH...
Essential Web Development Concepts
ECS Introduction to Web Design Vocabulary, HTML Tags, Attributes & Definitions Test
Frontend Technical Interview Questions
Windows CMD Command Lines