Fundamentals of Data Representation Flashcards
What are natural numbers?
Natural numbers are a set of numbers that include all positive whole numbers and zero. They are used for counting items.
The symbol for natural numbers is ℕ.
What are integer numbers?
Integer numbers are a set of whole numbers, including positive numbers, negative numbers, and zero.
The symbol for integer numbers is ℤ.
What are rational numbers?
Rational numbers can have a fractional part and can be written as a fraction of one number over another.
The symbol for rational numbers is ℚ.
What are irrational numbers?
Irrational numbers cannot be written exactly as a fraction and include numbers like π, √2, and e.
What are real numbers?
Real numbers include all possible real-world quantities and encompass irrational numbers, rational numbers, integers, and natural numbers.
The symbol for real numbers is ℝ.
What are ordinal numbers used for?
Ordinal numbers are used to describe the numerical positions of objects in relation to others, such as 1st, 2nd, or 3rd.
What is a bit?
A bit is the fundamental unit of information that can take two values, 1 and 0.
What is a byte?
A byte is a collection of 8 bits.
What is a nybble?
A nybble is half a byte, consisting of 4 bits.
How is a bit denoted?
A bit is denoted with a lowercase “b”.
How is a byte denoted?
A byte is denoted with an uppercase “B”.
How many bits are in 2 bytes?
There are 16 bits in 2 bytes.
2 x 8 bits
How many bits are in 20 bytes?
There are 160 bits in 20 bytes.
20 x 8 bits
How many different values can be represented with a specified number of bits?
There are 2^n different values that can be represented with n bits
How many different values can be represented with 8 bits?
With 8 bits (1 byte), there are 256 different values that can be represented (2^8 = 256).
What is the value of 1 kilobyte (KB)?
1 kilobyte (KB) = 1000 bytes.
How do you calculate absolute error?
Absolute error is calculated by finding the difference between the given value and the actual value.
How do you calculate relative error?
Relative error is calculated by dividing the absolute error by the actual value.
What is the advantage of floating point representation over fixed point representation?
Floating point representation allows for a greater range of numbers with a given number of bits by utilizing an exponent, which can be positive or negative.
What is normalization in floating point numbers?
Normalization in floating point numbers ensures that the number starts with 01 (for positive numbers) or 10 (for negative numbers) in order to provide the maximum level of precision.
What is underflow?
Underflow occurs when very small numbers are to be represented, but there are not enough bits available to accurately represent them.
What is a character code?
A character code is a decimal digit used to represent a character in an information coding system.
How many bits are used in ASCII to represent different characters?
ASCII uses 7 bits to represent 128 (= 2^7) different characters
What are parity bits used for?
Parity bits are used for error checking in transmitted data.
How does majority voting work?
In majority voting, each bit of the data is transmitted multiple times, and the most commonly occurring value is considered correct.
What is a checksum?
A checksum is a value calculated based on the data being transmitted, which is added to the transmitted data for error detection.