boolean logic
使用闪卡高效复习COMPUTER-SCIENCE科目知识点
共计闪卡
40张
10 boolean logic
闪卡自测
What is Boolean logic?
所有闪卡
闪卡 1
问题
What is Boolean logic?
查看答案
答案
Boolean logic is a system used in computer science and electronics to make logical decisions, where operators are either TRUE or FALSE (often represented as 1 or 0).
闪卡 2
问题
Define the term logic gate.
查看答案
答案
A logic gate is a visual way of representing a Boolean expression.
闪卡 3
问题
True or False? AND gates return TRUE only if both inputs are TRUE.
查看答案
答案
True. AND gates return TRUE only if both inputs are TRUE.
闪卡 4
问题
Describe the OR gate in Boolean logic?
查看答案
答案
OR returns TRUE if either input is TRUE.
闪卡 5
问题
State the meaning of NOT in Boolean logic.
查看答案
答案
NOT reverses the input value.
闪卡 6
问题
What is the function of XOR in Boolean logic?
查看答案
答案
XOR (exclusive OR) returns TRUE if either input is TRUE but NOT both.
闪卡 7
问题
What gate is this?
查看答案
答案
NAND returns TRUE if both inputs are NOT true.
闪卡 8
问题
What gate is this?
查看答案
答案
NOR returns TRUE if both inputs are FALSE.
闪卡 9
问题
True or False? OR gates return TRUE if both inputs are FALSE.
查看答案
答案
False. OR gates return FALSE if both inputs are FALSE.
闪卡 10
问题
What is the symbol used for AND gates?
查看答案
答案
闪卡 11
问题
What is a logic circuit?
查看答案
答案
A logic circuit performs logical operations on binary information.
闪卡 12
问题
True or False? In the exam, logic circuits can have unlimited inputs and outputs.
查看答案
答案
False. In the exam, logic circuits are limited to a maximum of three inputs and one output.
闪卡 13
问题
Define Boolean expression.
查看答案
答案
A statement that can be evaluated to either true or false.
闪卡 14
问题
What are brackets used for in Boolean expressions?
查看答案
答案
Brackets are used to clarify the order of operations in Boolean expressions.
闪卡 15
问题
True or False? In a logic diagram, inputs are typically represented by letters.
查看答案
答案
True. In a logic diagram, inputs are typically represented by letters.
闪卡 16
问题
Define logic diagram.
查看答案
答案
A logic diagram is a visual representation of combinations of Boolean operators within a logic circuit.
闪卡 17
问题
Draw the logic diagram for the Boolean expression P = (A AND B) OR C
查看答案
答案
闪卡 18
问题
Draw the logic diagram for the Boolean expression P = (A XOR B) AND (NOT C)
查看答案
答案
闪卡 19
问题
Draw the logic diagram for the Boolean expression P = NOT(C AND (A OR B))
查看答案
答案
闪卡 20
问题
Draw the logic diagram for the Boolean expression P = (A AND B) OR (NOT C)
查看答案
答案
闪卡 21
问题
What is a truth table?
查看答案
答案
A truth table is a tool used in logic and computer science to visualise the results of Boolean expressions.
闪卡 22
问题
True or False? Truth tables show only the inputs of a Boolean expression.
查看答案
答案
False. Truth tables represent all possible inputs and the associated outputs for a given Boolean expression.
闪卡 23
问题
How many rows are needed in a truth table with 3 inputs?
查看答案
答案
A truth table with 3 inputs needs 8 rows (2^3).
闪卡 24
问题
What is the output of an AND gate when both inputs are 1?
查看答案
答案
The output of an AND gate when both inputs are 1 is 1.
闪卡 25
问题
True or False? In a NOR gate, the output is 1 when both inputs are 0.
查看答案
答案
True. In a NOR gate, the output is 1 when both inputs are 0.
闪卡 26
问题
What is the output of an XOR gate when both inputs are 1?
查看答案
答案
The output of an XOR gate when both inputs are 1 is 0.
闪卡 27
问题
How do you determine the number of rows in a truth table?
查看答案
答案
The number of rows in a truth table is determined by 2^(number of inputs).
闪卡 28
问题
What are the missing inputs in the truth table?
查看答案
答案
闪卡 29
问题
What is the output of a NOT gate when the input is 0?
查看答案
答案
The output of a NOT gate when the input is 0 is 1.
闪卡 30
问题
Draw a truth table for the Boolean expression P = (A AND B) AND NOT C
查看答案
答案
闪卡 31
问题
What is a logic expression?
查看答案
答案
A logic expression is a way of expressing a logic gate or logic circuit as an equation.
闪卡 32
问题
True or False? In a logic expression, the output appears on the right of the equals sign.
查看答案
答案
False. In a logic expression, the output appears on the left of the equals sign.
闪卡 33
问题
State the logic expression for a NOT gate where A is the input and Z is the output.
查看答案
答案
Z = NOT A.
闪卡 34
问题
True or False. ((NOT A) OR B) NAND C = P is a valid logic expression.
查看答案
答案
False. The correct logic expression is P = ((NOT A) OR B) NAND C
闪卡 35
问题
True or False? The logic expression for an OR gate is Z = A NOR B.
查看答案
答案
False. The logic expression for an OR gate is Z = A OR B.
闪卡 36
问题
State the logic expression for this logic diagram.
查看答案
答案
P = (A XOR B) AND (NOT C)
闪卡 37
问题
State the logic expression for this logic diagram.
查看答案
答案
P = NOT((A OR B) AND C) OR P = NOT(C AND (A OR B))
闪卡 38
问题
True or False? Logic expressions can represent circuits with multiple gates.
查看答案
答案
True. Logic expressions can represent circuits with multiple gates.
闪卡 39
问题
State the logic expression for this logic diagram.
查看答案
答案
P = (A AND B) OR (NOT C)
闪卡 40
问题
How are complex logic circuits expressed as logic expressions?
查看答案
答案
Complex logic circuits are expressed as logic expressions by combining multiple operations using brackets to show the order of operations.