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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an XOR gate?

A
  • Outputs true if the inputs are different.
  • Known as exclusive OR gate.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is an XNOR gate?

A
  • Outputs true if the inputs are the same.
  • Known as exclusive NOR gate.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a logic circuit?

A
  • A physical implementation of Boolean functions using logic gates.
  • Used to perform computations in digital devices.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a half adder?

A
  • A digital circuit that adds two binary digits and produces a sum and a carry output.
  • Uses XOR and AND gates.
17
Q

What is a full adder?

A
  • A digital circuit that adds three binary digits (including carry from previous addition) and produces a sum and carry output.
  • Can be built using two half adders and an OR gate.
18
Q

What is a multiplexer?

A
  • A device that selects one of several input signals and forwards the selected input to a single output line.
  • Used to increase the efficiency of data handling.
19
Q

What is a demultiplexer?

A
  • A device that takes a single input signal and distributes it to one of several output lines.
  • Used to send data from one source to multiple destinations.
20
Q

What is a binary decoder?

A
  • A device that converts binary input data into a specific output.
  • Used in memory address decoding and other applications.
21
Q

What is a binary encoder?

A
  • A device that converts a specific input into binary code.
  • Used to reduce the number of input lines needed.
22
Q

What are the advantages of using Karnaugh maps (K-maps)?

A
  • Simplifies Boolean expressions to minimize the number of logic gates.
  • Provides a visual method to simplify complex Boolean functions.
23
Q

What is the difference between a latch and a flip-flop?

A
  • Latch: A simple memory device that operates with a level-triggered input.
  • Flip-flop: A more complex memory device that operates with an edge-triggered input.
24
Q

What is the purpose of using a shift register?

A
  • A sequential logic circuit used for storing and shifting data.
  • Moves data in a specific direction (left or right) with each clock pulse.
25
Q

What are the typical applications of Boolean algebra in computer science?

A
  • Design of digital circuits and logic gates.
  • Development of algorithms for data processing and decision-making.