Showing raw Markdown: the renderer could not load.
## Questions ### 1. Why do computers store information using only two states, written 0 and 1? *Objective: 1. Explain what a bit and a byte are and why computers use binary.* - A) Because humans can't read numbers with more than two digits. - B) Because telling two states apart (signal or no signal) is simple and reliable for electronic parts. - C) Because every number is made only of zeros and ones in mathematics. - D) Because early computers could only store numbers up to 1. ### 2. A byte is 8 bits. What does that tell you about the values it can hold? *Objective: 1. Explain what a bit and a byte are and why computers use binary.* - A) It can hold 8 different values, one per bit. - B) It can hold 256 different values, which are used for 0 to 255. - C) It can hold 255 different values, from 1 to 255. - D) It can hold 1,000 different values, like three decimal digits. ### 3. What is `00101101` in decimal? *Objective: 2. Convert numbers between decimal and binary (0 to 255).* - A) 41 - B) 45 - C) 53 - D) 77 ### 4. Which binary byte is the decimal number 150? *Objective: 2. Convert numbers between decimal and binary (0 to 255).* - A) `10010101` - B) `01101001` - C) `10010110` - D) `10011010` ### 5. What is the hex byte `A7` in binary? *Objective: 3. Convert numbers between binary and hexadecimal, and recognize hexadecimal in a MAC address.* - A) `10100111` - B) `01111010` - C) `10110111` - D) `10100101` ### 6. In the MAC address `00:00:5e:00:53:01`, what is the third byte, `5e`, in decimal? *Objective: 3. Convert numbers between binary and hexadecimal, and recognize hexadecimal in a MAC address.* - A) 5 - B) 14 - C) 80 - D) 94 ### 7. A colleague writes down the address `192.168.1.256`. What is wrong with it? *Objective: 4. Read an IPv4 address as four 8-bit numbers.* - A) Nothing: any number up to 999 is allowed in each part. - B) It has the wrong number of dots. - C) The last part, 256, doesn't fit in one byte, whose largest value is 255. - D) IPv4 addresses can't contain the number 168. ### 8. What is the first byte of the address `192.168.1.10` written in binary? *Objective: 4. Read an IPv4 address as four 8-bit numbers.* - A) `11000000` - B) `00001010` - C) `11000001` - D) `10101000` --- ## Answer key <details> <summary>Show answers</summary> | # | Answer | Explanation | |---|---|---| | 1 | B | Electronic parts only need to tell "signal" from "no signal", which stays reliable even when the signal is noisy. People can read longer numbers (A), and other number systems exist (C). | | 2 | B | Each of the 8 bits has 2 states, so there are 2 to the power of 8 = 256 patterns, used for 0 to 255. The count is 256, not 8 (A), and the values start at 0, not 1 (C). | | 3 | B | The columns with a 1 are 32, 8, 4 and 1, and 32 + 8 + 4 + 1 = 45. The other answers come from adding wrong columns (for example, 53 is `00110101`). | | 4 | C | 150 = 128 + 16 + 4 + 2, so the bits are `10010110`. `10010101` is 149 (A), `01101001` is 105 (B) and `10011010` is 154 (D). | | 5 | A | A = 10 = `1010` and 7 = `0111`, so `A7` is `10100111`. `01111010` swaps the two halves (B), and the others use a wrong group for A or 7. | | 6 | D | `5e` = 5 × 16 + 14 = 94, because e is 14 and the first hex digit is worth 16. 80 ignores the e (C), and 5 or 14 read only one digit (A, B). | | 7 | C | Each part of an IPv4 address is one byte, so it must be between 0 and 255. A dotted-decimal address has exactly three dots, and 168 is valid. | | 8 | A | 192 = 128 + 64, so the byte is `11000000`. `00001010` is the last byte, 10 (B), and `10101000` is 168, the second byte (D). | </details>