## Question 1 What is the correct output if the following value is given as input? Input = 39 ### Options 1. 24 Correct The binary equivalent of 39 is 100111. The binary complement of 39 is 11000. When we convert it to a decimal, we get 24. ---------------------------- 2. 39 Incorrect ---------------------------- 3. 27 Incorrect ---------------------------- --------------------------------------------- ## Question 2 What is the correct output if the following value is given as input? Input = 150 ### Options 1. 135 Incorrect ---------------------------- 2. 120 Incorrect ---------------------------- 3. 105 Correct The binary equivalent of 150 is 10010110. The binary complement of 150 is 01101001. When we convert it to a decimal, we get 105. ---------------------------- --------------------------------------------- ## Question 3 What is the correct output if the following value is given as input? Input = 293 ### Options 1. 218 Correct The binary equivalent of 293 is 100100101. The binary complement of 293 is 011011010. When we convert it to a decimal, we get 218. ---------------------------- 2. 315 Incorrect ---------------------------- 3. 248 Incorrect ---------------------------- --------------------------------------------- ## Question 4 What is the binary complement of 100101101? ### Options 1. 011010010 Correct The binary complement of 100101101 is 011010010 after flipping each of the bits. ---------------------------- 2. 011011110 Incorrect ---------------------------- 3. 011100010 Incorrect ---------------------------- --------------------------------------------- ## Question 5 What is the binary complement of 1000110111? ### Options 1. 0111001111 Incorrect ---------------------------- 2. 0111001000 Correct The binary complement of 1000110111 is 0111001000 after flipping each of the bits. ---------------------------- 3. 0111110010 Incorrect ---------------------------- --------------------------------------------- ## Question 6 What is the resulting bits set after taking the $XOR$ of 10011011011 with 11111111111? ### Options 1. 11111111011 Incorrect ---------------------------- 2. 011001001 Incorrect ---------------------------- 3. 01100100100 Correct The $XOR$ operation returns 1 when two input bits are different and returns 0 when they are the same. Therefore, with an all 1s bits set, the result is flipping each of the bits in 10011011011. ---------------------------- ---------------------------------------------