03 Binary Representation Flashcards
What is a bit?
A binary digit, the smallest unit of data in computing, represented by a 0 or a 1.
What is a byte?
A group of 8 bits.
What is binary?
A numbering system using the digits 0 and 1, also called Base-2.
How do you convert from binary to denary?
By calculating the sum of powers of 2 for each bit position.
Convert the binary number 0110 0111 to denary.
103
What is denary/decimal?
A numbering system with 10 symbols: 0123456789, also called Base-10.
What is hexadecimal?
A numbering system with 16 symbols: 0123456789ABCDEF, also called Base-16.
What is the purpose of hexadecimal?
To represent very large numbers quickly, such as those used in colour representation.
What is the truth table for AND?
A · B results in 1 only if both A and B are 1.
What is the truth table for OR?
A + B results in 1 if at least one of A or B is 1.
What is the truth table for NOT?
A’ is 1 when A is 0 and vice versa.
What is the truth table for NAND?
(A · B)’ results in 1 unless both A and B are 1.
What is the truth table for NOR?
(A + B)’ results in 1 only if both A and B are 0.
What is the truth table for XOR?
A + B results in 1 only if A and B are different.
Fill in the blank: Denary is also known as _______.
Base-10
Fill in the blank: Hexadecimal is also known as _______.
Base-16
What are the different representations of data in a computer?
1) String (e.g., ‘I love Java’)
2) Integer (e.g., 12, 43, 2535)
3) Characters (ASCII and Unicode)
4) Colours (Hex)
What is the purpose of a truth table?
To show the function of a logic gate.
What does the Boolean operator AND do?
Returns true if both operands are true.
What does the Boolean operator OR do?
Returns true if at least one operand is true.
What does the Boolean operator NOT do?
Inverts the truth value of the operand.
What does the Boolean operator NAND do?
Returns true unless both operands are true.
What does the Boolean operator NOR do?
Returns true only if both operands are false.
What does the Boolean operator XOR do?
Returns true if the operands are different.