Chapter 12. Software Development Flashcards
1
Q
What is Boolean algebra?
A
- A branch of algebra that deals with true/false values.
- Uses logical operators like AND, OR, NOT to manipulate Boolean values.
2
Q
What are the basic logical operators in Boolean algebra?
A
- AND: Returns true if both operands are true.
- OR: Returns true if at least one operand is true.
- NOT: Inverts the truth value of the operand.
3
Q
What is a truth table?
A
- A table used to show all possible input values and their corresponding output values for a logic gate or Boolean expression.
4
Q
What is the function of an AND gate?
A
- Outputs true only if both inputs are true.
- Represented by the symbol ‘.’ or multiplication in Boolean expressions.
5
Q
What is the function of an OR gate?
A
- Outputs true if at least one input is true.
- Represented by the symbol ‘+’ or addition in Boolean expressions.
6
Q
What is the function of a NOT gate?
A
- Outputs the inverse of the input value.
- Represented by the symbol ‘¬’ or a bar over the input in Boolean expressions.
7
Q
What is a NAND gate?
A
- A combination of an AND gate followed by a NOT gate.
- Outputs true unless both inputs are true.
8
Q
What is a NOR gate?
A
- A combination of an OR gate followed by a NOT gate.
- Outputs true only if both inputs are false.
9
Q
What is an XOR gate?
A
- Outputs true if the inputs are different.
- Known as exclusive OR gate.
10
Q
What is an XNOR gate?
A
- Outputs true if the inputs are the same.
- Known as exclusive NOR gate.
11
Q
What are De Morgan’s laws in Boolean algebra?
A
- Two transformation rules that simplify the negation of conjunctions and disjunctions.
- ¬(A AND B) = ¬A OR ¬B, ¬(A OR B) = ¬A AND ¬B.
12
Q
What is the importance of Boolean algebra in computing?
A
- Fundamental in designing and simplifying digital circuits.
- Used in creating and optimizing logic gates and circuits.
13
Q
What is a logic circuit?
A
- A physical implementation of Boolean functions using logic gates.
- Used to perform computations in digital devices.
14
Q
What is the difference between combinational and sequential logic circuits?
A
- Combinational logic circuits: Output depends only on current inputs.
- Sequential logic circuits: Output depends on current inputs and previous states.
15
Q
What is a flip-flop in digital electronics?
A
- A basic memory element in sequential logic circuits.
- Stores a single bit of data, used in registers and memory units.