Unit 1 SDD - Testing and Evaluation Flashcards
What are the three types of test data?
Normal test data, extreme test data, and exceptional test data.
What is a test table used for?
To help determine what test data is required and to document the results of testing.
What are the three types of errors?
Syntax error, logic error, and execution error.
What type of error prevents code from being translated?
Syntax error.
What is the term for a runtime error?
Execution error.
How can a program be evaluated?
Fitness for purpose, efficient use of programming constructs, robustness, and readability.
How do you evaluate a program’s fitness for purpose?
Evaluate against the purpose and functional requirements identified during the analysis stage.
Give examples of efficient programming constructs.
Repetition, efficient data structures such as arrays, multiple selection statements, logical operators to combine conditions.
What is the definition of a robust program?
A program that can identify and cope with bad user input.
How can program code be made more readable?
Using meaningful variable names, using white space, indenting structures, inserting internal commentary.
What makes software robust?
It can cope with unexpected or incorrect input.
Why are input validation algorithms important?
They should include clear error messages so that users are able to understand what they need to do to enter acceptable data.
What data should be tested when accepting data from within a range?
Normal, exceptional, and extreme data.
Why is it important to test values just outside the acceptable range?
Because programs that are not robust may accept data just outside the extremes.
Why is readable code important?
Programmers often work on each other’s code, and you need to understand it later.
What are some techniques for improving code readability?
Internal commentary, meaningful identifiers, indentation, and white space.
What is internal commentary?
Comments added to the code that are not translated and help explain the code.
What is a meaningful identifier?
A variable name that describes what the variable contains.
What is the purpose of indentation?
To make it easier to see the structure of the code, especially loops and if statements.
What is white space used for?
To separate different subprograms and functions.