Fichas
Syntax, logic errors and test data
Fichas del conjunto (14)
- 1What is debugging?Identifying and correcting errors in a program
- 2What is syntax?The set of rules for the coding language:
Words and symbols that can be used
How they should be used in commands and statements - 3What are syntax errors?Mistakes made in the use of the words and symbols
- 4Give some examples of syntax errorsSpelling mistakes
Use of commands not actually in the language
Words not in the correct order
Missing quote marks or brackets - 5What is a logic error?They result in unexpected or incorrect outcomes when a program is run
- 6Give an example of a logic errorConditions and incorrect use of comparative operators
e.g. > and => - 7What is testing?It is essential to check there are no syntax and logic errors. Especially important for life or safety critical systems
- 8When should testing be done?During development and not just at the end
- 9What should be included in a test plan?Stating test
Why done
The test data to be used - 10What is a valid test?Enter an expected value that should be acceptable to the program
- 11What are in-range and out-of-range tests?They test what happens when acceptable and unacceptable numbers are entered
An error message should be displayed - 12What is a boundary test?When you a enter a number at the limit of what is acceptable
Should also test numbers just outside the boundary - 13What is a null value test?Checks what happens if an entry is not made or a field is left blank
- 14What is an invalid test?When you enter totally unexpected data
e.g. of a different data type
Información
- Descripción
- GCSE (7 Programming) Computing Fichas sobre Syntax, logic errors and test data, creado por Anisha Rai el 20/04/2016.
- Creado por
- Anisha Rai
- Visitas
- 4
- Etiquetas
- Valoración