- What is the difference between an AND gate and an OR gate?
- An AND gate gives 1 only when both inputs are 1. An OR gate gives 0 when both inputs are 0, otherwise it gives 1. A NOT gate has one input and gives the opposite value. Every other gate has two inputs only.
- How do NAND, NOR and XOR gates work?
- A NAND gate gives 0 when both inputs are 1, otherwise 1. A NOR gate gives 1 when both inputs are 0, otherwise 0. An XOR gate gives 1 only if the two inputs are different. A description must cover every combination of inputs, because "the opposite of AND" is not enough.
- How do you complete a truth table for a logic expression?
- Add a column in the working space for every bracket and every gate, and work from the innermost bracket outwards. Three inputs give eight rows, from 000 to 111. Invert the whole column last if the final operator is a NOT, and cross out any changed digit completely and write the new one beside it.
- How do you draw a logic circuit from a logic expression?
- Read the expression from the innermost brackets outwards. Draw one gate for each operator and feed its output into the next gate. Every NOT in the expression is its own NOT gate, so NOT A OR B is a NOT gate and an OR gate, not a NOR gate.
- How do you write a logic expression from a truth table?
- Find each row where the output is 1. Write one AND term for it, with NOT on every input that is 0 in that row. Join the terms with OR. Check first whether a short answer fits, because if the output is just NOT B, write that.
- Can (NOT R) OR (NOT M) be drawn as a single NOR gate?
- No. NOT R OR NOT M needs a NOT gate on each input, then an OR gate. Drawing it as a single NOR gate is a common error, and examiners reported that some answers replaced it this way. A vague statement such as "a NAND gate is the opposite of an AND gate" was also not enough.