Back to Topic 1.2 — Data representation and logic
1.2.3Computer Science SL5 flashcards

Logic gates

Practice Flashcards

Flip to reveal answers
Card 1 of 51.2.3
1.2.3
Question

What is a logic gate?

Click to reveal answer

Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.

All 5 Flashcards — Logic gates

Sign up free to track progress and get spaced-repetition review schedules.

Card 1definition

Question

What is a logic gate?

Answer

A component that takes one or two bits in and gives one bit out, always the same way for the same inputs. Gates wired together are what a CPU is physically built from.

Card 2definition

Question

When does each basic gate output 1?

Answer

AND: only when both inputs are 1. OR: when at least one input is 1. NOT: when the single input is 0. XOR: when the two inputs are different.

Card 3concept

Question

What does a circle on a gate's output mean?

Answer

Invert the output. AND with a circle is NAND, OR with a circle is NOR, XOR with a circle is XNOR — each is the original table with every output flipped.

Card 4comparison

Question

What is the difference between OR and XOR?

Answer

When both inputs are 1, OR gives 1 but XOR gives 0. XOR means the inputs are different, so it rules out the both-on case. A rule saying 'one or the other but not both' is XOR.

Card 5example

Question

Give a real use for AND and for OR.

Answer

AND: a microwave runs only if the door is closed and the timer is running — the rule says 'both'. OR: a car alarm sounds if any one of several doors opens — the rule says 'any'.

Track your progress with spaced repetition

Sign up free — Aimnova tells you exactly which cards to review and when, so you remember everything before your IB exam.

Start Free
IB Computer Science Logic gates Flashcards | 1.2.3 | Aimnova