1: Chapter 5 Flashcards
Pseudorandom numbers
Numbers that, although they are derived from predictable and well-defined algorithms, mimic the properties of numbers chosen at random.
Priming a loop
Initializing variables before a loop to “prime the pump” and guarantee that the loop is entered.
Sentinel
A special value that signals the end of input.
Short-circuited evaluation
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.
Robust
Ability of a program to execute even when presented with illegal data.
Assertion
A declarative sentence that is either true or false.
Provable assertion
An assertion that can be proven to be true at a particular point in program execution.
Formal verification
A field of computer science that involves reasoning about the formal properties of programs to prove the correctness of a program.