Visual Basic Chapter 7
Pauses execution of a program at a specific line in the code
Breakpoint
You can use a ______ to pause execution of a specific line in the code a. comment b. breakpoint c. function header d. wait
Breakpoint
An error in a programmer;s code is referred to as a ________ a. feature b. function c. mental exercise d. bug
Bug
An error in the program's code
Bug
Area where you type your code
Code Editor
The _______ window helps you locate and fix the syntax errors in your code; however, it cannot locate any errors in your code
Code editor
The process of locating and correcting any bugs in a program is called_______ a. exterminating b. debugging c. compiling d. linking
Debugging
The letter D after a number indicates that the number's data type is
Decimal
While stepping through a program in the debugger, the ______ statements are skipped over because they are not considered executable in the debugger a. ff b. next c. for d. dim
Dim
The______ window provides a description of of each error and the location of each error in the code a. code b. error List c. project d. solution
Error List
Window that displays a list of error messages
Error List Window
Provides a description of each syntax error and the location of each syntax error in the code
Error Message
T/f: Logic errors are the easiest to find
False
T/f: One advantage of variables and named constants is that their use requires fewer lines of code
False
T/f: Stepping through code one line at a time is the only way of searching for logic errors
False
T/f: The error list window displays a red rectangle next to each error in the code
False
T/f: Unlike logic errors, syntax errors are much more difficult to find because they do not trigger an error message from the code editor
False
T/f: When a text box control is empty, or when it contains a character that cannot be converted to a number, the TryParse method will store a blank string
False
T/f: You can only use variable memory locations to control the data type of numbers used in calculations
False
In the code editor window, the ______ alert you that lines contain a syntax error a. jagged red lines b. thin blue boxes c. thick red boxes d. jagged blue lines
Jagged Red Lines
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 b. function c. computer d. logic
Logic
Entering instructions in the wrong order in a program can cause a ______ error a. logic b. sequential c. function d. compostion
Logic
You use a(n) _______ to pause program execution at a specific line in the code
breakpoint
A(n) ______ is an error in a program's code
bug
While stepping through the code, the ________ highlights the statement that will be executed next
debugger
The process of locating and fixing error in a program is called ________
debugging
the process of locating and correcting any bugs in a program
debugging
An .0 at the end of a number indicates that the number's data type is
double
A(n) _______ error is an error that can occur for a variety of reasons, such as forgetting to enter an instruction, entering the instructions in the wrong order, or entering a calculation statement that is incorrect mathematically
logic
an error that can occur for a variety of reasons, such as forgetting to enter an instruction
logic error
A(n) _______ error is an error that occurs while the application is running
run time
A ______ error occurs when you break one of the language's rules
syntax
T/f: A run time error is an error that occurs while an application is running
True
T/f: As the amount of code increases, so does the likelihood for errors
True
T/f: Both constants and variable memory locations make your code more self-documenting and easier to understand
True
T/f: Many run time errors can be avoided using the selection structure
True
T/f: Program bugs typically are caused by either syntax errors or logic errors
True
T/f: Some logic errors occur as a result of calculation statements that are correct syntactically, but incorrect mathematically
True
T/f: 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 in the procedure
True
T/f: You can use variables to store the value of processing items, which do not appear in the user interface
True
Most syntax errors are the result of ______ errors that occur when entering instructions a. typing b. automatic c. computer d. system
Typing
In the Code Editor window, _______indicates some suggestions for fixing errors a. red jagged lines b. blue jagged lines c. red rectangles d. blue rectangles
Red Rectangles
Program bugs are typically categorized as syntax errors, logic errors, or ________ errors a. debug b. run time c. compiler d. program
Run Time
An error that occurs while the application is running
Run Time Error
Tells the computer to execute the highlighted instruction in debug mode so you can step through the code in the Code Editor window
Step Into
The set of rules you must follow when using a programming language is called the language's ________ a. syntax b. rules c. order d. object
Syntax
__________ errors are listed in the error list window
Syntax
The error that occurs when a statement breaks one of the programming language's rules
Syntax Error
The statement constant intNUM_STUDENTS As Integer is an example of a ______ a. correct statement b. logic error c. run time error d. syntax error
Syntax Error
Which type of error will trigger an error message to be listed in the Error List window? a. logic error b. run time error c. syntax error d. none of the above
Syntax Error
