SECTION 3: Data Representation Flashcards
(59 cards)
What number base is binary?
Base 2 (uses only 0 and 1)
What number base is decimal?
Base 10 (uses digits 0–9)
What number base is hexadecimal?
Base 16 (uses 0–9 and A–F)
How do you convert binary to decimal?
Multiply each binary digit by 2ⁿ (starting from the right at n=0) and add the results.
How do you convert decimal to binary?
Repeatedly divide by 2 and record the remainders (bottom to top gives binary).
How do you convert binary to hexadecimal?
Split binary into 4-bit groups from right, convert each group to hex.
How do you convert hexadecimal to binary?
Convert each hex digit into 4-bit binary.
How do you convert decimal to hexadecimal?
Convert decimal to binary, then binary to hex (or divide decimal by 16 directly).
How do you convert hexadecimal to decimal?
Multiply each hex digit by 16ⁿ (starting from right at n=0) and add the results.
What is binary addition?
Adding binary digits using rules: 0+0=0, 0+1=1, 1+1=10 (carry), 1+1+1=11
What can binary addition lead to?
Overflow – when result exceeds the storage capacity.
What is a binary shift?
Moving binary digits left or right.
What does a left binary shift do?
Multiplies the number by 2ⁿ.
What does a right binary shift do?
Divides the number by 2ⁿ (loses precision).
What is character encoding?
A system that maps characters to binary numbers.
What is ASCII?
7-bit character set for English letters, numbers, symbols (128 characters).
What is extended ASCII?
8-bit character set (256 characters) including accented letters.
What is Unicode?
A universal character set supporting many languages; uses 8–32 bits.
Why use Unicode over ASCII?
Supports more symbols and global languages.
What is a pixel?
The smallest unit of a digital image.
What is resolution?
The number of pixels in an image (width × height).
What is colour depth (bit depth)?
The number of bits used to represent the colour of each pixel.
What does a higher colour depth allow?
More available colours but a larger file size.
What is metadata in an image file?
Extra data such as width, height, colour depth, file type.