Of course. Generating a large number of unique and meaningful questions from a single document requires covering each concept from multiple angles. Based on the "Binary Encoding" document from the CS200 lecture series, here are 100 true or false sample exam questions. An answer key with brief explanations is provided at the end. --- **Exam Questions: Binary Encoding** *Instructions: Read each statement carefully. Determine if the statement is true or false based on the information provided in the lecture document.* **Section 1: Bits, Bytes, and Basic Concepts** 1. True or False: A single bit is the smallest unit of data in a computer and can represent two values. 2. True or False: A sequence of 4 bits is commonly referred to as a byte. 3. True or False: With 3 bits, you can represent a total of 8 unique patterns (from 000 to 111). 4. True or False: With N bits, the number of unique values you can represent is N^2. 5. True or False: A standard byte consists of 8 bits. 6. True or False: 5 bits are sufficient to represent 35 different values. 7. True or False: Binary is a base-10 number system. 8. True or False: Computers use binary because the two states (0 and 1) are easy to represent with physical components like transistors (off/on). 9. True or False: A single bit can hold the decimal value 2. 10. True or False: To represent 100 unique items, you would need at least 7 bits. **Section 2: Binary to Decimal Conversion** 11. True or False: The binary number 1010 is equivalent to the decimal number 10. 12. True or False: The binary number 0011 is equivalent to the decimal number 4. 13. True or False: The rightmost bit in a binary number is called the Most Significant Bit (MSB). 14. True or False: Each position in a binary number represents a power of 2. 15. True or False: The binary number 10000 is equivalent to the decimal number 16. 16. True or False: The binary number 1111 is equivalent to the decimal number 15. 17. True or False: The decimal value of the binary number 010101 is 21. 18. True or False: The place value of the fifth bit from the right is 32. 19. True or False: All binary numbers that end in a 1 represent odd decimal numbers. 20. True or False: The binary number 11011 represents the decimal number 27. **Section 3: Decimal to Binary Conversion** 21. True or False: The "repeated division by 2" method is used to convert a number from binary to decimal. 22. True or False: When converting decimal 13 to binary using repeated division, the first remainder you calculate becomes the least significant bit (LSB). 23. True or False: The decimal number 8 is represented as 1000 in binary. 24. True or False: The decimal number 19 is represented as 10011 in binary. 25. True or False: The decimal number 32 is represented as 100000 in binary. 26. True or False: To convert a decimal number to binary, you sum the powers of 10. 27. True or False: The binary representation of the decimal number 6 is 111. 28. True or False: Any decimal number can be represented as a unique sum of powers of 2. **Section 4: Hexadecimal Number System** 29. True or False: The hexadecimal system is base-16. 30. True or False: Hexadecimal uses the digits 0-9 and the letters A-G. 31. True or False: One hexadecimal digit can represent the same amount of information as four binary digits. 32. True or False: The hexadecimal digit 'F' is equivalent to the decimal number 15. 33. True or False: The hexadecimal digit 'B' is equivalent to the decimal number 11. 34. True or False: The primary purpose of hexadecimal is to provide a human-friendly, concise representation of binary data. 35. True or False: The hexadecimal number '10' is equivalent to the decimal number 10. 36. True or False: The hexadecimal number '2A' is equivalent to the decimal number 42. 37. True or False: The binary value 1110 corresponds to the hexadecimal digit 'E'. 38. True or False: The binary value 1001 corresponds to the hexadecimal digit '9'. 39. True or False: The hexadecimal number 'FF' is equivalent to the decimal number 256. 40. True or False: It takes two hexadecimal digits to represent a single byte. 41. True or False: The hexadecimal value 'D' is equivalent to the binary value 1101. **Section 5: Negative Numbers and Two's Complement** 42. True or False: In an 8-bit two's complement system, the leftmost bit (MSB) is the sign bit. 43. True or False: In 8-bit two's complement, a sign bit of '0' indicates a negative number. 44. True or False: To find the two's complement representation of a negative number, you flip all the bits of its positive form and then add 1. 45. True or False: The range of values for an 8-bit two's complement integer is -128 to +127. 46. True or False: The range of values for an 8-bit unsigned integer is 0 to 255. 47. True or False: In two's complement, there is only one representation for the number zero. 48. True or False: The main advantage of two's complement is that it allows the computer to perform subtraction by using addition hardware. 49. True or False: The 8-bit two's complement representation of -1 is 11111111. 50. True or False: The 8-bit two's complement representation of +5 is 00000101. 51. True or False: The 8-bit two's complement representation of -5 is 11111010. 52. True or False: The binary pattern 10000000 represents +128 in an 8-bit two's complement system. 53. True or False: The binary pattern 01111111 represents +127 in an 8-bit two's complement system. 54. True or False: Simply flipping the sign bit of a positive number gives its correct negative representation in two's complement. 55. True or False: A "sign and magnitude" representation system has the disadvantage of having two different patterns for zero. **Section 6: Character Encoding (ASCII, Unicode, UTF-8)** 56. True or False: ASCII is a 7-bit character encoding standard. 57. True or False: Standard ASCII can represent 256 different characters. 58. True or False: ASCII was primarily designed to represent characters from all the world's major languages. 59. True or False: The ASCII code for the uppercase letter 'A' is 65. 60. True or False: Unicode was created to provide a universal character encoding standard. 61. True or False: UTF-8 is a specific encoding that implements the Unicode standard. 62. True or False: UTF-8 is a fixed-width encoding, where every character takes up 4 bytes. 63. True or False: In UTF-8, any character from the original ASCII set is encoded using only one byte. 64. True or False: A Unicode "code point" is the unique number assigned to a specific character. 65. True or False: UTF-8's variable-width nature makes it inefficient for documents that are mostly English text. 66. True or False: "Extended ASCII" is an 8-bit code that adds 128 additional characters. 67. True or False: Unicode and ASCII are two completely separate and incompatible systems. **Section 7: Representing Color (RGB)** 68. True or False: The RGB color model is an additive model, where colors are created by adding light. 69. True or False: In the 24-bit RGB model, each color channel (Red, Green, Blue) is represented by 8 bits. 70. True or False: A value of 255 in a color channel indicates the complete absence of that color. 71. True or False: The RGB triplet (0, 0, 0) represents the color white. 72. True or False: The RGB triplet (255, 255, 255) represents the color white. 73. True or False: The hexadecimal color code #FF0000 represents pure red. 74. True or False: The hexadecimal color code #00FF00 represents pure blue. 75. True or False: The RGB triplet (255, 255, 0) produces the color yellow. 76. True or False: The RGB triplet (0, 255, 255) produces the color magenta. 77. True or False: The color represented by #808080 would be a mid-level gray. 78. True or False: The RGB model is a "subtractive" model, like mixing paint. 79. True or False: In a 24-bit color system, there are over 16 million possible colors. 80. True or False: The hexadecimal value for a single color channel ranges from 00 to FF. 81. True or False: The hexadecimal color #FF00FF represents the color magenta. 82. True or False: The order of colors in a 6-digit hex code is typically Blue, Green, Red. **Section 8: Units of Data (KB, MB, GB)** 83. True or False: A kilobyte (KB) is always and exactly 1024 bytes. 84. True or False: Disk drive manufacturers often use powers of 10 (1 KB = 1000 bytes) to define storage capacity. 85. True or False: Computer memory (RAM) capacity is typically measured using powers of 2 (1 KB = 1024 bytes). 86. True or False: A mebibyte (MiB) was introduced to unambiguously mean 2^20 bytes (1024 * 1024 bytes). 87. True or False: A gigabyte (GB) is smaller than a megabyte (MB). 88. True or False: The prefixes kibi-, mebi-, gibi- were created to refer specifically to powers of 10. 89. True or False: The ambiguity in the definition of a kilobyte can lead to discrepancies in reported storage capacity. 90. True or False: One megabyte (MB) is equivalent to 1024 kilobytes (KB) when discussing memory. **Section 9:综合 (Mixed Review)** 91. True or False: The hexadecimal number 'C' is equivalent to the decimal number 12. 92. True or False: The color #00FFFF is a mix of maximum green and maximum blue, creating cyan. 93. True or False: The binary pattern 11111111 can represent either the decimal number 255 (unsigned) or -1 (two's complement). 94. True or False: One hexadecimal digit represents a "nibble" (4 bits). 95. True or False: UTF-8's backward compatibility with ASCII is a major reason for its widespread adoption. 96. True or False: The decimal number -129 can be successfully represented using 8-bit two's complement. 97. True or False: The binary value 10000001 represents -127 in 8-bit two's complement. 98. True or False: The RGB color (128, 0, 0) would be a darker shade of red than (255, 0, 0). 99. True or False: The number of bits in a byte is universally standardized at 8. 100. True or False: Hexadecimal is used by computers at the hardware level to perform calculations. --- ### **Answer Key** 1. **True.** 2. **False.** A sequence of 4 bits is a nibble; a byte is 8 bits. 3. **True.** (2^3 = 8) 4. **False.** It is 2^N. 5. **True.** 6. **False.** 5 bits can represent 2^5 = 32 values. You would need 6 bits for 35 values. 7. **False.** It is base-2. 8. **True.** 9. **False.** A bit can only be 0 or 1. 10. **True.** 2^6 = 64 (too small), 2^7 = 128 (sufficient). 11. **True.** (8 + 2 = 10) 12. **False.** It is 3 (2 + 1). 13. **False.** It is the Least Significant Bit (LSB). 14. **True.** 15. **True.** 16. **True.** (8 + 4 + 2 + 1 = 15) 17. **True.** (16 + 4 + 1 = 21) 18. **False.** The fifth bit from the right is 2^(5-1) = 2^4 = 16. 19. **True.** An LSB of 1 means the 2^0 (1's place) is included. 20. **True.** (16 + 8 + 2 + 1 = 27) 21. **False.** It's for converting from decimal to binary. 22. **True.** 23. **True.** 24. **True.** (16 + 2 + 1 = 19) 25. **True.** 26. **False.** You sum powers of 2. 27. **False.** It is 110. 28. **True.** 29. **True.** 30. **False.** It uses A-F. 31. **True.** 32. **True.** 33. **True.** 34. **True.** 35. **False.** Hex '10' is decimal 16. 36. **True.** (2 * 16 + 10 = 32 + 10 = 42) 37. **True.** 38. **True.** 39. **False.** It is 255 (15*16 + 15). 40. **True.** (Each hex is 4 bits, so two are needed for 8 bits). 41. **True.** 42. **True.** 43. **False.** A sign bit of 0 indicates a positive number or zero. 44. **True.** 45. **True.** 46. **True.** 47. **True.** 48. **True.** 49. **True.** 50. **True.** 51. **False.** Positive 5 is 00000101. Flipped is 11111010. Add 1 is 11111011. 52. **False.** It represents -128. 53. **True.** 54. **False.** This describes "sign and magnitude" and is not how two's complement works for negation. 55. **True.** 56. **True.** 57. **False.** As a 7-bit code, it can represent 128 characters. 58. **False.** It was designed for English. 59. **True.** 60. **True.** 61. **True.** 62. **False.** It is a variable-width encoding. 63. **True.** This ensures backward compatibility. 64. **True.** 65. **False.** Its variable-width nature is *efficient* because it uses only one byte for ASCII characters. 66. **True.** 67. **False.** Unicode is a superset of ASCII, and UTF-8 is backward compatible with it. 68. **True.** 69. **True.** 70. **False.** 255 represents maximum intensity. 0 indicates absence. 71. **False.** It represents black. 72. **True.** 73. **True.** 74. **False.** It represents pure green. #0000FF is pure blue. 75. **True.** (Red + Green = Yellow) 76. **False.** It produces cyan. Magenta is (255, 0, 255). 77. **True.** 78. **False.** It is an additive model. 79. **True.** (256 * 256 * 256 = 16,777,216) 80. **True.** 81. **True.** 82. **False.** The order is Red, Green, Blue (#RRGGBB). 83. **False.** It can mean 1000 or 1024 depending on context. 84. **True.** 85. **True.** 86. **True.** 87. **False.** A gigabyte is larger. 88. **False.** They were created for powers of 2. 89. **True.** 90. **True.** 91. **True.** 92. **True.** 93. **True.** 94. **True.** 95. **True.** 96. **False.** The minimum value is -128. 97. **True.** (Positive 127 is 01111111. Flipped is 10000000. Add 1 is 10000001). 98. **True.** 99. **True.** 100. **False.** Computers use binary at the hardware level. Hexadecimal is an abstraction for humans.