Professional Documents
Culture Documents
11/03/15
1st Period
Computer Programming 1
Test
1). Syntax error? A character or string incorrectly placed in a command or instruction that
causes a failure in execution. Other names for syntax error are: Run time error and Logic error.
2). How do know you have a syntax error when looking at your code? When the code is in red,
and it do not work when trying to run the application.
3). Logic error? Logic error is a bug in a program that causes it to operate incorrectly, but not to
terminate abnormally (or crash).
4). Possible reasons for logic errors is when you use the wrong function.
5). Desk checking? Desk checking is an informal manual test that programmers can use to
verify coding and algorithm logic before a program launch.
6). Four things that should be checked when desk checking? - Checking algorithm.
- Unused variables. Input and Output. Logic Errors.
7). Run time errors? A runtime error is a software or hardware problem that prevents a program
from working correctly. Runtime errors might cause you to lose information in the file you're
working on, cause errors in the file (corrupt the file) so you can't work with it, or prevent you from
using a feature.
How are run time errors caused? Running two software that are not compatible, computer
memory issue, computer have a virus.
8). what happens when a run time error is detected? When the program crashes.
9). what is programmer debugging? Is when you manually debug yourself.
10). Program debugging? When the machines debugs automatically.
11). what is a break point? When you stop, and break from coding.
12). what are two ways to add a break point? double clicking beside the line of code.
- clicking on the stop program, and referencing the console.
13). what happens to your code when you add a breakpoint? The line of source code is colored
yellow.
14). what happens when a breakpoint is reached when running a program? Execution stops
when the breakpoint is hit, before the code on that line is executed.
15). Define the following tools