1: Chapter 5 Flashcards

1
Q

Pseudorandom numbers

A

Numbers that, although they are derived from predictable and well-defined algorithms, mimic the properties of numbers chosen at random.

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

Priming a loop

A

Initializing variables before a loop to “prime the pump” and guarantee that the loop is entered.

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

Sentinel

A

A special value that signals the end of input.

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

Short-circuited evaluation

A

The property of the logical operators && and || that prevents the second operand from being evaluated if the overall result is obvious from the value of the first operand.

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

Robust

A

Ability of a program to execute even when presented with illegal data.

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

Assertion

A

A declarative sentence that is either true or false.

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

Provable assertion

A

An assertion that can be proven to be true at a particular point in program execution.

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

Formal verification

A

A field of computer science that involves reasoning about the formal properties of programs to prove the correctness of a program.

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