paper 2 Flashcards
Describe two common tools or facilities an IDE can provide
-to check for run time errors/to test the program
-error diagnostics/ suggest solutions
logic error
when the program runs but not as intended
syntax error
an error in the code where the rules or grammar of the programming language have been broken
casting
changing the data type of the contents of a variable
why is hexadecimal used by computer scientists instead of binary
-it is simpler to remember large numbers in hex because they are shorter than binary numbers
-they are shorter so there is a lower chance of input errors
-it is easier to convert between binary and hex then binary and denary
how can defensive design be used to protect programs?
-anticipate how users might misuse their program then attempt to prevent it from happening
-ensure the program is well maintained
-ensure their source code is well maintained
-reduce the number of errors in code through testing