Deck 7: Whats Wrong With It Syntax and Logic Errors

Full screen (f)
exit full mode
Question
Program bugs typically are caused by either syntax errors or logic errors.
Use Space or
up arrow
down arrow
to flip the card.
Question
In the Error List window, ____ indicate that the Code Editor has some suggestions for fixing the errors.

A) red jagged lines
C) red rectangles
B) blue jagged lines
D) blue triangles
Question
As the amount of code increases, so does the likelihood for errors.
Question
One advantage of variables and named constants is that their use requires fewer lines of code.
Question
The set of rules you must follow when using a programming language is called the language's ____.

A) syntax
C) order
B) rules
D) object
Question
Most syntax errors are a result of ____ errors that occur when entering instructions.

A) typing
C) computer
B) automatic
D) system
Question
Both constant and variable memory locations make your code more self-documenting and easier to understand.
Question
An error in a program's code is referred to as a ____.

A) feature
C) mental exercise
B) function
D) bug
Question
Logic errors are the easiest to find.
Question
A ____ error occurs when you break one of the language's rules.

A) compiler
C) syntax
B) linking
D) logic
Question
Some logic errors occur as a result of calculation statements that are correct syntactically, but incorrect mathematically.
Question
The ____ window provides a description of each error and the location of each error in the code.

A) Code
C) Project
B) Error List
D) Solution
Question
The process of locating and correcting any bugs in a program is called ____.

A) exterminating
C) compiling
B) debugging
D) linking
Question
Stepping through code one line at a time is the only way to search for logic errors.
Question
You can only use variable memory locations to control the data type of numbers used in calculations.
Question
In the Code Editor window, the ____ alert you that three lines of code contain a syntax error.

A) jagged red lines
C) thick red boxes
B) thin blue boxes
D) jagged blue lines
Question
The Error List window displays a red rectangle next to each error in the code.
Question
The Code Editor detects most syntax errors as you enter the instructions.
Question
You can use variables to store the values of processing items, which do not appear in a user interface.
Question
When debugging, while the execution of a procedure's code is paused, you can view the contents of controls and variables that appear in the highlighted statement, as well as in the statements above it in the procedure.
Question
A ____ error can occur for a variety of reasons, such as forgetting to enter an instruction or entering the instructions in the wrong order.

A) syntax
C) computer
B) function
D) logic
Question
A ____ error can occur in a program from entering instructions in the wrong order.

A) logic
C) function
B) sequential
D) composition
Question
When debugging, to execute the highlighted instruction, you can use either the Debug menu's Step Into option or the ____ key on your keyboard.

A) F2
C) F8
B) F6
D) F12
Question
While stepping through a program in the debugger, the ____ statements are skipped over because they are not considered executable by the debugger.

A) If
C) For
B) Next
D) Dim
Question
You can use a ____ to pause execution at a specific line in the code.

A) comment
C) function header
B) breakpoint
D) wait
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 7: Whats Wrong With It Syntax and Logic Errors
1
Program bugs typically are caused by either syntax errors or logic errors.
True
2
In the Error List window, ____ indicate that the Code Editor has some suggestions for fixing the errors.

A) red jagged lines
C) red rectangles
B) blue jagged lines
D) blue triangles
C
3
As the amount of code increases, so does the likelihood for errors.
True
4
One advantage of variables and named constants is that their use requires fewer lines of code.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
The set of rules you must follow when using a programming language is called the language's ____.

A) syntax
C) order
B) rules
D) object
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
Most syntax errors are a result of ____ errors that occur when entering instructions.

A) typing
C) computer
B) automatic
D) system
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Both constant and variable memory locations make your code more self-documenting and easier to understand.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
An error in a program's code is referred to as a ____.

A) feature
C) mental exercise
B) function
D) bug
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Logic errors are the easiest to find.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
A ____ error occurs when you break one of the language's rules.

A) compiler
C) syntax
B) linking
D) logic
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
Some logic errors occur as a result of calculation statements that are correct syntactically, but incorrect mathematically.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
The ____ window provides a description of each error and the location of each error in the code.

A) Code
C) Project
B) Error List
D) Solution
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
The process of locating and correcting any bugs in a program is called ____.

A) exterminating
C) compiling
B) debugging
D) linking
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Stepping through code one line at a time is the only way to search for logic errors.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
You can only use variable memory locations to control the data type of numbers used in calculations.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
In the Code Editor window, the ____ alert you that three lines of code contain a syntax error.

A) jagged red lines
C) thick red boxes
B) thin blue boxes
D) jagged blue lines
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
The Error List window displays a red rectangle next to each error in the code.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
The Code Editor detects most syntax errors as you enter the instructions.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
You can use variables to store the values of processing items, which do not appear in a user interface.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
When debugging, while the execution of a procedure's code is paused, you can view the contents of controls and variables that appear in the highlighted statement, as well as in the statements above it in the procedure.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
A ____ error can occur for a variety of reasons, such as forgetting to enter an instruction or entering the instructions in the wrong order.

A) syntax
C) computer
B) function
D) logic
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
A ____ error can occur in a program from entering instructions in the wrong order.

A) logic
C) function
B) sequential
D) composition
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
When debugging, to execute the highlighted instruction, you can use either the Debug menu's Step Into option or the ____ key on your keyboard.

A) F2
C) F8
B) F6
D) F12
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
While stepping through a program in the debugger, the ____ statements are skipped over because they are not considered executable by the debugger.

A) If
C) For
B) Next
D) Dim
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
You can use a ____ to pause execution at a specific line in the code.

A) comment
C) function header
B) breakpoint
D) wait
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.