Exercises

Unicode and UTF-8 Encoding Fundamentals

Explore how programs represent and process text using Unicode and UTF-8. This quiz covers code points, encoding and decoding, variable-length byte sequences, normalization, replacement characters, and grapheme clusters. It is designed to help beginning programmers avoid common mistakes involving string length, indexing, storage, and international text.

Answer the questions below and check the explanation for each answer.

0/10 answered

  1. 1

    What is the primary purpose of a character encoding?

  2. 2

    Which notation represents the Unicode code point for uppercase Latin A?

  3. 3

    In UTF-8, which bit prefix identifies a continuation byte in a multibyte sequence?

    Question 3
  4. 4

    The image shows the UTF-8 byte 01000001. Which character does it represent?

    Question 4
  5. 5

    How many bytes does the character é use when encoded in UTF-8?

  6. 6

    Assuming its é is the single code point U+00E9, how many Unicode code points and UTF-8 bytes are in the string café?

  7. 7

    What does the replacement character � usually indicate when text is displayed?

  8. 8

    The image shows two representations that render as é. What is their Unicode relationship?

    Question 8
  9. 9

    Why can an arbitrary byte position in UTF-8 fail to mark the beginning of a character?

  10. 10

    The image shows one displayed family emoji formed from multiple joined code points. Which concept best explains this?

    Question 10

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate