Basic Definitions VIII Flashcards

1
Q

abstraction

A

Generalization by reducing the information content of a concept. Functions in Python can be used to group a number of program statements with a single name, abstracting out the details and making the program easier to understand.

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

constant

A

A numerical value that does not change during the execution of a program. It is conventional to use names with all uppercase letters to repesent constants, though Python programs rely on the discipline of the programmers to enforce this, since there is no language mechanism to support true constants in Python.

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

nested loop

A

A loop inside the body of another loop.

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

random

A

Having no specific pattern. Unpredictable. Computers are designed to be predicatable, and it is not possible to get a truly random value from a computer. Certain functions produce sequences of values that appear as if they were random, and it is these psuedorandom values that we get from Python.

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

trichotomy

A

Given any real numbers a and b, exactly one of the following relations holds: a < b, a > b, or a = b. Thus when you can establish that two of the relations are false, you can assume the remaining one is true.

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