Of course. Generating a comprehensive set of 100 true or false questions from the "Binary Encoding of Information" lecture document requires covering each topic in detail, including definitions, concepts, ranges, conversions, and common misconceptions. Here are 100 sample true or false exam questions based on the provided PDF, with an answer key at the end. --- ### Sample Exam Questions: Binary Encoding of Information *Instructions: For each statement, determine if it is true or false based on the content of the lecture document.* #### Section 1: Fundamentals (Bits, Bytes, and Interpretation) 1. **True or False:** Computers use the binary system because it is more efficient for complex mathematical calculations than the decimal system. 2. **True or False:** A "bit" is short for "binary digit." 3. **True or False:** A single bit can represent three possible values: on, off, or neutral. 4. **True or False:** A sequence of 8 bits is called a nibble. 5. **True or False:** A byte is the smallest addressable unit of memory in most modern computer architectures. 6. **True or False:** The bit pattern `01000001` has an inherent, fixed meaning regardless of context. 7. **True or False:** The meaning of a sequence of bits is determined by the program or standard that interprets it. 8. **True or False:** A primary reason for using binary is that two-state devices (like a switch being on or off) are simple and reliable to build. 9. **True or False:** A group of 16 bits is commonly referred to as a byte. 10. **True or False:** The interpretation of a bit pattern can change depending on whether it's being treated as an integer, a character, or a color. #### Section 2: Unsigned Integers 11. **True or False:** The decimal system is a base-10 system, where each digit's place value is a power of 10. 12. **True or False:** The binary system is a base-2 system, where each digit's place value is a power of 2. 13. **True or False:** The binary number `101` is equivalent to the decimal number 6. 14. **True or False:** The binary number `1111` is equivalent to the decimal number 15. 15. **True or False:** The binary number `10000` is equivalent to the decimal number 16. 16. **True or False:** To convert a binary number to decimal, you sum the powers of 10 corresponding to the bit positions that are 1. 17. **True or False:** Using 4 bits, you can represent 16 unique unsigned integer values. 18. **True or False:** The range of unsigned integers that can be represented with *N* bits is 0 to 2ⁿ. 19. **True or False:** The largest unsigned integer that can be represented with 8 bits is 255. 20. **True or False:** The largest unsigned integer that can be represented with a byte is 256. 21. **True or False:** The decimal number 9 is represented as `1001` in binary. 22. **True or False:** The decimal number 2 is represented as `0011` in 4-bit binary. 23. **True or False:** With 10 bits, you can represent exactly 1024 different unsigned numbers. 24. **True or False:** In an unsigned integer, every bit is used to represent the magnitude of the number. 25. **True or False:** The binary representation of an even decimal number always ends in a 1. #### Section 3: Hexadecimal Representation 26. **True or False:** Hexadecimal is used because binary is considered too verbose for humans to read and write easily. 27. **True or False:** Hexadecimal is a base-12 system. 28. **True or False:** The digits in hexadecimal are 0-9 and A-F. 29. **True or False:** The hexadecimal digit 'F' represents the decimal value 15. 30. **True or False:** The hexadecimal digit 'A' represents the decimal value 11. 31. **True or False:** Each hexadecimal digit corresponds to exactly 4 bits. 32. **True or False:** The binary pattern `1101` is represented by the hexadecimal digit 'D'. 33. **True or False:** The binary pattern `10100111` is represented as `A7` in hexadecimal. 34. **True or False:** A byte (8 bits) can be conveniently represented by exactly two hexadecimal digits. 35. **True or False:** The `0x` prefix is a standard convention to indicate that a number is in binary format. 36. **True or False:** The hexadecimal number `0x10` is equivalent to the decimal number 10. 37. **True or False:** The hexadecimal number `0xFF` is equivalent to the decimal number 255. 38. **True or False:** One hexadecimal digit can represent 16 different values. 39. **True or False:** The hexadecimal digit 'C' represents the binary value `1100`. #### Section 4: Signed Integers (Two's Complement) 40. **True or False:** In a simple sign-bit system, there is only one representation for the number zero. 41. **True or False:** Two's complement is the most common method for representing signed integers in modern computers. 42. **True or False:** In an 8-bit two's complement system, the most significant bit (MSB) is used to indicate the sign. 43. **True or False:** If the MSB in a two's complement number is 0, the number is negative. 44. **True or False:** If the MSB in a two's complement number is 1, the number is negative. 45. **True or False:** The range of signed integers that can be represented with *N* bits using two's complement is -2ⁿ⁻¹ to 2ⁿ⁻¹ - 1. 46. **True or False:** Using 8 bits, the range for two's complement integers is -127 to 128. 47. **True or False:** Using 8 bits, the range for two's complement integers is -128 to 127. 48. **True or False:** In an 8-bit two's complement system, the binary pattern `01111111` represents the largest positive number. 49. **True or False:** The two's complement representation of 0 is `10000000`. 50. **True or False:** A shortcut to find the two's complement negation of a number is to flip all the bits and then add 1. 51. **True or False:** The decimal number -1 is represented as `11111111` in 8-bit two's complement. 52. **True or False:** The decimal number 2 is `00000010`. Its two's complement negation, -2, is `11111101`. 53. **True or False:** The decimal number -2 is represented as `11111110` in 8-bit two's complement. 54. **True or False:** In 4-bit two's complement, the number `1011` represents the decimal value -5. 55. **True or False:** The most negative number representable in 8-bit two's complement is `10000000`. 56. **True or False:** One advantage of two's complement is that standard binary addition works correctly for both positive and negative numbers. 57. **True or False:** In 4-bit two's complement, the range of values is -8 to 7. 58. **True or False:** The positive number 5 is represented as `0101` in 4-bit two's complement. 59. **True or False:** The two's complement system allows for a greater number of positive integers than negative integers. #### Section 5: Text Encoding (ASCII) 60. **True or False:** ASCII stands for American Standard Code for Information Interchange. 61. **True or False:** The original ASCII standard used 8 bits to define its characters. 62. **True or False:** The original ASCII standard defined 128 characters. 63. **True or False:** ASCII includes codes for uppercase letters, lowercase letters, digits, and punctuation. 64. **True or False:** The ASCII code for the character 'A' is 65 in decimal, which is `01000001` in binary. 65. **True or False:** ASCII was designed from the beginning to support all major world languages. 66. **True or False:** A major limitation of 7-bit ASCII is its inability to represent characters with accents or symbols from other languages. 67. **True or False:** "Extended ASCII" is a single, universally agreed-upon standard. 68. **True or False:** "Extended ASCII" uses 8 bits, allowing for 256 different characters. 69. **True or False:** The ASCII standard includes non-printable "control characters" used for tasks like line feeds and tabs. 70. **True or False:** In ASCII, the numeric codes for uppercase letters are smaller than the codes for lowercase letters. 71. **True or False:** A text file containing only the word "Hello" would use the exact same number of bytes whether encoded in ASCII or UTF-8. #### Section 6: Text Encoding (Unicode and UTF-8) 72. **True or False:** Unicode was created to provide a single, universal character set for all writing systems. 73. **True or False:** Unicode itself is an encoding scheme, not just a character set standard. 74. **True or False:** A "code point" in Unicode is the number assigned to a single character. 75. **True or False:** UTF-8 is a fixed-width encoding where every character is stored in 8 bits. 76. **True or False:** UTF-8 is a variable-width encoding, meaning characters can take up a different number of bytes. 77. **True or False:** In UTF-8, a character can occupy from 1 to 4 bytes. 78. **True or False:** A major advantage of UTF-8 is that it is backward compatible with 7-bit ASCII. 79. **True or False:** UTF-8 is the dominant character encoding for the World Wide Web. 80. **True or False:** UTF-16 and UTF-32 are different character set standards, unrelated to Unicode. 81. **True or False:** Any character that can be represented in ASCII can also be represented in Unicode. 82. **True or False:** A document encoded in UTF-8 can contain both English text and Chinese characters. 83. **True or False:** Because it is variable-width, a UTF-8 file containing only English text is significantly larger than the same file in ASCII. 84. **True or False:** The goal of Unicode is to assign a unique number to every character in existence. #### Section 7: Color Encoding (RGB) 85. **True or False:** The RGB color model is an additive model, where colors are created by mixing light. 86. **True or False:** RGB stands for Red, Green, and Black. 87. **True or False:** The RGB model is primarily used for printed materials like books and magazines. 88. **True or False:** In a 24-bit "True Color" system, 8 bits are used to represent the intensity of each of the three color components. 89. **True or False:** With 8 bits per channel, there are 255 different intensity levels for each of Red, Green, and Blue. 90. **True or False:** With 8 bits per channel, there are 256 different intensity levels (0-255) for each color. 91. **True or False:** A 24-bit RGB system can represent a total of 256 x 3 = 768 colors. 92. **True or False:** A 24-bit RGB system can represent approximately 16.7 million different colors. 93. **True or False:** The hexadecimal color code format is typically `#GGBBRR`. 94. **True or False:** The color black is represented by the decimal RGB triplet (0, 0, 0) and the hex code `#000000`. 95. **True or False:** The color white is represented by the decimal RGB triplet (255, 255, 255) and the hex code `#FFFFFF`. 96. **True or False:** The hex code `#FF0000` represents pure, full-intensity green. 97. **True or False:** The hex code `#00FF00` represents pure, full-intensity green. 98. **True or False:** The hex code `#FFFF00` represents the color yellow. 99. **True or False:** The hex code `#808080` would represent a shade of gray. 100. **True or False:** Each color component in a 24-bit RGB system is stored in exactly one byte. --- ### Answer Key 1. **False.** It's used because two states are easy to represent physically with switches/voltage. 2. **True.** 3. **False.** A bit can only represent two values (0 or 1). 4. **False.** A sequence of 8 bits is a byte. A nibble is 4 bits. 5. **True.** 6. **False.** Its meaning depends entirely on interpretation. 7. **True.** 8. **True.** 9. **False.** 16 bits is a "word" or "half-word" depending on architecture; a byte is 8 bits. 10. **True.** 11. **True.** 12. **True.** 13. **False.** It is 4 + 0 + 1 = 5. 14. **True.** It is 8 + 4 + 2 + 1 = 15. 15. **True.** 16. **False.** You sum the powers of 2. 17. **True.** The values are 0 through 15. 18. **False.** The range is 0 to 2ⁿ - 1. 19. **True.** The range is 0 to 2⁸ - 1 = 255. 20. **False.** The largest integer is 255. There are 256 total values (0-255). 21. **True.** 8 + 1 = 9. 22. **False.** It is `0010`. 23. **True.** 2¹⁰ = 1024. 24. **True.** 25. **False.** It always ends in a 0. The 2⁰ place value is 1, so if it's set, the number is odd. 26. **True.** 27. **False.** It is a base-16 system. 28. **True.** 29. **True.** 30. **False.** 'A' represents decimal 10. 31. **True.** 32. **True.** 8 + 4 + 1 = 13, which is 'D'. 33. **True.** `1010` is 'A', `0111` is '7'. 34. **True.** 35. **False.** It indicates a hexadecimal number. 36. **False.** It is decimal 16. (1 * 16¹) + (0 * 16⁰). 37. **True.** (15 * 16¹) + (15 * 16⁰) = 240 + 15 = 255. 38. **True.** 39. **True.** 8 + 4 = 12, which is 'C'. 40. **False.** A sign-bit system has two zeros (+0 and -0), which is a noted problem. 41. **True.** 42. **True.** 43. **False.** If the MSB is 0, the number is positive or zero. 44. **True.** 45. **True.** 46. **False.** The range is -128 to 127. 47. **True.** 48. **True.** It represents decimal 127. 49. **False.** The representation for 0 is `00000000`. 50. **True.** 51. **True.** 52. **False.** To negate `00000010`, you flip (`11111101`) and add 1, resulting in `11111110`. 53. **True.** 54. **True.** Inverting `0101` (5) gives `1010`, adding 1 gives `1011` (-5). 55. **True.** It represents -128. 56. **True.** This is a major advantage of the system. 57. **True.** The range is -2³ to 2³-1, which is -8 to 7. 58. **True.** 59. **False.** It represents one more negative number than positive numbers because zero is considered non-negative. 60. **True.** 61. **False.** The original standard used 7 bits. 62. **True.** 2⁷ = 128. 63. **True.** 64. **True.** 65. **False.** It was designed primarily for English. 66. **True.** 67. **False.** There were many conflicting "extended ASCII" versions, which was a major problem. 68. **True.** 69. **True.** 70. **True.** For example, 'A' is 65 and 'a' is 97. 71. **True.** For the basic ASCII character set, UTF-8 uses one byte per character, identical to ASCII. 72. **True.** 73. **False.** Unicode is a standard that defines character code points; UTF-8/16/32 are the encodings that implement it. 74. **True.** 75. **False.** It is a variable-width encoding. 76. **True.** 77. **True.** 78. **True.** This is a key design feature. The first 128 code points are identical. 79. **True.** 80. **False.** They are different *encodings* for the Unicode standard. 81. **True.** 82. **True.** 83. **False.** For text containing only characters from the 7-bit ASCII set, the file size is identical. 84. **True.** 85. **True.** 86. **False.** It stands for Red, Green, and **Blue**. 87. **False.** It is for emissive displays like monitors and screens. CMYK is for print. 88. **True.** 89. **False.** 8 bits provides 2⁸ = 256 levels, numbered 0 to 255. This is a common off-by-one confusion. 90. **True.** 91. **False.** The total is 256 * 256 * 256. 92. **True.** 2²⁴ ≈ 16.7 million. 93. **False.** The format is `#RRGGBB` (Red, Green, Blue). 94. **True.** 95. **True.** 96. **False.** It represents pure red (`FF` for Red, `00` for Green, `00` for Blue). 97. **True.** 98. **True.** It is a mix of full-intensity Red and full-intensity Green. 99. **True.** When R, G, and B have equal values, the result is a shade of gray. 100. **True.** 8 bits = 1 byte.