Do not use any tools or programming to solve these problems. Work it out yourself by hand, and fill in the answers.
Do not convert any binary numbers to decimal when solving a question unless the question explicitly tells you to.
The goal of these exercises is for you to gain an intuition for binary numbers. Using tools to solve the problems defeats the point.
The answers to these questions will require a bit of explanation, not just a simple answer.
Q16: How can you test if a binary number is a power of two (e.g. 1, 2, 4, 8, 16, ...)? Answer:A binary number is a power of two if it has exactly one 1 bit and all the other bits are 0 so, to test whether a binary number is a power of two, check that it contains only a single 1.
Q17: If reading the byte 0x21 as an ASCII character, what character would it mean? Answer:it gives: ! (first changes it to decimal before mapping it to ASCII corresponding character)
Q18: If reading the byte 0x21 as a greyscale colour, as described in "Approaches for Representing Colors and Images", what colour would it mean? Answer:0x21 is a small value, it represents a dark grey, closer to black than white.
Q19: If reading the bytes 0xAA00FF as a sequence of three one-byte decimal numbers, what decimal numbers would they be? Answer:170 0 255
Q20: If reading the bytes 0xAA00FF as an RGB colour, as described in "Approaches for Representing Colors and Images", what colour would it mean? Answer:a bright purple