Computer Number Systems Flashcards

Lecture 1 (22 cards)

1
Q

What number systems are commonly used when coding embedded systems?

A

Binary and Hexadecimal

These systems are essential for digital electronics and programming.

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

What does the base of the Base Number System refer to?

A

It tells us how many unique digits there are in that number system

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

What is the base value of Unsigned Binary?

A

Base 2 [0,1]

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

What is the base value of Hexadecimal?

A

Base 16 [0-9 → A-F]

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

What is the value of 10111?

A

16+4+2+1=23₁₀

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

What is a Byte in terms of bits?

A

8 bits

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

What is a Nibble in terms of bits?

A

4 bits

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

What is a kB in terms of bytes and bits?

A

1024 bytes
8192 bits

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

What is MB in term of bytes and bits?

A

1024x1024 bytes
8388608 bits

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

What indicates an odd binary value?

A

A ‘1’ in its Least Significant Bit (LSB)

LSB is the bit at the end

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

What indicates an even binary value?

A

A ‘0’ in its Least Significant Bit (LSB)

LSB is the bit at the end

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

What is the process to convert Hexadecimal to Binary?

A

Divide the hex number into its digits, write the 4-bit binary value for each, and join them.

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

What is the conversion of F2₁₆ to binary?

A

11110010

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

How do you convert Binary to Hexadecimal?

A

Divide the binary number into 4-bit blocks, write the hex digit for each, and join them.

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

What is the decimal equivalent of the hexadecimal value 3F₁₆?

A

63

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

What do odd hexadecimal values have in their least significant digit position?

A

An odd hex digit (1, 3, 5, 7, 9, B, D, F)

17
Q

What do even hexadecimal values have in their least significant digit position?

A

An even hex digit (0, 2, 4, 6, 8, A, C, E)

18
Q

Is 0x4AC odd or even?

19
Q

Is 0x4A1 odd or even?

20
Q

The word-length of a hexadecimal value is equal to …

A

4 x N bits, where N is the number of hexadecimal digits in the hexadecimal value

Examples:
* A3 is 4 x 2 bits = 8 bits = 1 byte
* BA4C is 4 x 4 bits = 16 bits = 2 bytes
* DDDDDDDD is 4 x 8 bits = 32 bits = 1 bytes

21
Q

How do you do binary addition?

A

Rules
1 + 0 = 1
1 + 1 = 0 carry 1
1 + 1 + carry = 1 carry 1

1011 + 0011 = 1110

22
Q

How do you do hexadecimal addition?

A

Just add the values together if it reaches F carry over 1