Chapter04 Answers at End
Chapter04 Answers at End
2. True or False? A gate is a device that accepts a single input signal and produces one or more output
signals.
3. True or False? A circuit is a combination of gates designed to accomplish a more complex logical
function.
4. True or False? A logic diagram and a truth table are equally powerful techniques for describing the
behavior of a circuit.
5. True or False? A NOT gate allows only one of its two input values to pass.
6. True or False? The inversion bubble of an AND gate causes its input to be reversed.
8. True or False? An OR gate produces a 0 output only if its two input values are 0.
9. True or False? The OR and XOR gates produce different outputs in only one case.
11. True or False? A NAND gate and a AND gate produce opposite output.
12. True or False? A NAND gate and a NOR gate produce opposite output.
13. True or False? A gate with three inputs has 8 possible input combinations.
15. True or False? A transistor is made of material that acts as a good insulator, such as rubber.
16. True or False? If an electrical signal is grounded, the electricity literally flows harmlessly to the
ground.
17. True or False? A NOT gate can be made from a single transistor.
18. True or False? In a sequential circuit, the output is determined solely by the input values.
19. True or False? Two different circuits cannot produce the same output given the same input.
20. True or False? Boolean algebra allows us to apply provable mathematical principles to the design of
circuits.
21. True or False? DeMorgan's law states that inverting the output of an AND gate is equivalent to
inverting the individual input signals and then passing them through an OR gate.
22. True or False? A circuit can be used to add two binary digits together and produce a carry bit.
23. True or False? A multiplexer produces multiple outputs for each input.
24. True or False? A circuit cannot be used as memory because input signals are lost as soon as they pass
through a gate.
25. True or False? A single integrated circuit can have more than 100,000 gates on it.
26. True or False? The central processing unit (CPU) of a computer is often a single integrated circuit.
27. Which of the following is a device that performs a basic operation on electrical signals?
A. logic symbol
B. truth table
C. gate
D. circuit
E. S-R latch
28. Which of the following lists all possible input combinations for a gate, and the corresponding output?
A. truth table
B. Boolean expression
C. logic diagram
D. circuit
E. S-R latch
29. The circle in the logic symbol of a NOT gate is known as what?
A. combinational circuit
B. sequential circuit
C. completion sphere
D. inversion bubble
E. NAND gate
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
A X
0 1
1 0
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
A B X
0 0 0
0 1 0
1 0 0
1 1 1
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
A B X
0 0 0
0 1 1
1 0 1
1 1 1
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
A B X
0 0 1
0 1 1
1 0 1
1 1 0
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
A B X
0 0 1
0 1 0
1 0 0
1 1 0
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
X = A'
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
X=A B
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
X=A+B
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
X=A B
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
X = (A B)'
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
X = (A + B)'
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
50. Which gate produces a 1 only if all its inputs are 1 and a 0 otherwise?
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
51. Which gate produces a 0 only if all its inputs are 0 and a 1 otherwise?
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
52. Which gate produces a 0 only if all its inputs are the same and a 1 otherwise?
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
53. Which gate produces a 0 if all its inputs are 1 and a 1 otherwise?
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
54. Which gate produces a 1 if all its inputs are 0 and a 0 otherwise?
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
55. How many possible input combinations exist for an OR gate with three inputs?
A. 2
B. 4
C. 8
D. 16
E. 32
56. Generally, how many possible input combinations exist for a gate with n inputs?
A. 2n
B. n + 1
C. 4n
D. 4n - 2
E. 2n
59. If the input to a transistor (its base signal) is low, what is its output?
A. binary 0
B. binary 1
C. 0 volts
D. 15 volts
E. ground
AB = BA
A. commutative
B. associative
C. distributive
D. identity
E. complement
F. DeMorgan's law
(AB)C = A(BC)
A. commutative
B. associative
C. distributive
D. identity
E. complement
F. DeMorgan's law
A. commutative
B. associative
C. distributive
D. identity
E. complement
F. DeMorgan's law
A1 = A
A. commutative
B. associative
C. distributive
D. identity
E. complement
F. DeMorgan's law
A(A') = 0
A. commutative
B. associative
C. distributive
D. identity
E. complement
F. DeMorgan's law
A. commutative
B. associative
C. distributive
D. identity
E. complement
F. DeMorgan's law
69. Which gate produces the sum portion of two binary digits in a half adder?
A. NOT
B. AND
C. OR
D. XOR
E. NAND
F. NOR
70. Which gate produces the carry portion of two binary digits in a half adder?
A. NOT
B. AND
C. OR
D. XOR
E. NAND
F. NOR
76. _______________ expressions can be used to describe the behavior of gates and circuits.
77. _______________ diagrams can be used to describe the behavior of gates and circuits.
78. _______________ tables can be used to describe the behavior of gates and circuits.
79. A _______________ defines the function of a gate by listing all possible input combinations for the
gate and the corresponding output.
81. The circle that's part of the logic diagram symbol for a NOT gate is called a(n) _______________
bubble.
82. A gate that accepts two input values has _______________ possible input combinations.
83. An _______________ gate produces an output of 1 only if both input values are 1.
84. An _______________ gate produces an output of 0 only if both input values are 0.
87. The OR and XOR gates produce different values only when both inputs are _______________.
88. The gate that produces the opposite results of an AND gate is called a _______________ gate.
89. A _______________ acts as either conducts or blocks the flow of electricity, based on an input value
90. A _______________ acts like a switch, even though it has no moving parts.
91. In a _______________ circuit, the input values explicitly determine the output.
92. In a _______________ circuit, the output is determined by the input as well as the existing state of the
circuit.
93. Two circuits are considered to be _______________ if they produce the same output for each input
value combination.
94. The equation A(B+C) = (AB)+(AC) represents the _______________ property (or law) of AND gates.
95. The equation (AB)' = A' + B' represents the _______________ property (or law) of AND gates.
96. A circuit that produces the sum of two binary digits, taking the carry bit into account, is called a(n)
_______________.
97. A _______________ is a circuit that selects a single output value from a set of inputs based on select
signals
101. What three notations can be used to describe the behavior of gates and circuits?
110. What is the relationship between the number of inputs a gate has and the size of the truth table that
describes it.
112. How many transistors does it take to create a NOT gate? A NAND gate? An AND gate?
113. Give the Boolean expression for the following circuit diagram.
114. Draw the truth table for the following circuit diagram.
115. Give the Boolean expression for the following circuit diagram.
116. Draw the truth table for the following circuit diagram.
117. Give the Boolean expression for the following circuit diagram.
118. Draw the truth table for the following circuit diagram.
119. Give the Boolean expression for the following circuit diagram.
120. Draw the truth table for the following circuit diagram.
121. Give the Boolean expression for the following circuit diagram.
122. Draw the truth table for the following circuit diagram.
123. Give the Boolean expression for the following circuit diagram.
124. Give the Boolean expression for the following circuit diagram.
125. Draw a circuit diagram for the following truth table.
A B AB A+B AB + (A+B)
0 0 0 1 1
0 1 0 1 1
1 0 0 1 1
1 1 1 0 1
A B A’ AB A’ (AB)
0 0 1 0 1
0 1 1 0 1
1 0 0 0 0
1 1 0 1 1
A B C A’ B C A’(B C)
0 0 0 1 0 0
0 0 1 1 1 1
0 1 0 1 1 1
0 1 1 1 0 0
1 0 0 0 0 0
1 0 1 0 1 0
1 1 0 0 1 0
1 1 1 0 0 0
128. Draw a circuit diagram for the following truth table.
Essay-type questions
134. Describe the three notations used to describe the behavior of gates and circuits.
139. How can a VLSI chip have over 100,000 gates on it, but still have a reasonably small number of pins?
140. Describe in your own words the issues related to conflict of interest.
141. Describe in your own words the issues related to intellectual property.
Answers
Answer: False
2. True or False? A gate is a device that accepts a single input signal and produces one or more output
signals.
Answer: False
3. True or False? A circuit is a combination of gates designed to accomplish a more complex logical
function.
Answer: True
4. True or False? A logic diagram and a truth table are equally powerful techniques for describing the
behavior of a circuit.
Answer: True
5. True or False? A NOT gate allows only one of its two input values to pass.
Answer: False
6. True or False? The inversion bubble of an AND gate causes its input to be reversed.
Answer: False
Answer: False
8. True or False? An OR gate produces a 0 output only if its two input values are 0.
Answer: True
9. True or False? The OR and XOR gates produce different outputs in only one case.
Answer: True
10. True or False? An OR gate is sometimes referred to as an inclusive OR.
Answer: True
11. True or False? A NAND gate and a AND gate produce opposite output.
Answer: True
12. True or False? A NAND gate and a NOR gate produce opposite output.
Answer: False
13. True or False? A gate with three inputs has 8 possible input combinations.
Answer: True
Answer: True
15. True or False? A transistor is made of material that acts as a good insulator, such as rubber.
Answer: False
16. True or False? If an electrical signal is grounded, the electricity literally flows harmlessly to the
ground.
Answer: True
17. True or False? A NOT gate can be made from a single transistor.
Answer: True
18. True or False? In a sequential circuit, the output is determined solely by the input values.
Answer: False
19. True or False? Two different circuits cannot produce the same output given the same input.
Answer: False
20. True or False? Boolean algebra allows us to apply provable mathematical principles to the design of
circuits.
Answer: True
21. True or False? DeMorgan's law states that inverting the output of an AND gate is equivalent to
inverting the individual input signals and then passing them through an OR gate.
Answer: True
22. True or False? A circuit can be used to add two binary digits together and produce a carry bit.
Answer: True
23. True or False? A multiplexer produces multiple outputs for each input.
Answer: False
24. True or False? A circuit cannot be used as memory because input signals are lost as soon as they pass
through a gate.
Answer: False
25. True or False? A single integrated circuit can have more than 100,000 gates on it.
Answer: True
26. True or False? The central processing unit (CPU) of a computer is often a single integrated circuit.
Answer: True
Multiple Choice
27. Which of the following is a device that performs a basic operation on electrical signals?
A. logic symbol
B. truth table
C. gate
D. circuit
E. S-R latch
Answer: C
28. Which of the following lists all possible input combinations for a gate, and the corresponding output?
A. truth table
B. Boolean expression
C. logic diagram
D. circuit
E. S-R latch
Answer: A
29. The circle in the logic symbol of a NOT gate is known as what?
A. combinational circuit
B. sequential circuit
C. completion sphere
D. inversion bubble
E. NAND gate
Answer: D
Answer: B
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: F
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: A
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: D
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: C
Answer: B
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: E
A X
0 1
1 0
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: F
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: A
A B X
0 0 0
0 1 1
1 0 1
1 1 1
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: D
A B X
0 0 0
0 1 1
1 0 1
1 1 0
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: C
41. Which gate does the following truth table represent?
A B X
0 0 1
0 1 1
1 0 1
1 1 0
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: B
A B X
0 0 1
0 1 0
1 0 0
1 1 0
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: E
X = A'
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: F
X=A B
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: A
X=A+B
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: D
X=A B
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: C
X = (A B)'
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: B
48. Which gate does the following Boolean expression represent?
X = (A + B)'
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: E
Answer: F
50. Which gate produces a 1 only if all its inputs are 1 and a 0 otherwise?
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: A
51. Which gate produces a 0 only if all its inputs are 0 and a 1 otherwise?
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: D
52. Which gate produces a 0 only if all its inputs are the same and a 1 otherwise?
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: C
53. Which gate produces a 0 if all its inputs are 1 and a 1 otherwise?
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: B
54. Which gate produces a 1 if all its inputs are 0 and a 0 otherwise?
A. AND
B. NAND
C. XOR
D. OR
E. NOR
F. NOT
Answer: E
55. How many possible input combinations exist for an OR gate with three inputs?
A. 2
B. 4
C. 8
D. 16
E. 32
Answer: C
56. Generally, how many possible input combinations exist for a gate with n inputs?
A. 2n
B. n + 1
C. 4n
D. 4n - 2
E. 2n
Answer: E
Answer: A
Answer: C
59. If the input to a transistor (its base signal) is low, what is its output?
A. binary 0
B. binary 1
C. 0 volts
D. 15 volts
E. ground
Answer: B
Answer: A
Answer: B
Answer: B
AB = BA
A. commutative
B. associative
C. distributive
D. identity
E. complement
F. DeMorgan's law
Answer: A
(AB)C = A(BC)
A. commutative
B. associative
C. distributive
D. identity
E. complement
F. DeMorgan's law
Answer: B
A. commutative
B. associative
C. distributive
D. identity
E. complement
F. DeMorgan's law
Answer: C
A1 = A
A. commutative
B. associative
C. distributive
D. identity
E. complement
F. DeMorgan's law
Answer: D
A(A') = 0
A. commutative
B. associative
C. distributive
D. identity
E. complement
F. DeMorgan's law
Answer: E
A. commutative
B. associative
C. distributive
D. identity
E. complement
F. DeMorgan's law
Answer: F
69. Which gate produces the sum portion of two binary digits in a half adder?
A. NOT
B. AND
C. OR
D. XOR
E. NAND
F. NOR
Answer: D
70. Which gate produces the carry portion of two binary digits in a half adder?
A. NOT
B. AND
C. OR
D. XOR
E. NAND
F. NOR
Answer: B
Answer: D
Answer: B
Answer: F
Answer: C
Fill-in-the-Blank
Answer: Gate
76. _______________ expressions can be used to describe the behavior of gates and circuits.
Answer: Boolean
77. _______________ diagrams can be used to describe the behavior of gates and circuits.
Answer: Logic
78. _______________ tables can be used to describe the behavior of gates and circuits.
Answer: Truth
79. A _______________ defines the function of a gate by listing all possible input combinations for the
gate and the corresponding output.
Answer: NOT
81. The circle that's part of the logic diagram symbol for a NOT gate is called a(n) _______________
bubble.
Answer: Inversion
82. A gate that accepts two input values has _______________ possible input combinations.
Answer: Four
83. An _______________ gate produces an output of 1 only if both input values are 1.
Answer: AND
84. An _______________ gate produces an output of 0 only if both input values are 0.
Answer: OR
Answer: XOR
Answer: Exclusive
87. The OR and XOR gates produce different values only when both inputs are _______________.
Answer: 1
88. The gate that produces the opposite results of an AND gate is called a _______________ gate.
Answer: NAND
89. A _______________ acts as either conducts or blocks the flow of electricity, based on an input value
Answer: Transistor
90. A _______________ acts like a switch, even though it has no moving parts.
Answer: Transistor
91. In a _______________ circuit, the input values explicitly determine the output.
Answer: Combinational
92. In a _______________ circuit, the output is determined by the input as well as the existing state of the
circuit.
Answer: Sequential
93. Two circuits are considered to be _______________ if they produce the same output for each input
value combination.
Answer: Equivalent
94. The equation A(B+C) = (AB)+(AC) represents the _______________ property (or law) of AND gates.
Answer: Distributive
95. The equation (AB)' = A' + B' represents the _______________ property (or law) of AND gates.
Answer: DeMorgan's
96. A circuit that produces the sum of two binary digits, taking the carry bit into account, is called a(n)
_______________.
Answer: Adder
97. A _______________ is a circuit that selects a single output value from a set of inputs based on select
signals
Answer: Multiplexer
Answer: Memory
Answer: Integrated
Short Answer
101. What three notations can be used to describe the behavior of gates and circuits?
Answer: The output of an AND gate is 1 only if both inputs are 1. A NAND gate produces the exact
opposite output.
Answer: The output of the two gates is identical except when both input values are 1, in which case an OR
gate produces a 1 but an exclusive OR produces a 0.
Answer:
Answer:
Answer:
107. Draw the truth table for an XOR gate.
Answer:
Answer:
Answer:
110. What is the relationship between the number of inputs a gate has and the size of the truth table that
describes it.
Answer: There are 2n possible input combinations for a gate with n inputs, so there are 2n rows in the truth
table that describes it.
Answer: A transistor is a device that acts like a switch, either allowing electricity to flow or blocking it,
depending on the voltage level of its input signal.
112. How many transistors does it take to create a NOT gate? A NAND gate? An AND gate?
Answer: It takes one transistor to make a NOT gate, two to make a NAND gate, and three to make an AND
gate.
113. Give the Boolean expression for the following circuit diagram.
Answer: (A B)'
114. Draw the truth table for the following circuit diagram.
Answer:
115. Give the Boolean expression for the following circuit diagram.
116. Draw the truth table for the following circuit diagram.
Answer:
117. Give the Boolean expression for the following circuit diagram.
Answer: (AB) + C
118. Draw the truth table for the following circuit diagram.
Answer:
119. Give the Boolean expression for the following circuit diagram.
Answer: (A+B)(B+C)
120. Draw the truth table for the following circuit diagram.
Answer:
121. Give the Boolean expression for the following circuit diagram.
Answer: A'B + (B+C)'
122. Draw the truth table for the following circuit diagram.
Answer:
123. Give the Boolean expression for the following circuit diagram.
124. Give the Boolean expression for the following circuit diagram.
Answer: (AB)' + (CD)'
A B AB A+B AB + (A+B)
0 0 0 1 1
0 1 0 1 1
1 0 0 1 1
1 1 1 0 1
Answer:
A B A’ AB A’ (AB)
0 0 1 0 1
0 1 1 0 1
1 0 0 0 0
1 1 0 1 1
Answer:
Answer:
Answer:
Answer:
Answer: A half adder s a circuit that computes the sum of two bits and produces the appropriate carry bit.
Answer: A multiplexer is a circuit that uses input control signals to determine which of several data input
lines is to be routed to the output.
Answer: An integrated circuit, or chip, is a piece of silicon on which multiple gates have been embedded.
Essay
134. Describe the three notations used to describe the behavior of gates and circuits.
Answer: Boolean expressions represent the behavior of a gate or circuit using equations with logical
operators. Based in Boolean algebra, these equations can be manipulated in formal, mathematical ways.
Logic diagrams are a graphical representation of a circuit. Using special symbols for each type of gate, a
circuit can be represented by connecting the output of one gate to the input of another. Truth tables list all
possible input combinations to a circuit and the corresponding output. Columns in a truth table might be
used to show the intermediate results of circuit processing.
Answer: An OR gate produces an output of 1 if either or both input values are 1. Therefore, an OR gate
produces an output of 0 only in one situation, when both input values are 0. An XOR gate, which stands for
exclusive OR, produces an output of 1 if either input is 1, but not if both inputs are 1 at the same time. So
an XOR gate produces identical output to an OR gate except in the case when both input values are 1. An
XOR gate produces an output 0 in two situations, when both input values are 0 and when both input values
are 1.
Answer: A transistor has an input line, an output line, a grounded emitter, and an electrical source. If the
input signal is high, the source is grounded and the output is low. If the input signal is low, the source is not
grounded and the output is high. Thus, a single transistor acts as a NOT gate, inversing it's input signal.
Using two transistors, its possible to construct NAND and NOR gates. Using a third transistor to reverse
the output of the NAND and NOR gates, its possible to construct AND and OR gates.
Answer: Two circuits are considered to be equivalent if they produce the same output for all possible input
combinations. That is, two different circuits, made up of different gates and connections, can be equivalent
in the function they perform. When designing a circuit, its often cost effective to minimize the number of
components that make up a circuit, as long as it produces the desired result.
Answer: A half adder is a circuit that produces two outputs, the sum bit and the carry bit. The two input
binary digits are passed through an XOR gate to produce the sum, and the same input bits are passed
through an AND gate to produce the carry. The extra digit is needed only when both inputs are 1. When
that occurs, the XOR gate produces a sum bit of zero and the AND gate produces a carry bit of 1. In all
other cases, the carry bit will be 0.
139. How can a VLSI chip have over 100,000 gates on it, but still have a reasonably small number of pins?
Answer: An SSI chip has only a few gates on it, and so it is reasonable to have pins corresponding to every
input and output value for each gate. But a VLSI chip, with over 100,000 gates, cannot have pins
corresponding to each gate. Instead, a VLSI chip is designed to contain a circuit made up of thousands of
gates, but using only a few input and output values. Instead of providing the functionality of several gates
on one chip, it provides the functionality of one complex circuit.
140. Describe in your own words the issues related to conflict of interest.
141. Describe in your own words the issues related to intellectual property.