Number systems practice

Bitwise operations worksheets

Practice AND, OR, XOR, NAND, NOR and NXOR with four-bit or eight-bit numbers. Choose operators, generate 16 problems and print width-correct answers.

Ready-made English PDF · fixed settings

Customization below makes a separate PDF.

Fixed English ready-made files. Custom settings below apply only to the configured PDF.

Ready to print

Start with a ready-made worksheet

Apply the named operator to each column without carrying. Keep every answer at the chosen width, including leading zeroes.

Download the practice pages alone, or include a separate answer key or teacher model. Longer activities may use more than one page.

Customize this worksheet

Paper sizes and printing help · More number systems activities

A fixed width is part of the problem

Every input and answer has four or eight bits. NAND, NOR and NXOR complement only those positions. Leading zeroes remain visible so you can compare one column at a time.

The preview and downloaded PDF use the same questions. Include answers to append a separate key, or download just the student worksheet.

Learning objective

What this activity builds

Apply a logical rule independently to each matching pair of binary digits.

Worked example

Find 1010 XOR 1100 using four bits.

0110.

XOR returns 1 where the two input bits differ and 0 where they match. The first output bit is zero and must remain visible.

Teaching notes

Make the practice count

  • Start with one operator and its four-row truth table.
  • Compare one bit position at a time.
  • Find AND, OR or XOR before taking its width-bounded complement.
  • NXOR, also called XNOR, returns 1 when the two bits agree.

Make it yours

Customize the practice

Choose your options, update the preview, then download the exact same pages.

Choose a range and operation profile. Every worksheet contains 16 reproducible tasks with a separate answer view.

Worksheet settings

Operators
Page note and reproducible seed

The same settings and seed make the same questions. Shared links include your page note; leave personal information out. Notes use the selected language’s supported characters; English accepts basic Latin text.

Configured PDF · Bitwise Operations · US Letter

Preview ready. Download includes these exact pages.

1 student page
Enlarged pages scroll. PDF size stays the same.
Math SheetNameScore/ 16TeacherDateBitwise OperationsApply each operator using the stated fixed width.1.1010XOR00014 bit2.1100NOR10114 bit3.1100NXOR10004 bit4.0111XOR10014 bit5.1111NXOR10114 bit6.0000XOR10104 bit7.0101NAND11014 bit8.0101AND10104 bit9.1101NOR10014 bit10.1110OR10014 bit11.1111NAND11104 bit12.0101OR01014 bit13.0111NAND10004 bit14.1010AND10004 bit15.0101AND00004 bit16.1101OR11004 bitmath-sheet.comPage 1 / 1

A useful next step

Related activities

First page preview: Decimal and binary conversion worksheets

Number systems

Decimal and binary conversion worksheets

Convert between decimal and binary with 16 questions, four number ranges and a separate answer key. Customize the worksheet and download a Letter or A4 PDF.

Preview and download
First page preview: Binary addition and subtraction worksheets

Number systems

Binary addition and subtraction worksheets

Print 16 binary arithmetic problems with addition, subtraction or a balanced mix. Choose four operand ranges and include a separate answer key.

Preview and download
First page preview: Decimal and hexadecimal conversion worksheets

Number systems

Decimal and hexadecimal conversion worksheets

Convert decimal and hexadecimal numbers with uppercase A–F, two ranges and 16 questions. Print the worksheet and a separate answer key in Letter or A4.

Preview and download