Chapter 2 - Program Correctness and Efficiency Flashcards

1
Q

Bug

A

Software defect

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

Types of errors (3)

A
  1. Syntax error
  2. Run-time error
  3. Logic error
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Syntax errors

A

Mistakes using the grammar style, c++ compiler will detect most syntax errors in compilation

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

Run-time error

A

Occur during program execution when the compiler detects an operation that it knows to be incorrect, most halt the program, ex: division by zero, array out of bounds, null pointer reference

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

Logic error

A

Occurs when the programmer or analyst makes a mistake in the design of a class, makes a mistake in the design of a class function, or implemented algorithm incorrectly, the code will compile and run but will not meet the requirements

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

Exception handling

A

Try {
}
Catch () {
}

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

Structured walkthrough

A

when a designer explains the algorithm or program to other team members and simulates its execution with other team members looking on

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

Levels of testing (4)

A
  1. Unit testing
  2. Integration testing
  3. System testing
  4. Acceptance testing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Unit testing

A

The smallest testable piece of software, a function or class

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