Logic gates and Boolean logic
遊んで学ぼう
問題に答えてエネルギーを集めたら、釣りや探検を楽しもう。アカウント不要。
教育者の方へ: Logic gates and Boolean logic(Computer Science、Computer Systems)向けのすぐ使えるレッスンスライド, 復習ノート — レッスンで使うか、学習者がライブゲームとして遊ぶインタラクティブなクラス活動としてトピックを実施できます。
レッスンノート
Boolean logic
- Boolean logic works with values True (1) and False (0). Computer circuits are built from logic gates that process binary inputs.
The main gates
- NOT (inverter): output is the opposite of the input. NOT 0 = 1; NOT 1 = 0.
- AND: output is 1 only if both inputs are 1.
- OR: output is 1 if at least one input is 1.
- (Some courses also use XOR: output 1 if the inputs are different; and NAND, NOR.)
AND requires both inputs
Truth tables
- A truth table lists all input combinations and the output. For two inputs there are 4 rows (00, 01, 10, 11).
- AND: 0 0 0 1 (for 00, 01, 10, 11). OR: 0 1 1 1. XOR: 0 1 1 0.
All four input combinations
Combining gates
- Gates can be combined into logic diagrams. Q = (A AND B) OR C. For three inputs there are 8 rows.
- Write a Boolean expression (A AND B, NOT A) and work out each output step by step.
Q = (A AND B) OR C
Uses
- Logic gates are the basis of processors, memory, alarms and decision circuits, e.g. a car alarm sounding if (door open AND ignition off).
スライド
練習問題
無料プレビュー — 34問中8問。すべて見るには登録を。
1.What is Boolean logic?
Easy- Alogic using True and False values
- Blogic using text
- Clogic using colour
- Dlogic using hardware
2.What does a NOT gate do?
Easy- Ainverts the input
- Badds inputs
- Cchooses the larger
- Dstores a bit
3.What is the output of OR with inputs 0 and 0?
Easy- A0
- B1
- C10
- Dundefined
4.What is the output of OR with inputs 1 and 0?
Easy- A1
- B0
- C10
- Dundefined
5.What is the output of AND with inputs 1 and 1?
Easy- A1
- B0
- C2
- D11
6.What is NOT 1?
Easy- A0
- B1
- C2
- Dundefined
7.What is the output of XOR with inputs 1 and 1?
Easy- A0
- B1
- C2
- Dundefined
8.What is the output of XOR with inputs 1 and 0?
Easy- A1
- B0
- C2
- Dundefined
過去問
このトピックの過去問練習は近日公開。
近日公開
