Q.How does computer understand the following text? (hint: 7 bit ASCII code).
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 →A computer never stores letters — it stores each character's 7-bit ASCII code as binary; the text is simply the concatenation of those codes, and upper/lower case letters carry different codes.
The idea. ASCII (American Standard Code for Information Interchange) assigns every character a decimal code 0-127, which fits in 7 bits. When you type text, each character is mapped to its code and the code to binary — that bit stream is all the machine "understands".
(i) HOTS
| Character | ASCII (decimal) | 7-bit binary |
|---|---|---|
| H | 72 | 1001000 |
| O | 79 | 1001111 |
| T | 84 | 1010100 |
| S | 83 | 1010011 |
Stream: 1001000 1001111 1010100 1010011
(ii) Main
| Character | ASCII (decimal) | 7-bit binary |
|---|---|---|
| M | 77 | 1001101 |
| a | 97 | 1100001 |
| i | 105 | 1101001 |
| n | 110 | 1101110 |
Stream: 1001101 1100001 1101001 1101110
(iii) CaSe
| Character | ASCII (decimal) | 7-bit binary |
|---|---|---|
| C | 67 | 1000011 |
| a | 97 | 1100001 |
| S | 83 | 1010011 |
| e | 101 | 1100101 |
Stream: 1000011 1100001 1010011 1100101
Generate the codes in Python:
for word in ["HOTS", "Main", "CaSe"]:
print(word, "->", " ".join(format(ord(c), "07b") for c in word))
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.