paper 2 Flashcards

1
Q

Describe two common tools or facilities an IDE can provide

A

-to check for run time errors/to test the program
-error diagnostics/ suggest solutions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

logic error

A

when the program runs but not as intended

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

syntax error

A

an error in the code where the rules or grammar of the programming language have been broken

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

casting

A

changing the data type of the contents of a variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

why is hexadecimal used by computer scientists instead of binary

A

-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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how can defensive design be used to protect programs?

A

-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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly