Topic 17b: Design, Testing and Documenting Solutions Flashcards
Program errors fall into 3 categories and these are
syntax errors, execution errors and logic errors.
Syntax errors occur as a result of
incorrect use of programming language. E.g. wrong word or missing brackets
Execution errors are errors that
only become apparent once the program is run. E.g. a variable involved in a calculation should be an integer but it is mistakenly set as a string
Logic errors are when
a program has wrong commands or the commands are nor in the correct order or sequence
Input validation is a
conditional loop structure designed to allow only valid data to be entered into a program. The conditional statement specifies criteria for data to be accepted
Pre-defined functions are used to
save a programmer time by activating code using a single command. The code has already been written and tested and saved to a function library for later use.