HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A team designs a character set for a language with 1200 different characters…
HardComputer ScienceHigh School (9–10)Computer Science › Data RepresentationNumericalConceptualIGCSE

A team designs a character set for a language with 1200 different characters…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A team designs a character set for a language with 1200 different characters. Every character must have its own binary code, and every code must use the same number of bits.

  1. What is the smallest number of bits per character that works?
  1. Explain why 7-bit ASCII cannot be used.
  1. The team decides to use 16 bits a character. How many bytes does a document of 500 characters need?

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

A character set gives each character a binary code. ASCII uses 7 bits (128 codes), usually one byte a character; the letters are in order and a small letter is 32 more than its capital. Unicode has far more characters, including other languages and emojis, so it needs more bits per character. Bits for a text === characters ×\times× bits per character.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Given. 1200 characters, each with its own code.

Step 1. Try 10 bits. 210=10242^{10} = 1024210=1024 codes. That is fewer than 1200, so 10 bits are not enough.

Step 2. Try 11 bits. 211=20482^{11} = 2048211=2048 codes. That is at least 1200, so 11 bits is the smallest number that works.

Step 3. Why not ASCII. 7 bits give only 27=1282^7 = 12827=128 codes. The language needs 1200, so most characters would have no code.

Step 4. The document. 500×16=8000500 \times 16 = 8000500×16=8000 bits, and 8000÷8=10008000 \div 8 = 10008000÷8=1000 bytes.

Check. Unicode was made for exactly this case: it has codes for the characters of many languages, using more bits than ASCII.

Answer: (a) 11 bits. (b) ASCII has only 128 codes. (c) 1000 bytes.

Log in to save this for later
← All Problems
← A phone message is 160 characters long, spaces included…A doorbell stores its chime as a sound sampled 8000 times a second, with a sample resolution of 8… →
More onComputer Science › Data Representation

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. A student must compress two files. File A is a text file holding the 7 characters ABCDEFG, one byte…Hard
  2. A line of an icon is stored with run-length encoding as these pairs of (count, colour code): (5…Medium
  3. One row of a scanned page is 13 pixels: 6 white, then 3 black, then 4 white…Easy
  4. An image is 800 pixels wide and 600 pixels high…Hard
  5. A camera takes photos of 2048 by 1536 pixels with a colour depth of 24 bits…Medium
All problems on this topic →