5.01 and 5.02 Types of Error and Debugging

question

Occur when the programmer does not follow the rules of the programming language.
answer

Syntax Error
question

Prevent the program from starting
answer

Syntax Error
question

Also called Compilation Errors or Compiler Errors
answer

Syntax Error
question

Wavy line under them to alert the programmer.
answer

Syntax Error
question

Occur when the program compiles and executes, but the output is not what you wanted/expected.
answer

Logic Error
question

Could be caused by an incorrect formula.
answer

Logic Error
question

All possible inputs not handled
answer

Logic Error
question

A table of possible inputs and expected output.
answer

Desk Check
question

When you create a table of possible inputs and determine what the output should be.
answer

Desk Check
question

Check expected input Check unexpected input Check boundaries Check null input
answer

Desk Check
question

A description of the error is given. Troubleshooting tips are given.
answer

Runtime Error
question

The operation violates a rule of the computer.
answer

Runtime Error
question

The program tries to do an operation that is impossible to carry out.
answer

Runtime Error
question

Forgetting to initialize a variable
answer

Runtime Error
question

Divide by 0
answer

Runtime Error
question

Occurs while your program is running.
answer

Runtime Error
question

When your program tries to do an operation that is impossible to carry out.
answer

Runtime Error
question

The program goes into “Break” mode where you can debug it.
answer

Runtime Error
question

your program is all written- but it does not work
answer

Debugging
question

Fixing errors within your program.
answer

Programmer Debugging
question

Write program code in such a way as to allow for unexpected input from the program user.
answer

Program Debugging
question

tool used by a programmer to isolate a section of code
answer

Break Point
question

is often used with a IF statement or loop code.
answer

Break Point
question

red dot will appear in the grey bar and the text will be highlighted in red.
answer

Break Point
question

execute the rest of the program without stopping
answer

Green arrow
question

stop here
answer

Pause
question

stop the program and return to the IDE
answer

Blue Square
question

move to the next line of code in the programming block
answer

Step Into
question

skip the current programming block
answer

Step Over
question

exit the current programming block
answer

Step Out
question

This works only with the debugger is in break mode (at a breakpoint).
answer

Watch Window
question

allows the coder to track the value of variables as the program is being executed.
answer

Watch Window
question

This is useful way to catch logic errors that might otherwise be missed.
answer

Watch Window
question

an automatic Watch Window
answer

Locals Watch Window
question

a function to check for incorrect user input.
answer

Try…Catch
question

A coding structure used to ‘handle’ exceptions.
answer

Try…Catch
question

a function used with an IF statement
answer

IsNumeric
question

It returns True if it finds a number, otherwise False
answer

IsNumeric

Get instant access to
all materials

Become a Member