Skip to content

Cambridge AS & A Level Computer Science

4.3Bit manipulation

Bit manipulation in Cambridge AS & A Level Computer Science: what the syllabus expects you to know, the learning objectives and how to practise.
Subtopic23 practice questions1 lesson

Learning objectives

What the syllabus expects you to be able to do.

  1. 4.3.1Perform logical, arithmetic and cyclic binary shifts.
  2. 4.3.2Use bitwise AND, OR and XOR with masks to test and set bits, including to monitor and control a device.

Lessons

  • Bit manipulation: shifts, masks and bitwise operations

    55 min

    Full access

Join to read every lesson, or see what Full access includes.

Sample question

A sample question on this topic. Answer it, check it, then read the worked answer.

Bit manipulation: sample question

1 mark

Which bitwise operation is used with a mask to set a chosen bit to 1 without changing the other bits?

Choose one answer

Turn Bit manipulation into a strength.

Practise with instant marking, see your mastery grow and get a study plan built around your exam date.