Chapter 5 Flashcards

1
Q

compile-time error

A

errors found by the compiler (syntax errors and type errors)

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

assertion

A

a statement that stats an invariant

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

run-time error

A

errors found by checks in a running program (by computer, library, user code)

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

container

A

collection of data

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

debugging

A

the activity of deliberately searching and for errors and removing them

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

exception

A

a response to an exceptional circumstance that arises while a program is running, such as an attempt to divide by zero

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

range error

A

written index is not in the range required by container

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

invariant

A

statement that describes a condition that should be always true in an object life

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

error

A

a mismatch between reasonable expectations of program behavior and what a program actually does

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

link-time error

A

errors found by linker when it’s trying to combine object files into an executable program

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

logic error

A

errors found by the programmer looking for the causes of erroneous results

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

post-condition

A

a condition that must always be true just after the execution of some section of code

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

pre-condition

A

a requirement of a function upon its argument

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

requirement

A

a description of the desired behavior of a program or part of a program

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

testing

A

systematic way to search errors

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