Computer Science Assignment-2 Answers
Section A: Multiple Choice Questions
1. a) 1101
2. a) 1A7
3. d) 0 carry 1
4. d) none of these
5. a) binary
6. a) 2
7. b) 100
8. a) 0111
9. a) D3 (Hex)
10. a) 1010
Section B: Short Answer Questions
1. ASCII Code: A 7-bit code representing characters used in text.
2. Unicode: Supports all global characters with unique codes.
3. UTF Encoding: UTF-8 (1-4 bytes), UTF-16 (2/4 bytes), UTF-32 (4 bytes).
4. ISCII: Used for Indian scripts like Hindi, Tamil, etc.
5. Encoding schemes help store, transfer, and display text accurately.
Section C: Long Answer Questions
1. Octal: Base-8 (0-7), compact binary form.
Hexadecimal: Base-16 (0-9, A-F), readable binary.
2. Decimal: Base-10, regular counting system.
Binary: Base-2, used by computers.
3.a) 781 = 1100001101 (Binary)
b) 101101.001 (Binary) = 45.125 (Decimal)
c) 321.7 (Octal) = 11010001.111 (Binary)
4.a) 3BC (Hex) = 1110111100 (Binary)
b) 10011010.010101 (Binary) = 9A.55 (Hex)
c) 345 (Decimal) = 531 (Octal)
5.a) 736 (Decimal) = 2E0 (Hex)
b) 246.45 (Octal) = A6.94 (Hex)
c) ABF.C (Hex) = 5277.6 (Octal)
d) 576 (Octal) = 382 (Decimal)
e) A5C1 (Hex) = 42433 (Decimal)