**Introduction to the a simplified toy-DICOM file format I (Problems for the reader)**

Translation of this page is incomplete.

If you understand all what we have said about the binary and hexadecimal coding of alphanumeric characters then you would certainly solve the following Problems:

- If we know that the bits 1100 represent a number, what number do they represent in hexadecimal form and in decimal form?
- If we know that the half byte C represents a number, what number it is then in decimal form?
- If we know that the half byte CC represents a number, what number it is then in decimal form?
- If the two bytes 1F CC represent a number, can we tell what number it is without asking a question? What would that question be?
- Regarding the previous problem, let us assume that the answer to the question is: The place values increase from the left to the right. What then is our number in question in decimal form?
- If the answer is, as opposed to the previous answer: the place values increase from the left to the right. What is the number then in decimal form?
- Let us take the following byte stream
- Let us suppose now that the answers are a) These are words. The decimal numbers at stake are represented by pairs of bytes. b) The place values increase from the right to the left c)Having answered the questions, give the 3 decimal numbers encoded in our byte stream above
- Let us suppose that we have 3 special signs (bytes) 00, 11, FF. Then the task will be to decode a byte stream a) a. 00 tells us that the following byte in the stream represents one single decimal number, b) FF tells us that the following 2 bytes form a word, which represents a decimal number and the place values increase from the right to the left, c) 11 tells us that the following 3 bytes represent 3 Latin-2 characters d) Here is our byte sequence coded according to the rules given above 00 01 00 00 00 FF 00 B1 FF 00 00 FF 00 11 11 42 59 45 11 42 59 45e) What would happen if because of some error we could not see the first byte? f) How do we know that an FF in the stream is a part of a number, or is it a symbol helping us in decoding our byte stream? g) g. Let us decode the byte stream given above