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
Q

What is the repeated division-by-2 method?

A

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
Q

Convert the decimal number 294 to binary.

A

Using the division-by-2 method, 294 in binary is 100100110.

27
Q

Convert the decimal number 89 to binary.

A

Using the division-by-2 method, 89 in binary is 1011001.

28
Q

What is hexadecimal?

A

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
Q

How do you convert binary to hexadecimal?

A

Group the binary number into 4-bit sections from right to left and convert each group into its hexadecimal equivalent.

30
Q

Convert the binary number 10010010 to hexadecimal.

A

Grouping into 4-bit sections: **1001 0010 The hexadecimal equivalent is **92

31
Q

What are the benefits of hexadecimal?

A
  • Easier to read and understand than long binary strings.
  • Compact representation of binary data.
  • Reduces the chance of errors when typing or interpreting.
32
Q

Convert the hexadecimal number 3CF to binary.

A

Convert each hexadecimal digit: 3 = 0011, C = 1100, F = 1111. The binary equivalent is 001111001111.

33
Q

What are the components of floating-point numbers?

A
  1. Significant: The main number digits.
  2. Exponent: Determines the position of the decimal or binary point relative to the significant digits.
34
Q

Why are floating-point numbers needed?

A

They allow for the representation of very large or very small numbers in a compact format, suitable for scientific calculations and data storage.

35
Q

What is absolute error?

A

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
Q

What is relative error?

A

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
Q

What are the limitations of floating-point numbers?

A
  • Limited precision, leading to rounding errors.
  • Cannot exactly represent some numbers.
  • Susceptible to overflow and underflow in calculations.
38
Q

What are natural numbers and integers?

A
  • 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
Q

What is the difference between rational and irrational numbers?

A
  • 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
Q

What is a real number?

A

Rational and irrational numbers as a group

41
Q

What is a rounding error?

A

Decimal converted to floating point but can’t be represented exactly in available number of bits.