9618/11/O/N/25 question 4: worked solution (October/November 2025, paper 11)
Show as plain textHide plain text
Cambridge AS Level Computer Science 9618 · 4.3 Bit manipulation Worked solution from the Processor Fundamentals Paper 1 Theory Fundamentals booklet, Part 3 of 3. Q38 9618/11/O/N/25 original Q4 Structured · 4 marks Worked solution (a) Compare the two patterns: 00011110 has moved two places left to give 01111000. LSL #2 LSL #2 [1] (b) &12 is 00010010. XOR gives 1 where the bits are different. 11100011 XOR 00010010 = 11110001 [1] (c) #63 is 00111111. AND keeps a 1 only where both bits are 1. 11100011 AND 00111111 = 00100011 [1] (d) Address 100 holds 00110011. OR gives 1 where either bit is 1. 11100011 OR 00110011 = 11110011 [1] KEY IDEA AND keeps matching 1s, OR gives 1 if either is 1, XOR gives 1 if the bits differ. TOTAL 4 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by MAK CS. Tap the picture to open it on YouTube.