Computer Chapter 1 Notes (C)
Computer Chapter 1 Notes (C)
Definition and Importance: Binary is a base-2 numeral system used by computers. It consists of only
two digits: 0 and 1. Each digit is called a bit.
Bits and Bytes: A bit is the smallest unit of data. A byte consists of 8 bits. For example, the binary
number 10101010 represents one byte.
Binary Counting: How to count in binary (e.g., 0, 1, 10, 11, 100, etc.).
Method: Multiply each bit by 2 raised to the power of its position, starting from 0 on the right.
13 ÷ 2 = 6 remainder 1
6 ÷ 2 = 3 remainder 0
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
Binary: 1101
Introduction to Hexadecimal:
Definition and Usage: Hexadecimal is a base-16 numeral system used in computing for its compact
representation. It uses digits 0-9 and letters A-F.
Hexadecimal Digits: 0-9 represent values 0-9, and A-F represent values 10-15.
F = 1111
Binary: 00101111
Method: Group binary digits into sets of four, starting from the right, and convert each group to its
hexadecimal equivalent.
1101 = D
1110 = E
Hexadecimal: DE
Method: Multiply each digit by 16 raised to the power of its position, starting from 0 on the right.
26 ÷ 16 = 1 remainder 10 (A)
1 ÷ 16 = 0 remainder 1
Hexadecimal: 1A
Character Encoding:
ASCII: American Standard Code for Information Interchange. Each character is represented by a 7 or 8-bit
binary number.
Unicode: A more extensive encoding system that supports many languages and symbols. It uses 16 bits
or more.
Bitmap Images: Stored as a grid of pixels, each represented by a binary value indicating color.
Color Depth: Number of bits used to represent the color of a single pixel (e.g., 24-bit color).
Sound Storage:
Digitization: Converting analog sound waves into digital format using sampling.
Sampling Rate: Number of samples taken per second (e.g., 44.1 kHz).
Bit Depth: Number of bits used to represent each sample (e.g., 16-bit).
Importance: Reduces file size to save storage space and transmission time.
Definition: Reduces file size by removing some data, which may affect quality.
Use Cases: Suitable for applications where some loss of quality is acceptable.
Lossless Compression:
Binary Arithmetic:
Overflow: When the result of an arithmetic operation exceeds the available number of bits.
Parity Bits: Adding an extra bit to make the number of 1s even (even parity) or odd (odd parity).
Checksums: Summing the data values and sending the sum along with the data for verification.
Introduction to Denary:
Definition: The denary system, also known as the decimal system, is a base-10 numeral system. It uses
ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.
Method: Divide the denary number by 2 and record the remainder. Repeat with the quotient until you
reach 0. The binary number is the remainders read in reverse.
45 ÷ 2 = 22 remainder 1
22 ÷ 2 = 11 remainder 0
11 ÷ 2 = 5 remainder 1
5 ÷ 2 = 2 remainder 1
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Binary: 101101
Method: Divide the denary number by 16 and record the remainder. Repeat with the quotient until you
reach 0. The hexadecimal number is the remainders read in reverse.
15 ÷ 16 = 0 remainder
-------------------------------------------
Signature