Chapter 3 Flashcards
T/F
Information that is stored and manipulated by computers is called data.
True
T/F
Since floating-point numbers are extremely accurate, they should generally be used instead of ints.
False
T/f
Operations like addition and subtraction are defined in the math library.
False
TF
The number of possible arrangements of n items is equal to n!.
True
TF
The sqrt function computes the squirt of a number.
False
TF
The float data type is identical to the mathematical concept of a real number.
True
TF
Computers represent numbers using base-2 (binary) representation.
True
TF
A hardware float can represent a larger range of values than a hardware int.
True
TF
Type conversion functions such as float are a safe alternative to eval for getting a number as user input.
False
TF
In Python, 4 + 5 produces the same result type as 4.0 + 5.0.
False
Which of the following is not a built-in Python data type?
Rational
Which of the following is not a built-in operation?
sqrt
In order to use functions in the math library, a program must include
An import statement
The value of 4! Is
24
The most appropriate data type for storing the value of pi is
Float