Coding Text Flashcards
What does each memory circuit in a computer represent?
Each memory circuit can be ON or OFF, represented as 1 or 0.
How many combinations are possible with:
(i) 2 bits (ii) 3 bits (iii) 4 bits (iv) 8 bits?
2 bits: 4
3 bits: 8
4 bits: 16
8 bits: 256
How many characters can ASCII represent with 7 bits?
128 characters.
What is the ASCII code in binary and decimal for the character ‘0’?
Binary: 00110000
Decimal: 48.
What is the purpose of a parity bit?
It is used for error detection by ensuring a correct number of 1s in a byte.
What are the rules for even parity?
Add a parity bit:
If odd number of 1s → Parity bit = 1
If even number of 1s → Parity bit = 0
How does the majority voting method detect and correct errors?
Each bit is transmitted three times, and the most common value in the triplet is used.
What is the role of a check digit in error detection?
It is calculated from other digits in the code to identify human errors during data entry.
What are two advantages of Unicode compared to ASCII?
- Represents a larger set of characters, including various languages.
- Standardized globally for better data compatibility.
Name a disadvantage of Unicode compared to ASCII.
Unicode uses more memory as it has a larger range.
What is the binary for character ‘A’ in ASCII?
Binary: 01000001
Decimal: 65.
What will the parity bit be for ‘P’ (ASCII: 01010000) with even parity?
: 1 (making it 101010000).
What is a single binary digit called?
A bit (Binary Digit).
How many bits are in a byte, and what does a byte represent?
byte has 8 bits and typically represents one character in memory.
What is the decimal value of the ASCII code for the letter ‘B’ and how is it represented in 7-bit binary?
Decimal: 66
Binary: 1000010.