03 Binary Representation Flashcards

1
Q

What is a bit?

A

A binary digit, the smallest unit of data in computing, represented by a 0 or a 1.

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

What is a byte?

A

A group of 8 bits.

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

What is binary?

A

A numbering system using the digits 0 and 1, also called Base-2.

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

How do you convert from binary to denary?

A

By calculating the sum of powers of 2 for each bit position.

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

Convert the binary number 0110 0111 to denary.

A

103

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

What is denary/decimal?

A

A numbering system with 10 symbols: 0123456789, also called Base-10.

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

What is hexadecimal?

A

A numbering system with 16 symbols: 0123456789ABCDEF, also called Base-16.

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

What is the purpose of hexadecimal?

A

To represent very large numbers quickly, such as those used in colour representation.

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

What is the truth table for AND?

A

A · B results in 1 only if both A and B are 1.

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

What is the truth table for OR?

A

A + B results in 1 if at least one of A or B is 1.

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

What is the truth table for NOT?

A

A’ is 1 when A is 0 and vice versa.

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

What is the truth table for NAND?

A

(A · B)’ results in 1 unless both A and B are 1.

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

What is the truth table for NOR?

A

(A + B)’ results in 1 only if both A and B are 0.

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

What is the truth table for XOR?

A

A + B results in 1 only if A and B are different.

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

Fill in the blank: Denary is also known as _______.

A

Base-10

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

Fill in the blank: Hexadecimal is also known as _______.

A

Base-16

17
Q

What are the different representations of data in a computer?

A

1) String (e.g., ‘I love Java’)
2) Integer (e.g., 12, 43, 2535)
3) Characters (ASCII and Unicode)
4) Colours (Hex)

18
Q

What is the purpose of a truth table?

A

To show the function of a logic gate.

19
Q

What does the Boolean operator AND do?

A

Returns true if both operands are true.

20
Q

What does the Boolean operator OR do?

A

Returns true if at least one operand is true.

21
Q

What does the Boolean operator NOT do?

A

Inverts the truth value of the operand.

22
Q

What does the Boolean operator NAND do?

A

Returns true unless both operands are true.

23
Q

What does the Boolean operator NOR do?

A

Returns true only if both operands are false.

24
Q

What does the Boolean operator XOR do?

A

Returns true if the operands are different.