4.5 [Fundamentals of Data Representation] Flashcards
(61 cards)
What are Natural Numbers?
Positive whole numbers that occur in nature
Examples include 1, 2, 3, etc.
What are Integers?
Positive and negative whole numbers
Examples include -3, -2, -1, 0, 1, 2, 3, etc.
Define Rational Numbers.
Numbers that can be written as a ratio of two integers
Examples include 0.4, -4.
What are Real Numbers?
All possible real-world quantities
Natural numbers are used for counting, while real numbers are used for measuring.
What is the base of a number system?
The number of unique digits it requires.
What are the digits used in the Binary system?
0, 1
What are the digits used in the Decimal system?
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
What are the digits used in the Hexadecimal system?
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
How is a subscript used in number systems?
It denotes the base being used to avoid ambiguity.
What is an unsigned integer?
Natural numbers written using columns of digits.
What is the least significant digit?
The rightmost digit in a number, having the lowest value.
What is the most significant digit?
The leftmost digit in a number, having the highest value.
How many values can a 4-bit unsigned integer represent?
16 different values (from 0 to 15).
How many values can an 8-bit unsigned integer represent?
256 different values (from 0 to 255).
What is the formula for the number of values an n-bit unsigned integer can represent?
2^n values (from 0 to 2^n-1).
How do you convert Binary to Decimal?
Add up the column values for a 1.
Fill in the blank: To convert Decimal to Binary, you repeatedly divide by _____ and take the remainder.
2
What is the process for converting Binary to Hexadecimal?
Split the binary number into groups of 4 and convert each group to decimal.
What is overflow in binary arithmetic?
Occurs when an arithmetic operation results in a value too large to represent with available bits.
What does the most significant bit (MSB) indicate in signed binary?
If the MSB is 1, the number is negative.
How do you represent negative numbers in signed binary?
Using overflow to represent numbers below 0.
Fill in the blank: Absolute error is the difference between the real number and the closest number that can be _____ in fixed point binary.
represented
What is the purpose of normalising floating point numbers?
To guarantee there is only one way to represent each number and to maximise the accuracy for the given number of bits.
What are the two systems used for storing text in binary?
ASCII and Unicode.