Worksheet generator
A printable set of digital logic questions with an answer key. The sheet is rebuilt from the number in the address, so sharing the link gives everyone the same questions, and nothing is stored anywhere.
Print with the key off for the class and on for yourself. The two links differ by a code tied to this sheet, so handing out the blank one does not hand out the answers. It only stops the obvious guess, though: the marking happens in the browser, so it is not a lock.
Digital logic worksheet
Which expression does this circuit implement?
- A a ∧ b ∨ ¬c
- B b ∧ ¬a ∧ c
- C b ∧ c ∨ c ∧ a
- D (c ∨ a) ∧ ¬b
What does this circuit output when b = 1, c = 1?
- A 0
- B 1
What does an AND gate output when its inputs are 1 and 1?
- A 0
- B 1
Which gate has this truth table?
a b Q 0 0 0 0 1 1 1 0 1 1 1 0 - A AND
- B XNOR
- C XOR
- D NOR
What is the output when a = 0, b = 0?
b ∧ (¬a ∨ ¬b)
- A 0
- B 1
Which expression is equivalent to this one?
¬c ∨ b ∧ a
- A ¬b ∨ c
- B ¬c ∨ a ∧ b
- C b
- D a
In how many of the 8 rows is this expression true?
a ∧ b ∧ ¬c
- A 1
- B 2
- C 0
- D 3
Which expression does this circuit implement?
- A (a ∨ b) ∧ (b ∨ c)
- B b ∨ c ∨ ¬a
- C (¬a ∨ c) ∧ a
- D ¬a ∧ c ∨ a
What does this circuit output when a = 1, b = 1, c = 1?
- A 0
- B 1
What does an XOR gate output when its inputs are 1 and 1?
- A 0
- B 1
Sheet 1 · generated at logicgates.org/worksheet · free to copy and use
How it works without an account
There is no database behind this, and no sign-up. The questions come from the sheet number in the address, so the number is the worksheet.
- Same number, same sheet. Anyone opening the link rebuilds question for question what you saw, in the same order, on any device.
- Different number, different sheet. Hand out several versions of equal difficulty and still mark them all from their own links.
- The key is part of the address. One link gives the blank sheet, the same link with the key switched on gives the marked one.
- Nothing is collected. No accounts, no class codes, no tracking, and nothing of yours leaves the browser.
Prefer questions one at a time with instant marking? That is the practice page, which uses the same generator.
Questions
How do I give the same worksheet to a whole class?
Share the link. The sheet is rebuilt from the number in the address, so everyone who opens it sees exactly the same questions in the same order. Nothing is stored on a server, and there is no account or class code to set up.
How do I get the answers?
Tick "show the answer key" and the correct letter and a short explanation appear under each question. The key link carries a short code that belongs to that sheet, so the blank link you hand out stays blank and cannot be turned into the marked one by editing the address. It is not a lock: everything runs in the browser, so a determined student can still dig the answers out of the page.
Can I get a different set of questions?
Press "new sheet" for another random set, or edit the number in the address bar directly. Each number gives a different worksheet, and the same number always gives the same one, so you can hand out several versions of the same difficulty and still mark them.
Can I use these in class?
Yes, freely. The questions are generated, not copied from anywhere, and the site is open source under Apache 2.0. No attribution is required, though a link back is always welcome.