Testing Data Flashcards
Name three types of Data and what they are with an example
Normal - data within the range of numbers asked for (like for asked for a month you would say 6 for June).
Extreme - data on the limits of the range of numbers asked for. (1 or 12)
Exceptional - data outside the range of numbers asked for. 27 or -1.
What happens if testing doesn’t happen when IT IS BEING CREATED?
The amount of testing after the program is created can be extensive.
Name the three types of program errors
Syntax error
Logic error
Execution (run-time) error
What is a syntax error and give an example
It is a spelling mistake or a mistake in the grammar of the program.
Anwser - Answer
Or Repeat but no end repeat
If but no end if
What is a logic error
A mistake in the logic of the program
When is a logic error usually noticed
When program is being run
Give an example of a logic error
Incorrect IF statement
Adding two numbers when they should have been subtracted
When is an execution error usually noticed and give an example
When program is being run
Trying to divide a number by 0
Give an example of an execution error
Not properly stating a variable at the start of the program
Name the four ways that your program readability is made better for someone else
Internal commentary
Use of whitespace
Meaningful variables and array names
Indentation of loops and decisions
What is internal commentary
An extra comment/ note that gives the programmer a better idea of what each part of the program is actually doing
What is special about internal commentary
The lines of code are not run by the programming languages translator
How does meaningful arrays and variable names help?
Gives the programmer a good idea on what data will be stored in each variable
How does indentation of ——- and ——– help
Loops and decisions
They help to clearly indicates when a loop starts or ends
Whitespace - talk
It helps the program be easier to read if it was split into procedures using whitespace