Question Bank (3 marks) · Q4
Q.Write the ASCII code for the decimal numbers 0 to 9.
Karnataka PUCTextbookLong· 3mImportance★★★★★est
12% · 19/160 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →[!TLDR]
The decimal digits 0–9 have the 7-bit ASCII codes 0110000 to 0111001, i.e. the fixed zone bits 011 followed by the 4-bit value of the digit.
ASCII (American Standard Code for Information Interchange) is a 7-bit alphanumeric code. The numeric characters '0' to '9' share the common upper (zone) bits 011, and the lower four bits hold the BCD value of the digit.
| Decimal digit | Decimal value | ASCII (7-bit) |
|---|---|---|
| 0 | 48 | 011 0000 |
| 1 | 49 | 011 0001 |
| 2 | 50 | 011 0010 |
| 3 | 51 | 011 0011 |
| 4 | 52 | 011 0100 |
| 5 | 53 | 011 0101 |
| 6 | 54 | 011 0110 |
| 7 | 55 | 011 0111 |
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.