Number Systems And Binary Flashcards

1
Q

What are the two binary digits?

A

0 and 1

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

What is the largest binary number that can be stored in 8 bits?

A

255 in decimal (binary: 11111111).

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

What is the binary representation for the decimal number 134?

A

10000110 (128 + 4 + 2).

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

Convert the binary number 011 to decimal.

A

3

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

Convert the binary number 0110 to decimal.

A

6

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

Convert the binary number 1001 to decimal.

A

9

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

Convert the binary number 1010 to decimal.

A

10

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

Convert the decimal number 5 to binary.

A

0101

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

Convert the decimal number 7 to binary.

A

0111

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

Convert the decimal number 26 to binary.

A

0011010

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

What do binary fractions use after the binary point?

A

Positions (e.g., 0.5, 0.25).

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

What is the binary representation for 136.75?

A

10001000.11 (128 + 8 + 0.5 + 0.25).

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

What is a mixed number in binary?

A

Uses fixed bits for integers and fractions.

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

What does 110011.01 equal in decimal?

A

51.25

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

How to represent -5 in binary (using 8 bits)?

A

Convert 5 to binary: 00000101, flip the bits: 11111010, add 1: 11111011.

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

How to represent -66 in binary (using 8 bits)?

A

Start with positive 66: 01000010, flip the bits: 10111101, add 1: 10111110.

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

What are the addition rules in binary?

A

0 + 0 = 0, 0 + 1 = 1, 1 + 1 = 0 (carry 1).

18
Q

What is an example of binary addition?

A

00011 + 00001 = 00100

19
Q

How to perform binary subtraction?

A

Convert second number to two’s complement and add.

20
Q

What is an example of binary subtraction?

A

12 - 9: 9: 00001001, Two’s complement: 11110111, Add to 12: 00001100 + 11110111 = 00000011 (3)

21
Q

What are the steps for binary multiplication?

A

Write binary numbers in a table, perform long multiplication (shift and add method).

22
Q

What is an example of binary multiplication?

A

8 (1000) × 3 (11) = 11000 (24).

23
Q

What is the binary multiplication of 8 × 2?

A

1000 × 10 = 10000 (16).

24
Q

What is the binary multiplication of 12 × 10?

A

1100 × 1010 = 1111000 (120).

25
What is the repeated division-by-2 method?
A method to convert a decimal number to binary by dividing the number by 2 repeatedly and recording the remainders. The least significant bit (LSB) is at the top, and the most significant bit (MSB) is at the bottom.
26
Convert the decimal number 294 to binary.
Using the division-by-2 method, 294 in binary is **100100110**.
27
Convert the decimal number 89 to binary.
Using the division-by-2 method, 89 in binary is **1011001**.
28
What is hexadecimal?
Hexadecimal is a base-16 numbering system using digits 0-9 and letters A-F. It is often used in computing for its compact representation of binary values.
29
How do you convert binary to hexadecimal?
Group the binary number into 4-bit sections from right to left and convert each group into its hexadecimal equivalent.
30
Convert the binary number 10010010 to hexadecimal.
Grouping into 4-bit sections: **1001 0010 The hexadecimal equivalent is **92
31
What are the benefits of hexadecimal?
- Easier to read and understand than long binary strings. - Compact representation of binary data. - Reduces the chance of errors when typing or interpreting.
32
Convert the hexadecimal number 3CF to binary.
Convert each hexadecimal digit: 3 = 0011, C = 1100, F = 1111. The binary equivalent is **001111001111**.
33
What are the components of floating-point numbers?
1. **Significant:** The main number digits. 2. **Exponent:** Determines the position of the decimal or binary point relative to the significant digits.
34
Why are floating-point numbers needed?
They allow for the representation of very large or very small numbers in a compact format, suitable for scientific calculations and data storage.
35
What is absolute error?
The difference between the estimated value and the actual value. For example, if the actual value is 20 and the estimated value is 18, the absolute error is **2**.
36
What is relative error?
The ratio of the absolute error to the actual value. For example, if the actual value is 20 and the absolute error is 2, the relative error is **2/20 = 0.1** or **10%**.
37
What are the limitations of floating-point numbers?
- Limited precision, leading to rounding errors. - Cannot exactly represent some numbers. - Susceptible to overflow and underflow in calculations.
38
What are natural numbers and integers?
- **Natural Numbers (N):** Whole numbers starting from 0 (e.g., 0, 1, 2...). - **Integers (Z):** Whole numbers including negatives (e.g., -3, -2, -1, 0, 1, 2...).
39
What is the difference between rational and irrational numbers?
- **Rational Numbers (Q):** Numbers that can be expressed as a fraction (e.g., 7/1). - **Irrational Numbers:** Numbers that cannot be expressed as a fraction (e.g., √2).
40
What is a real number?
Rational and irrational numbers as a group
41
What is a rounding error?
Decimal converted to floating point but can’t be represented exactly in available number of bits.