Let F(P,Q)=((NOT P) OR Q) XOR ((NOT P) AND Q). Identify equivalent expressions: A NOT(P XOR Q); B P XOR Q; C (NOT P) XOR Q; D (NOT P) XOR (NOT Q).
Select all that apply
Answer & solution
Official answer: A, C
Givens and goal
Let F(P,Q)=((NOT P) OR Q) XOR ((NOT P) AND Q). Identify equivalent expressions: A NOT(P XOR Q); B P XOR Q; C (NOT P) XOR Q; D (NOT P) XOR (NOT Q).
Approach
Rename the two repeated inputs and compare OR XOR AND with the definition of exclusive OR.
Step-by-step solution
1. Let x=NOT P and y=Q. The given expression becomes (x OR y) XOR (x AND y). 2. If both x and y are zero, both inner expressions are zero and the result is zero. If exactly one is one, the OR is one and the AND zero, so the result is one. If both are one, both inner expressions are one and the result is zero. Thus the expression is x XOR y. 3. Substituting back gives (NOT P) XOR Q, exactly option C. Complementing one XOR input complements the XOR result, so this is also NOT(P XOR Q), option A. 4. B is P XOR Q, the opposite function. D complements both XOR inputs and therefore equals P XOR Q as well, so neither is equivalent to the given expression.
Truth-table check: For (P,Q)=00,01,10,11, the output is respectively 1,0,0,1. This is XNOR of P and Q.
Visual check: Option A's bar covers the whole XOR expression; C complements P only; D complements each input separately. Those distinctions were confirmed in the rendered source.
Explicit truth table
P Q | NOT P OR Q | NOT P AND Q | F
0 0 | 1 | 0 | 1
0 1 | 1 | 1 | 0
1 0 | 0 | 0 | 0
1 1 | 1 | 0 | 1
The first two intermediate columns distinguish OR from AND; XOR of equal bits is zero and XOR of unequal bits is one. Matching the final column, rather than just manipulating complement symbols visually, verifies both selected forms.
X and Y are 8-bit sign-magnitude words 10110100 and 01001100. Which results cannot be represented as an 8-bit sign-magnitude Z: A X+Y; B X−Y; C −X+Y; D −X−Y?
Select all that apply
Answer & solution
Official answer: B, C
Step through it (8 steps)
Givens and goal
X and Y are 8-bit sign-magnitude words 10110100 and 01001100. Which results cannot be represented as an 8-bit sign-magnitude Z: A X+Y; B X−Y; C −X+Y; D −X−Y?
Approach
Decode sign and magnitude separately, calculate the mathematical result of each operation, and compare with the representable interval.
Step-by-step solution
1. One bit is the sign and seven bits hold the magnitude. The largest magnitude is 27−1=127, so representable values lie from −127 to +127. There are separate encodings of zero; there is no −128 value. 2. X has sign 1 and magnitude 0110100₂=32+16+4=52, so X=−52. Y has sign 0 and magnitude 1001100₂=64+8+4=76, so Y=+76. 3. A gives X+Y=−52+76=24, which is representable. B gives X−Y=−52−76=−128, below the minimum, so it overflows. 4. C gives −X+Y=52+76=128, above the maximum, so it overflows. D gives −X−Y=52−76=−24, which is representable. 5. Select B and C. The raw bit patterns must not be interpreted as two’s-complement values: that different representation would assign a different value to X and a different representable lower bound.
A synchronous 2-bit counter uses D flip-flops. With P=0 it increments, saturating at 11; with P=1 it decrements, saturating at 00. Find formulas for D₁,D₀ from the displayed next-state table. For current states 00,01,10,11, the next states are 01,10,11,11 when P=0 and 00,00,01,10 when P=1.
Your answer
Answer & solution
Official answer: B
Givens and goal
A synchronous 2-bit counter uses D flip-flops. With P=0 it increments, saturating at 11; with P=1 it decrements, saturating at 00. Find formulas for D₁,D₀ from the displayed next-state table. For current states 00,01,10,11, the next states are 01,10,11,11 when P=0 and 00,00,01,10 when P=1.
Approach
Use D=next-state for each flip-flop, enumerate the minterms, and combine adjacent rows that differ in one Boolean variable.
Step-by-step solution
1. A D flip-flop takes its next state from its D input. Thus D1 and D0 must equal the corresponding next-state bits in all eight input/current-state rows. 2. Use variable order (P,Q1,Q0). The rows where D1=1 have binary indices 1,2,3,7. Adjacent pairs (1,3), (2,3) and (3,7) yield the implicants (NOT P)Q0, (NOT P)Q1 and Q1Q0. Therefore D1=(NOT P)Q1 OR (NOT P)Q0 OR Q1Q0. 3. The rows where D0=1 have indices 0,2,3,6. Adjacent pairs (0,2), (2,3) and (2,6) yield (NOT P)(NOT Q0), (NOT P)Q1 and Q1(NOT Q0). Therefore D0=(NOT P)(NOT Q0) OR (NOT P)Q1 OR Q1(NOT Q0). 4. These two expressions are the pair in B. Each of the other offered pairs fails at least one row: A gives the wrong D0 at 000; C gives the wrong D1 at 000; D gives the wrong D1 at 100.
Computational check: Evaluated B on all eight assignments and compared the resulting two-bit value with min(3,current+1) for P=0 and max(0,current−1) for P=1. All eight matched.
Visual check: Inspected both the full next-state table and each complement bar in the four expression pairs.
Complete transition check, written as P: current→next:
The last increment case and first decrement case are saturation cases: they hold at the boundary rather than wrapping to 00 or 11. Ignoring those two rows would derive an ordinary modulo-4 counter instead of the required saturating one.
For variable order (P,Q,R,S), F is 1 on minterms {1,2,3,4,5,7,10,12,13,14}. All options include (NOT P)S+Q(NOT R). Their remaining two terms are A: (NOT P)(NOT Q)R and (NOT Q)R(NOT S); B: (NOT P)(NOT Q)R and PR(NOT S); C: PQ(NOT S) and PR(NOT S); D: PQ(NOT S) and (NOT Q)R(NOT S). Find the minimal SOP options.
Select all that apply
Answer & solution
Official answer: B, D
Step through it (18 steps)
Givens and goal
For variable order (P,Q,R,S), F is 1 on minterms {1,2,3,4,5,7,10,12,13,14}. All options include (NOT P)S+Q(NOT R). Their remaining two terms are A: (NOT P)(NOT Q)R and (NOT Q)R(NOT S); B: (NOT P)(NOT Q)R and PR(NOT S); C: PQ(NOT S) and PR(NOT S); D: PQ(NOT S) and (NOT Q)R(NOT S). Find the minimal SOP options.
Approach
List maximal valid implicants, identify essential terms, and check coverage of the residual minterms.
Step-by-step solution
1. There are exactly six prime implicants. In bit-pattern notation using variable order (P,Q,R,S), where a dash is a don't-care coordinate, they are:
2. The first two prime implicants are essential: minterm 1 can only be covered by 0--1, and minterm 4 only by -10-. Together they leave 2,10,14 uncovered. 3. No single remaining prime implicant covers all three residual minterms. Therefore at least two further terms are required, for a minimum of four product terms overall. Each additional prime has three literals, so the minimum covers have ten literals in total. 4. Option B adds 001- and 1-10: these cover 2,3 and 10,14, completing the function. Option D adds 11-0 and -010: these cover 12,14 and 2,10, also completing it. Both achieve the four-term, ten-literal minimum. 5. Option A leaves minterm 14 uncovered. Option C leaves minterm 2 uncovered. Hence neither even represents the target function.
Completeness check: Exhaustively enumerated all 81 four-variable cubes, retained cubes containing no zero minterm, and extracted the six maximal cubes above. Enumerating prime-implicant covers found minimum size four. There is a third minimum cover using the two essential implicants plus -010 and 1-10; it is not one of the offered choices. The answer does not claim that B and D are the only possible minimal expressions.
Visual check: Confirmed the minterm list and all complement bars in options A–D directly from rendered page 36.
Residual coverage table after choosing the essential terms:
Additional prime term Covers residual minterms
(NOT P)(NOT Q)R 2
(NOT Q)R(NOT S) 2,10
PR(NOT S) 10,14
PQ(NOT S) 14
The table explains both validity and minimality: one extra term cannot cover all three residual minterms, while either option B’s pair or option D’s pair can. Expanding a non-prime term to a prime can only improve coverage without covering a zero, so restricting this minimum-cover analysis to prime implicants is sufficient.
Here + is OR, · is AND, and prime is NOT. Which is not a Boolean identity? A a+b=b+a; B a·a′=1; C a+a′=1; D a·b=b·a.
Your answer
Answer & solution
Official answer: B
Givens and goal
Here + is OR, · is AND, and prime is NOT. Which is not a Boolean identity? A a+b=b+a; B a·a′=1; C a+a′=1; D a·b=b·a.
Approach
Test complement laws on the two possible Boolean values.
Step-by-step solution
1. If a=0, then a′=1 and a·a′=0·1=0. If a=1, then a′=0 and a·a′=1·0=0. Thus a·a′ is always 0, never 1. 2. Consequently the equality in B is false. Its correct form is a·a′=0, the AND complement law. 3. For the same two cases, a+a′ is 0+1 or 1+0, both 1. C is therefore the valid OR complement law. 4. A and D are the commutative laws for OR and AND; swapping operands does not alter their truth tables. Answer B. Boolean + is logical OR here, not ordinary integer addition.
Use 4-bit two’s-complement integers N1=1011, N2=1101, N3=1010, N4=1001. Which operations overflow? A N1+N2; B N2+N3; C N3−N4; D N1+N4.
Select all that apply
Answer & solution
Official answer: B, D
Step through it (4 options)
Givens and goal
Use 4-bit two’s-complement integers N1=1011, N2=1101, N3=1010, N4=1001. Which operations overflow? A N1+N2; B N2+N3; C N3−N4; D N1+N4.
Approach
Convert operands to signed values and compare exact results with the representable interval.
Step-by-step solution
1. Four-bit two’s complement represents −8 through 7. A bit pattern with leading 1 has signed value equal to its unsigned value minus 16. Thus N1=11−16=−5, N2=−3, N3=−6, N4=−7. 2. A gives −5+(−3)=−8, exactly the lower endpoint and therefore representable as 1000. Merely having a carry out does not establish signed overflow. 3. B gives −3+(−6)=−9, below −8. The retained four bits would be 0111, a positive 7, so signed overflow occurs. C gives −6−(−7)=1, represented by 0001, so it is safe. 4. D gives −5+(−7)=−12, also below the range. Its wrapped pattern is 0100, positive 4. Therefore B and D overflow. 5. For addition of same-sign operands, a changed result sign is a convenient equivalent test, but checking the exact mathematical result also handles the subtraction correctly.
With A the most significant bit and D the least significant, F(A,B,C,D)=Σm(0,1,2,3,8,9,10,11). Choose minimal SOP: A A′+B′+C′+D′; B B′; C A′B′+AB; D A′.
Your answer
Answer & solution
Official answer: B
Step through it (9 steps)
Givens and goal
With A the most significant bit and D the least significant, F(A,B,C,D)=Σm(0,1,2,3,8,9,10,11). Choose minimal SOP: A A′+B′+C′+D′; B B′; C A′B′+AB; D A′.
Approach
Find which input bit is fixed across exactly the listed minterms.
Step-by-step solution
1. Minterms 0,1,2,3 are binary 0000,0001,0010,0011. They have A=0,B=0 while C,D take all four combinations, so together they give A′B′. 2. Minterms 8,9,10,11 are 1000,1001,1010,1011. They have A=1,B=0 while C,D again vary freely, giving AB′. 3. Combine the groups: F=A′B′+AB′=(A′+A)B′=B′. Thus F is 1 precisely when B=0, independently of the other inputs. 4. The function is not constant, so at least one literal is required. B′ uses one literal and is therefore minimal, selecting B. For example minterm 8 rules out A′, while minterm 4 has B=1 and must evaluate to zero, ruling out an OR of all four complements.
Counting high outputs of a decoder and multiplexer
Combinational Circuits
Tap to enlarge
A,B feed an active-high 2-to-4 decoder with outputs D0…D3. A 4-to-1 multiplexer, selected by S1S0, has input 0=D0, input 1=constant 0, input 2=constant 1, input 3=D3. Of all 16 assignments to A,B,S1,S0, how many give Y=1?
Answer & solution
Official answer: 6
Givens and goal
A,B feed an active-high 2-to-4 decoder with outputs D0…D3. A 4-to-1 multiplexer, selected by S1S0, has input 0=D0, input 1=constant 0, input 2=constant 1, input 3=D3. Of all 16 assignments to A,B,S1,S0, how many give Y=1?
Approach
Partition by the two selector bits and count high outputs in each group.
Step-by-step solution
1. For every decoder input AB exactly one decoder output is high. In particular D0 is high for one of the four AB combinations, and D3 is high for one of the four. They correspond to 00 and 11 in the conventional ordering. 2. When S1S0=00, the multiplexer outputs D0, so exactly one AB assignment gives Y=1. When S1S0=01, it outputs the tied-low input and gives no high outputs. 3. When S1S0=10, it outputs the tied-high input, so all four AB assignments give Y=1. When S1S0=11, it outputs D3, contributing one more assignment. 4. The selector cases are disjoint and cover all 16 inputs. Add their favorable counts: 1+0+4+1=6. There is no need to multiply decoder and multiplexer probabilities or assume random inputs; this is a truth-table count. 5. The unused D1,D2 lines do not replace the constants tied directly to multiplexer inputs 1 and 2.
X(a,b,c)=1 precisely when at least two of a,b,c equal 1. Select identities valid for every Boolean input: A X(a,b,X(c,d,e))=X(X(a,b,c),d,e); B X(a,b,X(a,b,c))=X(a,b,c); C X(a,b,X(a,c,d))=X(a,b,a) AND X(c,d,c); D X(a,b,c)=X(a,X(a,b,c),X(a,c,c)).
Select all that apply
Answer & solution
Official answer: B, D
Approach: Use two basic majority rules: X(u,u,v)=u, and X(0,1,v)=v. Prove claimed identities by cases and reject others with one counterexample. For B, if a=b then both sides equal a. If a≠b, the outer X(a,b,z) returns z, so the left side becomes X(a,b,c), exactly the right side. Thus B holds. For D, X(a,c,c)=c. If a=c, both the left side and X(a,X(a,b,c),c) equal a. If a≠c, X(a,b,c)=b, and the right side becomes X(a,b,c)=b. Thus D also holds. A is not an associative law: choose (a,b,c,d,e)=(0,0,0,1,1). The left side is X(0,0,1)=0, whereas the right side is X(0,1,1)=1. C fails for (a,b,c,d)=(0,1,1,1). Its left side is X(0,1,1)=1; its right side is X(0,1,0) AND X(1,1,1)=0 AND 1=0. Therefore select B,D. Equality on a few examples cannot establish an identity, which is why the true cases require a complete case argument.
The four-bit two’s-complement encoding of −6 is 1010. Which wider encodings still represent −6? A eight-bit 10001010; B eight-bit 11111010; C sixteen-bit 1000000000001010; D sixteen-bit 1111111111111010.
Select all that apply
Answer & solution
Official answer: B, D
Step through it (10 steps)
Approach: Extend the sign bit, not zeros, when widening a signed two’s-complement representation. In w bits, a word with leading bit 1 represents its unsigned value minus 2w. The four-bit word 1010 has unsigned value 10, so 10−16=−6. To preserve that signed value when adding high-order bits, copy the leading 1 into every new position. For eight bits this gives 11111010, with unsigned value 250 and signed value 250−256=−6. For sixteen bits it gives 1111111111111010, with unsigned value 65530 and signed value 65530−65536=−6. Therefore B and D are correct. A has unsigned value 138 and thus signed value −118. C has unsigned value 32778 and thus signed value −32758. Merely retaining a single leading 1 and inserting zeros is not valid sign extension; it changes the negative weight of the leading bit without compensating through the new high bits.
F(b3,b2,b1,b0)=Σm(0,2,4,8,10,11,12), with b3 most significant and no don’t-cares. Let ¬ denote NOT, juxtaposition AND and + OR. Choose the minimized expression: A ¬b1¬b0+¬b2¬b0+b1¬b2b3; B ¬b1¬b0+¬b2¬b0; C ¬b2¬b0+b1b2b3; D ¬b0¬b2+¬b3.
Your answer
Answer & solution
Official answer: A
Step through it (11 steps)
Approach: Group minterms differing only in free variables; each group must contain only listed 1-minterms because there are no don’t-cares. The four minterms {0,4,8,12} have b1=0,b0=0 while b3,b2 vary freely. They give implicant ¬b1¬b0. Similarly {0,2,8,10} have b2=0,b0=0 and give ¬b2¬b0. Minterm 11 (1011) is still uncovered; pair it with 10 (1010) to obtain b3¬b2b1. These groups cover exactly the seven specified minterms, producing A. Minimality also follows: minterm 12 needs the first maximal group, minterm 2 the second, and minterm 11 the third. Their essential coverage cannot be omitted. B misses minterm 11. C has a wrong uncomplemented b2 in its second term, misses required cases such as 4, and includes unwanted cases such as 14. D includes ¬b3, which would make F(0001)=1 despite minterm 1 not being listed.
Minimizing a Mealy machine by partition refinement
Finite-State Machine Design
Tap to enlarge
A Mealy FSM has input X∈{0,1}. Each row lists (next on 0,next on 1; output on 0,output on 1): A=(F,B;0,0), B=(D,C;0,0), C=(F,E;0,0), D=(G,A;1,0), E=(D,C;0,0), F=(F,B;1,1), G=(G,H;0,1), H=(G,A;1,0). Find the minimum number of equivalent states.
Answer & solution
Official answer: 5
Step through it (3 steps)
Approach: Equivalent Mealy states must produce the same immediate output for each input and lead to equivalent states. Refine partitions until stable. Group first by output pair: P0={{A,B,C,E},{D,H},{F},{G}}, corresponding to 00,10,11,01. States in different groups are already distinguishable by a single input. Within the 00 group, A and C go on input 0 to F, while B and E go to the 10 group {D,H}. Those destination groups differ, so split 00 into {A,C} and {B,E}. On input 1 they all initially went to the 00 group, which did not prevent the split required by input 0. Now check P1={{A,C},{B,E},{D,H},{F},{G}}. A,C both lead to {F} on 0 and {B,E} on 1. B,E both lead to {D,H} on 0 and {A,C} on 1. D,H both lead to {G} on 0 and {A,C} on 1. Thus every multi-state group has identical destination-group signatures and no further split is required. The stable equivalence classes are AC, BE, DH, F and G: five states. Partition refinement both constructs a five-state realization and proves that the distinguishable classes cannot be merged.
Finding the cycle length of a twisted-ring counter
Counters & Timing
Tap to enlarge
Four D flip-flops share a clock. Their outputs feed the next inputs as Q0→D1, Q1→D2, Q2→D3, and complemented Q3→D0. Starting from any four-bit initial state, how many distinct states occur before it returns? The wording may count or exclude the initial state; the official interval is 7–8.
Answer & solution
Official answer: 7 to 8
Our answer: 8
Approach: Derive the synchronous state update and show its period for every initial state, rather than checking only all-zero initialization. Write the state as (q0,q1,q2,q3). The next-state map is T(q0,q1,q2,q3)=(¬q3,q0,q1,q2), because a D flip-flop copies its input at a clock edge. After four clocks every original bit has shifted through the complemented feedback once, so T^4(q)=¬q. After eight clocks it has been complemented twice, so T^8(q)=q. The map is invertible, and each orbit’s period divides eight. Possible smaller divisors are 1,2,4, but any such period would make T^4(q)=q. That is impossible because no Boolean vector equals its bitwise complement. Hence every initial vector lies on an eight-state cycle. For example, 0000→1000→1100→1110→1111→0111→0011→0001→0000. Counting the initial state gives eight distinct cycle states; counting only new states visited after leaving it and before return gives seven. Preserve the official 7–8 range while distinguishing the conventions. The feedback was visually confirmed to use complemented Q3, not Q3.
A logic circuit has three branches feeding a final OR gate: (1) a NAND of X and Y; (2) an inverter on X; (3) an AND of X and an inverted Y. Select all expressions equal to the output F. Here ¬ means NOT, adjacency means AND, and + means OR. A. ¬(XY). B. ¬X+¬Y+X¬Y. C. ¬(XY)+¬X+X¬Y. D. X+¬Y.
Select all that apply
Answer & solution
Official answer: A, B, C
Read the circuit one gate at a time. The top branch outputs ¬(XY), the middle inverter outputs ¬X, and the bottom AND outputs X¬Y. OR-ing these gives F=¬(XY)+¬X+X¬Y, exactly C.
Apply De Morgan's law: ¬(XY)=¬X+¬Y. Therefore F=¬X+¬Y+¬X+X¬Y. Idempotence removes the duplicate ¬X, leaving ¬X+¬Y+X¬Y, which is B. Absorption gives ¬Y+X¬Y=¬Y, so F=¬X+¬Y=¬(XY), which is A.
For D, use a distinguishing input instead of relying on appearance. When X=Y=1, all three actual circuit branches output zero, so F=0. But X+¬Y=1+0=1. Thus D is not equivalent. A truth-table check gives F=1,1,1,0 for XY=00,01,10,11, the NAND pattern. Select A,B,C.
A 4-bit ripple counter has a waveform period of 64 microseconds at its last flip-flop. Find the input clock frequency in kHz.
Answer & solution
Official answer: 250
Each flip-flop toggles on every active edge of its input clock. Two toggles complete one output cycle, so each stage divides the frequency by two and doubles the period. With four stages the final output frequency is f_in/24=f_in/16, and its period is 16T_in.
Given T_last=64 μs, the input period is T_in=64/16=4 μs. Therefore f_in=1/(4×10−6 s)=250000 Hz=250 kHz. As a check, the last stage frequency is 1/(64 μs)=15.625 kHz and multiplying it by 16 again gives 250 kHz.
The phrase “frequency of the ripple counter” in the question is interpreted as the input clock frequency, not the final-stage output frequency. Do not divide that final output frequency by 16 a second time. Answer: 250.
A 4-variable Karnaugh map for F(w,x,y,z) uses rows wx and columns yz, each in standard Gray order 00,01,11,10. Its rows, from top to bottom, are [1,0,0,1], [0,1,1,0], [0,1,1,0], [1,0,0,1]. Select all equivalent expressions. Use ¬ for complement, adjacency for AND, + for OR. A. ¬w¬x¬y¬z + w¬x¬y¬z + ¬w¬xy¬z + w¬xy¬z + xz. B. ¬w¬x¬y¬z + ¬w¬xy¬z + w¬xyz + xz. C. ¬w¬x¬y¬z + w¬x¬y¬z + w¬x¬yz + xz. D. ¬x¬z + xz.
Select all that apply
Answer & solution
Official answer: A, D
Step through it (14 steps)
The four corner cells are adjacent through the K-map's wraparound boundaries. Across these corners w and y each vary, while x=0 and z=0 remain fixed. Their size-four group therefore contributes ¬x¬z. The central 2×2 group also lets w and y vary, but fixes x=1 and z=1, contributing xz. All eight ones are covered, giving F=¬x¬z+xz, independent of w and y. This is XNOR of x and z, so D is correct.
Expand the first term by inserting (w+¬w)(y+¬y)=1: ¬x¬z = ¬w¬x¬y¬z + w¬x¬y¬z + ¬w¬xy¬z + w¬xy¬z. Adding xz reproduces A, so A is also correct.
B omits the required one at wxyz=1000: each of its terms is zero there, while the map gives one. C omits the required one at 0010. Either counterexample suffices to reject the corresponding expression. Select A,D.
Select every Boolean identity valid for all inputs. Use ¬ for NOT, juxtaposition for AND, and + for OR. A. ¬ABC + A¬B¬C + ¬A¬B¬C + A¬BC + ABC = BC + ¬B¬C + ¬A¬B. B. AB + ¬AC + BC = AB + ¬AC. C. (A+C)(¬A+B) = AB + ¬AC. D. ¬[(A+¬B+¬D)(C+D)(¬A+C+D)(A+B+¬D)] = ¬AD + ¬C¬D. In expressions such as ¬ABC, the negation applies only to the immediately following variable A; the bracketed negation in D applies to the entire product.
Select all that apply
Answer & solution
Official answer: B, C, D
B is the consensus identity. Split its extra term BC using A+¬A=1: BC=ABC+¬ABC. The term ABC is absorbed by AB, and ¬ABC is absorbed by ¬AC. Hence AB+¬AC+BC=AB+¬AC, proving B.
Expand C's left side: (A+C)(¬A+B)=A¬A+AB+¬AC+BC=AB+¬AC+BC. The first product vanishes, and B's consensus simplification yields the stated right side. Thus C holds.
For D, apply De Morgan to the outer complement and then to each sum: ¬[(A+¬B+¬D)(C+D)(¬A+C+D)(A+B+¬D)] =¬ABD + ¬C¬D + A¬C¬D + ¬A¬BD. Combine the first and fourth terms: ¬ABD+¬A¬BD=¬AD(B+¬B)=¬AD. Absorb A¬C¬D into ¬C¬D. The result is ¬AD+¬C¬D, so D holds.
A fails at A=0,B=0,C=1. Every term on its left is zero, but the right includes ¬A¬B=1. A single counterexample rejects a claimed identity. Select B,C,D. The scope of all complement bars, especially D's outer complement and its third factor, was checked on the source image.
Signed integers use five-bit two's complement. A is 01010 and B is 11010. Which operation overflows or underflows this representation? A A+B; B A−B; C B−A; D 2B.
Your answer
Answer & solution
Official answer: B
Step through it (4 options)
Approach: Decode the operands as signed values, perform ordinary integer arithmetic, and compare each mathematical result with the representable interval. 1. With five bits, two's complement represents −2⁴ through 2⁴−1, namely −16 through 15. 2. A has leading bit 0, so A=10. B has unsigned value 26 and leading bit 1, so its signed value is 26−32=−6. 3. The four results are A+B=4; A−B=16; B−A=−16; and 2B=−12. 4. Only 16 falls outside [−16,15]. Its five-bit pattern would wrap to 10000, which represents −16 rather than the intended positive 16. Answer: B. The value −16 in option C is exactly the valid lower endpoint, not an underflow. Two's complement has one more negative value than positive nonzero values.
Input X branches directly to one input of an AND gate and through a NOT gate to the other; the AND output is Y. Wires have no delay and signal edges are instantaneous; gates may have delays. Which claims are correct? A With zero delays Y is always 0. B With zero delays Y is always 1. C With delays a 0→1 change of X can cause a brief 1 at Y. D With delays a 1→0 change of X can cause a brief 0 glitch at Y.
Select all that apply
Answer & solution
Official answer: A, C
Approach: Distinguish the stable Boolean function from the timing behavior of two unequal signal paths. 1. With no delays, the two AND inputs are X and its exact complement. Their product is X·NOT X=0 for both X=0 and X=1. Therefore A is true and B is false. 2. Just before X rises, the inputs are (0,1). The direct input changes immediately to 1, but the inverter's output can remain 1 until its propagation delay expires. During that interval the AND sees (1,1). 3. If this overlap is long enough to propagate through the AND gate, Y briefly becomes 1 before returning to 0. The word “can” allows this timing condition; C is true, without claiming every pulse survives an inertial gate delay. 4. When X falls, the direct input becomes 0 immediately. The other input later rises from 0 to 1, but at no point are both 1. Y's stable level is already 0, so an interval at 0 is not a negative glitch. Answer: A and C.
F(X,Y,Z)=Σ(3,5,6,7), with minterm indices in XYZ binary order. Which claims are correct? A F=Π(0,1,2,4). B F=XY+YZ+XZ. C F is independent of Y. D F is independent of X.
Select all that apply
Answer & solution
Official answer: A, B
Step through it (13 steps)
Approach: Translate the minterm indices to input assignments, then compare equivalent representations and test claimed independence. 1. The one-output assignments are 3=011, 5=101, 6=110 and 7=111. They are exactly the assignments with at least two inputs equal to 1. 2. The remaining indices 0,1,2,4 give output zero. A product of maxterms lists the zero-output indices, so F=Π(0,1,2,4). A is true. 3. XY is 1 when X and Y are both 1; YZ and XZ cover the other pairs. Their OR, XY+YZ+XZ, is therefore 1 exactly when at least two inputs are 1. B is true. 4. To disprove independence from Y, fix X=1,Z=0: then F=Y, so changing Y changes the output. Likewise with Y=1,Z=0, F=X. Thus C and D are false. Answer: A and B. Independence requires that changing an input never changes the output, so one counterexample assignment is enough to refute it.
M1 selects X1 for A=0 and X2 for A=1, giving Q1. M2 selects X3 for B=0 and X4 for B=1, giving Q2. M3 selects Q1 for C=0 and Q2 for C=1, giving Y. With X1=X2=1 and X3=X4=0, how many assignments to (A,B,C) give Y=1?
Answer & solution
Official answer: 4
Approach: Evaluate the first-stage multiplexers before enumerating the three select bits. 1. A 2-to-1 multiplexer outputs one of its two data inputs according to its select bit. Since both M1 inputs are 1, Q1=1 whether A is 0 or 1. 2. Both M2 inputs are 0, so Q2=0 whether B is 0 or 1. 3. The final multiplexer has data inputs Q1=1 on its 0 port and Q2=0 on its 1 port. Thus Y=(NOT C)·1+C·0=NOT C. 4. Therefore Y=1 exactly when C=0. A and B remain arbitrary, giving 2×2×1=4 assignments: (0,0,0), (0,1,0), (1,0,0), (1,1,0). Answer: 4. Although there are three select bits, only C affects the output for these fixed data inputs. The port labels in the source determine which value of C produces 1.
Test Boolean identities with the two possible values
Boolean Algebra & Logic Gates
Tap to enlarge
For Boolean x select the FALSE identities. A x·1=x; B x+1=x; C x·x=0; D x+¬x=1. Here · means AND and + means OR.
Select all that apply
Answer & solution
Official answer: B, C
Approach: Use Boolean truth tables, not ordinary arithmetic addition.
1. Derivation. Boolean identities give x·1=x and x+NOT x=1, so A, D are true. In contrast x+1=1, not x when x=0; and x·x=x, not 0 when x=1. The false identities are B, C.
2. Explanation and checks. For x=0 the left sides of A,B,C,D are 0,1,0,1, while the asserted right sides are 0,0,0,1; B already fails. For x=1 the left sides are 1,1,1,1 and the right sides are 1,1,0,1; C fails. Thus an identity must hold for both input values to be true. A is the AND identity law, C misstates idempotence, and D is the complement law.
Which equal 224 in base 5? A 64 in base 10; B 100 in base 8; C 50 in base 16; D 121 in base 7.
Select all that apply
Answer & solution
Official answer: A, B, D
Step through it (7 steps)
Approach: Expand each numeral as a sum of digit×base^position.
1. Derivation. 224 base5 equals 2×25+2×5+4=64 decimal. 100 base8 is 64; 50 base16 is 80 and differs; 121 base7 is 49+14+1=64. Thus A, B, D.
2. Explanation and checks. The rightmost position is the units position in every base. Thus the 4 in 224_5 contributes four, the middle 2 contributes ten, and the left 2 contributes fifty. For 100_8 only the 8² term is nonzero. For 121_7 the contributions are 49,14,1. The digits 5 and 0 in hexadecimal 50 contribute 5×16 and zero, not fifty decimal. Comparing all four decimal values prevents confusing the numeral’s appearance with its represented number.
Four-input-variable Boolean functions have minterm sets f1={0,2,3,5,7,8,11,13}, f2={1,3,5,7,11,13,15}, f3={0,1,4,11}, f4={0,2,6,13}. Circuit Y=(f1 AND f2) XOR (f3 OR f4). Which are correct? A Y=Σ(0,1,2,11,13); B Y=Π(3,4,5,6,7,8,9,10,12,14,15); C Y=Σ(0,1,2,3,4,5,6,7); D Y=Π(8,9,10,11,12,13,14,15).
Select all that apply
Answer & solution
Official answer: C, D
Approach: Treat each function’s one-set as a set: AND intersects, OR unites, XOR takes symmetric difference.
1. Derivation. The circuit first ANDs f1 and f2, whose common minterms are{3, 5, 7, 11, 13}. The OR of f3, f4 has minterms{0, 1, 2, 4, 6, 11, 13}. The final XOR keeps their symmetric difference, cancelling11, 13 and giving{0, 1, 2, 3, 4, 5, 6, 7}. Its complementary maxterm indices are 8 through 15. Hence C, D. The final gate was visually confirmed to be XOR, not OR.
2. Explanation and checks. At indices 11 and 13 both intermediate gates output 1, so XOR outputs 0; an OR final gate would incorrectly keep them. At 3,5,7 only the AND branch is 1; at 0,1,2,4,6 only the OR branch is 1. All eight indices 0 through 7 therefore survive. A product-of-maxterms lists zero positions rather than one positions, so complementing this set inside the 16 possible inputs yields D, an equivalent representation to C.
A 2:1 multiplexer has its output Q fed to input 0 and external data D at input 1, controlled by S. Is it equivalent to A a D flip-flop; B a D latch; C a half-adder; D a demultiplexer?
Your answer
Answer & solution
Official answer: B
The feedback wire reaches mux input 0 and the external data wire reaches input 1. When S=0 the output feeds itself, holding the stored value; when S=1 the output follows the data continuously. This is a level-sensitive D latch, not an edge-triggered flip-flop.
Teaching detail. The mux equation is Qnext=(NOT S)Q+SD. At S=0 it reduces to Qnext=Q, providing storage through feedback. At S=1 it reduces to Qnext=D, so changes in D can propagate for the whole enabled level. An edge-triggered device would sample only at a clock transition, which this circuit does not implement. Calling the component a latch also assumes ordinary stable operation of the feedback circuit rather than treating its loop as a feed-forward combinational expression.
Convert the number (132)₄ to radix 5; enter its base-5 digits.
Answer & solution
Official answer: 110
Step through it (9 steps)
132 base4 equals 1×16+3×4+2=30 decimal. Dividing30 by 5 gives quotient 6 remainder 0, and 6 by 5 gives quotient 1 remainder 1. Thus30=1×25+1×5+0, or 110 base5.
Teaching detail. The digits of a positional numeral are coefficients of powers of the base, starting at exponent zero from the right. Thus the conversion first obtains the underlying integer and then re-expresses it with powers of 5. The final check is 1·5²+1·5+0=30, equal to the original 1·4²+3·4+2. Do not enter 30 as the answer: that is the decimal intermediary, whereas the question requests the digit string in radix 5. All digits of 110 are valid in base 5.
A synchronous circuit starts at (Q1,Q2,Q3)=(0,1,1). Its first T flip-flop input is NOT Q3, its middle D flip-flop input is Q1, and its third T flip-flop input is Q2; all share one clock. Which state is unreachable? A 001; B 100; C 101; D 111.
Your answer
Answer & solution
Official answer: A
All three flip-flops share the clock. The inspected wiring gives Q1_next=Q1 XOR NOT Q3, Q2_next=Q1, and Q3_next=Q3 XOR Q2. Starting at 011, simultaneous updates give 000→100→010→101→111→110→011, a seven-state cycle. State001 never occurs, while the other offered states 100, 101, 111 do. Thus A. Each update uses old state values, not sequentially updated outputs.
Teaching detail. A D flip-flop copies its input at the active clock edge; a T flip-flop holds when T=0 and toggles when T=1, so its equation is Qnext=Q XOR T. Apply all three equations to the same old state. For initial 011, NOT Q3=0 keeps Q1 at 0, Q2 copies old Q1=0, and Q3 toggles because old Q2=1, giving 000. Continuing until the initial state repeats proves the whole reachable cycle is exhausted; a few sampled clock steps alone would not prove unreachability.
Two 4:1 muxes M1,M2 use select bits (S1,S0)=(A,C) and inputs X0..X3,X4..X7. A final mux selects M1 when B=0 and M2 when B=1. Set all Xi to constants to implement F=NOT A+(NOT A)(NOT C)+A(NOT B)C. Find the eight constants in order.
Your answer
Answer & solution
Official answer: C
Both four-input muxes use select bits(A, C), while the final mux selects M1 for B=0 and M2 for B=1. For B=0, evaluating at AC=00, 01, 10, 11 gives 1, 1, 0, 1; for B=1 it gives 1, 1, 0, 0. Therefore(X0,…, X7)=(1, 1, 0, 1, 1, 1, 0, 0), option C.
Teaching detail. The mux address inside each 4:1 block is 2A+C. Thus each Xi is simply the desired output for one combination of A,C, with the block chosen by B. When A=0, the NOT A term forces output 1 irrespective of B,C, giving X0=X1=X4=X5=1. When A=1, the function reduces to (NOT B)C: it is zero for C=0 in both blocks, one only in the B=0,C=1 position. This independently obtains X2=X6=X7=0 and X3=1.
Four-bit registers use two's complement. Which sum overflows? A 1011+1110; B 1100+1010; C 0011+0100; D 1001+1111.
Your answer
Answer & solution
Official answer: B
Step through it (4 options)
Four-bit two’s-complement integers range from −8 through 7. The sums in A, C, D are −7, 7,−8 and are representable. B computes −4+(−6)=−10, outside the range, so it overflows. Thus B.
Decode a bit pattern with leading 1 by subtracting 16 from its unsigned value. Thus A is −5−2=−7; B is −4−6=−10; C is 3+4=7; D is −7−1=−8. B wraps to 0110 (+6), revealing the sign reversal for a negative-plus-negative sum.
A 16-bit control word contains mode M, an address for 1024-word memory S, and an address for 32-word register file R. Blocks P,Q select their addressed words; mode-controlled T selects one word to load display register X. Identify P,Q,T: A 10:1 mux,5:1 mux,2:1 mux; B 10:1024 decoder,5:32 decoder,2:1 encoder; C those two decoders and 2:1 mux; D 1:10 demux,1:5 demux,2:1 mux.
Your answer
Answer & solution
Official answer: C
Selecting one of 1024 memory words requires a 10-to-1024 decoder P. Selecting one of 32 registers requires a 5-to-32 decoder Q. Mode bit M selects between the two data words through a 2-to-1 multiplexer T. The fields use 1+10+5=16 bits, consistent with the code word.
A decoder expands a binary address into one selected word line; log2(1024)=10 and log2(32)=5 give its input widths. T routes one of two data-word inputs to one output and is therefore a multiplexer, not an encoder. The mode wire is one select bit, making the complete instruction width 1+10+5=16.
A number is 210 in base 3. What is its hexadecimal representation? A 15; B 21; C D2; D 528.
Your answer
Answer & solution
Official answer: A
Step through it (8 steps)
The ternary numeral 210 represents 2·3²+1·3=21 decimal. Since21=1·16+5, its hexadecimal representation is 15, A.
The positional expansion is 2×9+1×3+0×1=21. Converting that decimal result to base 16 gives quotient 1 and remainder 5. Conversely hexadecimal 15 evaluates to 16+5=21, providing a reverse check. The visible digits 210 are not a decimal number to be converted directly.
A synchronous three-bit T-flip-flop counter has outputs P,Q,R and common clock. The circuit connects R to T_P, complemented P to T_Q, and complemented Q to T_R. Starting at PQR=000, what are its next three states? A 011,101,000; B 001,010,111; C 011,101,111; D 001,010,000.
Your answer
Answer & solution
Official answer: A
The inspected wiring gives T_P=R, T_Q=¬P, T_R=¬Q, with a shared clock. Since a T flip-flop updates by Q_next=Q XOR T, the simultaneous transition equations are P_next=P XOR R, Q_next=Q XOR ¬P, R_next=R XOR ¬Q. From000 they give 011, then 101, then 000. Thus A. Every right-hand side uses the old state.
The transition trace is: old 000 gives T=(0,1,1), new 011; old 011 gives T=(1,1,0), new 101; old 101 gives T=(1,0,1), new 000. A T input of 0 holds its flip-flop and 1 toggles it. Since all receive the same clock, updating P first and then using the new P to compute Q would incorrectly simulate a sequential program instead of a synchronous circuit.
A 12-bit Hamming codeword is d8 d7 d6 d5 c8 d4 d3 d2 c4 d1 c2 c1, listed from left to right. Data d8...d1 are 1,1,0,x,0,1,0,1; check bits c8,c4,c2,c1 are y,0,1,0. Find x,y. A 0,0; B 0,1; C 1,0; D 1,1.
Your answer
Answer & solution
Official answer: A
Step through it (5 steps)
Number codeword positions from the right. The c2 parity group at positions 2, 3, 6, 7, 10, 11 already has four ones, establishing even parity. The c1 group at 1, 3, 5, 7, 9, 11 has 2+x ones, so x=0. The c8 group at 8, 9, 10, 11, 12 then has y+2 ones, so y=0. Thus A. This uses the parity convention inferred from the supplied known check group, not an unprovided arbitrary choice.
The positions from right to left are 1:c1=0,2:c2=1,3:d1=1,4:c4=0,5:d2=0,6:d3=1,7:d4=0,8:c8=y,9:d5=x,10:d6=0,11:d7=1,12:d8=1. Each parity check includes positions whose binary index has its corresponding bit set. After x=y=0, c4's group {4,5,6,7,12} also has two ones, verifying consistency with the parity convention inferred from c2.
Let F=(X+Y+Z)(¬X+Y)(¬Y+Z), where + is OR and adjacency AND. Select expressions equal to ¬F: A (¬X+¬Y+¬Z)(X+¬Y)(Y+¬Z); B X¬Y+¬Z; C (X+¬Z)(¬Y+¬Z); D X¬Y+Y¬Z+¬X¬Y¬Z.
Select all that apply
Answer & solution
Official answer: B; C; D
Step through it (14 steps)
If Z=0, the product is (X+Y)(NOT X+Y)(NOT Y)=Y(NOT Y)=0. If Z=1, it is NOT X+Y. Thus F=Z(NOT X+Y) and its complement is NOT Z+X(NOT Y), option B. By (a+b)(c+b)=ac+b, C is the same expression. Direct De Morgan expansion gives X(NOT Y)+Y(NOT Z)+(NOT X)(NOT Y)(NOT Z), exactly D. Option A is false, for example at X=0, Y=1, Z=0: it evaluates to 0 while the complement of F is 1.
Algebraically, (X+Y)(¬X+Y)=Y, so setting Z=0 makes F=Y¬Y=0. Setting Z=1 leaves only ¬X+Y. Hence ¬F=¬Z+X¬Y. Expanding C gives X¬Y+X¬Z+¬Y¬Z+¬Z, which absorbs to B. De Morgan on the original three factors gives D directly. Checking A at (X,Y,Z)=(0,1,0) yields a zero second factor (X+¬Y), whereas F=0 and its complement must be 1; this single assignment rules A out.
Implement f(x,y,z)=Σm(0,1,3,4,5,6), with x the most significant minterm bit, using a 4:1 mux with selectors S1=y,S0=z. Candidate input tuples (I0,I1,I2,I3): A (1,1,x,¬x); B (x,1,¬x,1); C (1,1,¬x,x); D (¬x,1,x,1).
Your answer
Answer & solution
Official answer: A
With selectors y, z, the paired minterms for yz=00 and 01 both produce 1 for either x. For yz=10 only x=1 is included, so input 2 is x. For yz=11 only x=0 is included, so input 3 is ¬x. Therefore the four mux inputs are 1, 1, x,¬x, exactly A.
List truth values in selector groups: yz=00 selects minterms 0,4; yz=01 selects 1,5; yz=10 selects 2,6; yz=11 selects 3,7. Their outputs versus x are (1,1),(1,1),(0,1),(1,0). This is Shannon expansion with two selection variables. A gate equivalent is ¬y∨(x∧¬z)∨(¬x∧z), with redundant coverage allowed.
Binary0.1101 equals 1/2+1/4+1/16=13/16=0.8125. Thus x=1, y=2 and x+y=3.
Weights to the right of the binary point are 2−1,2−2,2−3,2−4. Only the third bit is zero. Matching 0.8125 to 0.8xy5 identifies the digits individually before adding. The answer is an integer sum of digits, not the binary fraction's numerator.
Two-state Mealy circuit replaces the first 1 of each maximal run of 1s by 0. Input 00100011000011100 produces 00000001000001100. Current state s starts at 0; current bit b; next state t; output y. A t=s+b,y=sb; B t=b,y=sb; C t=b,y=s¬b; D t=s+b,y=s¬b. Here + means OR.
Your answer
Answer & solution
Official answer: B
Step through it (4 options)
Use state s to remember the previous input bit, initialized 0. The next state is therefore t=b. Output1 is permitted only when both the previous and current bits are 1; the first 1 after 0 is suppressed. Thus y=s·b, giving B.
State/input table (s,b)→(t,y) is 00→00,01→10,10→00,11→11. A D flip-flop with D=b stores the preceding input and an AND gate computes y=Q∧b. The reset state Q=0 ensures a leading 1 is suppressed. No lookahead into future input is needed.
Boolean f(w,x,y,z) satisfies f(w,0,0,z)=1; f(1,x,1,z)=x+z; f(w,1,y,z)=wz+y. Find minimum number of literals in an SOP, noting incompletely specified inputs. + means Boolean OR.
Answer & solution
Official answer: 6
The supplied cofactors force on-set minterms 0, 1, 6, 7, 8, 9, 11, 13, 14, 15 and off-set 4, 5, 10, 12. Minterms2, 3 are unspecified and may be used as dont-cares for minimization. One minimum SOP is (NOT x)(NOT y)+xy+wz, containing 6 literals. No one-literal implicant avoids all forced zeros. Moreover on-set points 0, 6, 13 cannot be covered pairwise by a single implicant: their covering cubes would include a forced zero. At least three terms, each with at least two literals, are required, proving the lower bound 6. Treating unspecified cofactors as dont-cares is the minimization convention used here. The supplied equations do not uniquely specify f: for example assigning f(0, 0, 1, 0)=1 and f(0, 0, 1, 1)=0 requires a separate three-literal implicant for minterm 2, while minterms 1, 14, 13 force the three essential prime implicants (NOT x)(NOT y), xy, wz respectively. That completion needs 9 literals, not 6. Thus the official 6 is the minimum over permissible completions, not a forced value for every function satisfying the three equations.
Shannon cofactor constraints leave only minterms 2 and 3 free. The three two-literal cubes ¬x¬y,xy,wz cover the forced on-set and avoid zeros 4,5,10,12. A literal count counts occurrences, so three terms with two literals cost six, not three. The witness completion that needs nine literals must remain disclosed because minimization over don't-cares is an assumption, not a logical consequence that f is uniquely fixed.
A multiplexer selects exactly one of 32 registers to transfer to an accumulator. What is the minimum number of binary select lines?
Answer & solution
Official answer: 5
Worked explanation
With s binary selection inputs, a multiplexer can encode at most 2s choices. Four lines provide only 16 choices, fewer than the 32 register inputs. Five lines provide 32, exactly enough. This counts control lines; the register word width determines the data-path width and is irrelevant to this count. The accumulator is the common destination, not a 33rd selectable source.
Derivation and answer
Selecting one of 32 registers requires 32 distinct selector patterns. The minimum binary selector width is ceil(log₂32)=5.
A decoder with m input lines and n output lines uniquely addresses a byte-addressable 1 KB RAM. Find the minimum m+n.
Answer & solution
Official answer: 1034
Worked explanation
Byte addressability means each byte is a separately selected location. Under the binary memory-size convention, 1 KB=210 bytes, so there must be 1024 distinct outputs in the one-hot address decoder. Its m input bits must encode all 1024 choices, requiring m=10. Thus n=1024 and m+n=1034. Do not confuse the RAM’s 8-bit data width with the number of decoder outputs: those outputs select addresses, not individual data bits.
Derivation and answer
A byte-addressable 1KB memory has 1024 distinct byte locations. A one-hot decoder needs 1024 output lines and log₂1024=10 address inputs. Thus m+n=10+1024=1034, using the conventional 1KB=1024 bytes.
Circuit equivalent: b enters NOT, its output and c enter AND, and that result and a enter OR to produce z. With minterm index 4a+2b+c, choose z. A Σm(0,1,3,7); B Σm(1,4,5,6,7); C Σm(2,4,5,6,7); D Σm(2,3,5).
Your answer
Answer & solution
Official answer: B
Worked explanation
Read the inversion bubble on b before constructing the product term. The AND output is b′c and the final OR adds a. Truth-table equivalent, in order abc=000,001,010,011,100,101,110,111: z=0,1,0,0,1,1,1,1. Index each assignment as binary abc with a most significant. The true rows are therefore 1,4,5,6,7. Option C incorrectly includes minterm 2, which has c=0, while A and D omit true rows with a=1. The displayed gate connections, rather than a guessed canonical expression, determine the result.
Derivation and answer
The circuit computes z=a∨(¬b∧c). For a=1 all four minterms 4, 5, 6, 7 are on. For a=0 the only on assignment is b=0, c=1, minterm 1. Thus Σm(1, 4, 5, 6, 7), B.
Find the 16-bit two's-complement representation of decimal −28. Choices: A 1111 1111 0001 1100; B 0000 0000 1110 0100; C 1111 1111 1110 0100; D 1000 0000 1110 0100.
Your answer
Answer & solution
Official answer: C
Step through it (5 steps)
Method: represent the positive magnitude at the specified width, complement every bit, and add one.
1. Positive 28 is 16 + 8 + 4, so its 16-bit binary representation is 0000 0000 0001 1100. 2. Complement all 16 bits: 1111 1111 1110 0011. 3. Add one: 1111 1111 1110 0100, which is hexadecimal FFE4. 4. Check by the modular interpretation: a negative integer −28 is encoded as 216 − 28 = 65508. FFE4 has unsigned value 65508 and signed value 65508 − 65536 = −28.
Result: C. Setting just the most significant bit would be sign-magnitude encoding, not two's complement; retaining the positive low byte after filling leading ones would also give the wrong number.
Let + mean Boolean OR, juxtaposition mean AND, prime mean NOT, and ⊕ mean XOR. Identify the invalid identity: A (x⊕y)⊕z = x⊕(y⊕z); B (x+y)⊕z = x⊕(y+z); C x⊕y = x+y when xy=0; D x⊕y = (xy+x′y′)′.
Your answer
Answer & solution
Official answer: B
Method: a universal identity is disproved by one assignment; valid alternatives can be checked from XOR's meaning.
1. For B, set x = 1, y = 1, z = 0. The left side is (1 OR 1) XOR 0 = 1 XOR 0 = 1. The right side is 1 XOR (1 OR 0) = 1 XOR 1 = 0. The two sides differ, so B is invalid. 2. A is XOR associativity. Both sides indicate whether an odd number of x, y, z are one, independent of grouping. 3. For C, xy = 0 excludes the only assignment, x = y = 1, on which OR and XOR differ. Therefore the conditional identity is valid. 4. In D, xy + x′y′ is true exactly when x and y agree: both one or both zero. Complementing that equality condition gives XOR, which is true exactly when they differ.
Result: B. XOR is associative with itself, but mixing it with OR does not preserve that associativity pattern.
X and Y use n-bit sign-magnitude representations, and Z = X − Y must also use sign magnitude. Find the minimum width that avoids overflow for all operands. Choices: A n; B n−1; C n+1; D n+2 bits.
Your answer
Answer & solution
Official answer: C
Method: find the largest possible magnitude of a difference, then reserve a separate sign bit.
1. In an n-bit sign-magnitude number, one bit is the sign and n − 1 bits encode the magnitude. Thus each operand has absolute value at most M = 2n−1 − 1. 2. The largest positive difference occurs at X = M and Y = −M, giving Z = 2M = 2n − 2. Reversing these operands produces the negative extreme of the same magnitude. 3. For n ≥ 2, n − 1 magnitude bits cannot hold 2n − 2, but n magnitude bits can, since their maximum is 2n − 1. Therefore n magnitude bits are necessary and sufficient. 4. Add the sign bit: the result needs n + 1 total bits. For example, with n = 4, inputs range from −7 to +7; their difference can be +14, requiring four magnitude bits plus a sign.
Result: C, n+1 bits. The degenerate n=1 format represents only signed zero and is outside the usual nontrivial-width interpretation.
The on-sets of four-variable functions are f1={0,2,5,8,14}, f2={2,3,6,8,14,15}, f3={2,7,11,14}. A circuit ANDs f1 and f2, then XORs that output with f3. Find the output minterms: A {7,8,11}; B {2,7,8,11,14}; C {2,14}; D {0,2,3,5,6,7,8,11,14,15}.
Your answer
Answer & solution
Official answer: A
1. An on-set lists the input minterms on which a Boolean function equals 1. Working with these sets avoids expanding every minterm into a product of four literals. 2. The AND output is 1 only where both f1 and f2 are 1. Their intersection is H={2,8,14}; all other minterms make the AND output zero. 3. XOR is 1 precisely when its inputs differ. Therefore the final on-set is the symmetric difference of H and the on-set of f3, not their ordinary union. 4. Minterms 2 and 14 occur in both sets, so XOR makes them zero. Minterm 8 occurs only in H, while 7 and 11 occur only in f3, so these three survive. 5. The result is f=Σ(7,8,11), option A. Option B would correspond to OR at the second stage, illustrating why the XOR symbol matters.
For variable order a,b,c,d, implement f=Σ(0,2,5,7,8,10,13,15) using the fewest two-input NOR gates. All variables and their complements are already available. Find that gate count.
Answer & solution
Official answer: 3
1. Write minterm indices in binary abcd. The four indices 0,2,8,10 all have b=d=0; 5,7,13,15 all have b=d=1. In each group a and c take every combination. Hence f depends only on b,d and equals b XNOR d. 2. Build the two mismatch terms using NOR: u=NOR(b,¬d)=¬b·d and v=NOR(¬b,d)=b·¬d. Each is one gate because complemented inputs are available free. 3. Feed these to a third NOR: NOR(u,v)=¬(¬b·d+b·¬d)=b XNOR d=f. This proves three gates are sufficient. 4. For minimality, consider any circuit with at most two gates. If a raw input literal feeds the final NOR, setting that literal true forces the output to zero regardless of all other variables. The target XNOR has no such literal: for either setting of b or d it can still be 1, and it does not depend on a or c. 5. Without a raw literal at the final gate, both final inputs must be the output of the only earlier NOR. This merely inverts that NOR and gives the OR of its two input literals. No OR of literals realizes XNOR, whose 1-values are the two separated equal-bit cases. 6. Thus one or two gates cannot suffice, while the explicit circuit uses three. The minimum is 3. Complement availability is essential to this count; generating inversions separately would change the implementation cost.
Let ⊕ be XOR and ⊙ XNOR. Which identity is false? A ¬(P⊕Q)=P⊙Q; B (¬P)⊕Q=P⊙Q; C (¬P)⊕(¬Q)=P⊕Q; D (P⊕¬P)⊕Q=(P⊙¬P)⊙¬Q.
Your answer
Answer & solution
Official answer: D
Method
XOR is 1 exactly when its inputs differ; XNOR is its complement. Complementing one input changes “different” to “equal”, proving B, while complementing both preserves whether they differ, proving C. In D simplify the inner gates first, rather than assuming associativity transfers between XOR and XNOR. A concrete counterexample is Q=0: the left evaluates to 1 and the right to 0, regardless of P.
Solution
In D, P XOR not-P=1, so the left side is not-Q. Meanwhile P XNOR not-P=0, and 0 XNOR not-Q=Q. The sides are opposite, so D is false. Complementing a single XOR input gives XNOR, while complementing both leaves XOR unchanged, validating the other identities.
Two positive-edge D flip-flops share a clock. External in feeds D1; Q1 feeds D2; output is Q2. How many states have a transition to themselves for at least one input?
Answer & solution
Official answer: 2
Method
Both flip-flops sample their inputs at the same edge, so Q2 receives the old Q1, not the newly sampled input. With states written q1q2, input 0/1 transitions are: 00→00/10; 01→00/10; 10→01/11; 11→01/11. Only 00 and 11 appear among their own successors. This explicit table also shows why the mixed states cannot remain unchanged for either input.
Solution
Let the state be(q1, q2). On a positive clock edge the next state is(in, q1), because both flip-flops sample old values simultaneously. A self-loop requires in=q1=q2, possible only for 00 with input 0 and 11 with input 1. Exactly2 states have self-loops.
An unsigned 8-bit fixed-point format is b7b6b5b4b3.b2b1b0. Values are i 31.500, ii 0.875, iii 12.100, iv 3.001. Which cannot be exact? A all; B ii only; C iii,iv only; D i,ii only.
Your answer
Answer & solution
Official answer: C
Method
The three fractional bit weights are 1/2,1/4,1/8. Thus every stored value is an integer multiple of 1/8 within [0,255/8]. Multiplying a proposed value by 8 must yield an integer between 0 and 255. As examples, 31.5=11111.100₂ and 0.875=00000.111₂. Values 12.1 and 3.001 satisfy the range constraint but fail the granularity constraint; being small enough does not make a decimal fraction exactly representable.
Solution
Three fractional bits give increments of 1/8 and maximum 31.875. Both31.500=252/8 and 0.875=7/8 are representable. But12.100·8=96.8 and 3.001·8=24.008 are not integers, so iii and iv are not exact, C.
F(P,Q,R,S) has on-minterms {0,2,5,7,9,11} and don’t-cares {3,8,10,12,14}. All other minterms are off. How many essential prime implicants exist?
Answer & solution
Official answer: 3
Step through it (13 steps)
Method
A prime implicant is a maximal Boolean cube containing no off-cell; don’t-cares may enlarge it but need not be covered. Essential means at least one required on-cell has no alternative prime covering it. In dash notation, the five primes cover required cells as follows: 01-1→{5,7}; 0-11→{7}; 10--→{9,11}; -01-→{2,11}; -0-0→{0,2}. Therefore 5,9,0 respectively force three primes. A prime that covers only redundantly covered on-cells is not essential, even if it appears in a possible cover.
Solution
Enumerating maximal cubes that contain an on-minterm and no off-minterm gives five prime implicants: 01-1, 0-11, 10--, -01-, -0-0 in P, Q, R, S order, where a dash means that variable is absent. Minterm5 is covered only by 01-1; minterm 9 only by 10--; minterm 0 only by-0-0. These three primes are essential. The remaining on-minterms 2, 7, 11 each have more than one covering prime. Therefore exactly 3 prime implicants are essential. The enumeration checks all 81 four-variable cubes and treats only the listed d entries as don’t cares.
An unsigned n-bit fixed-point number has f fractional bits and i=n−f integer bits. Find its range. A 2^(−f) to 2^i; B 2^(−f) to 2^i−2^(−f); C 0 to 2^i; D 0 to 2^i−2^(−f).
Your answer
Answer & solution
Official answer: D
1. Represent the stored bits first as an unsigned integer N. Its smallest code is 0 and largest is 2n−1.
2. The fixed binary point gives value X=N/2f, so the step size is 2−f. The upper endpoint is (2n−1)2−f=2n−f−2−f.
3. Substitute i=n−f. The inclusive representable range is 0 through 2i−2−f, D. The value 2i itself would need an extra integer bit.
Two 8-bit two’s-complement numbers A7...A0 and B7...B0 are added, producing S7...S0 and carry bits C7...C0. A0 and B0 are least significant. Which detects overflow? A C7=1; B all carries 1; C A7 B7 ¬S7 + ¬A7 ¬B7 S7=1; D A0 B0 ¬S0 + ¬A0 ¬B0 S0=1. Products mean AND and + means OR.
Your answer
Answer & solution
Official answer: C
1. In two’s complement the high bit is the sign. Opposite-sign addition cannot exceed both representable bounds, so overflow requires equal operand signs.
2. If both signs are 0, overflow means the result sign is 1: ¬A7∧¬B7∧S7. If both signs are 1, overflow means the result sign is 0: A7∧B7∧¬S7.
3. OR the two mutually exclusive cases to obtain C. For example, 127+1 produces negative 8-bit result without needing an unsigned carry-out; sign overflow and unsigned carry are different tests.
A four-variable K-map has columns ba=00,01,11,10 and rows dc=00,01,11,10, both in Gray order. Row entries respectively are [0,X,X,0], [1,0,0,X], [1,0,0,1], [0,X,X,0], where X means don’t care. All inputs a,b,c,d and their complements are available. Using only 2-input NOR gates, find the minimum number of gates.
Answer & solution
Official answer: 1.0
Our answer: 1
1. Use the stated column order ba, not ab. The three required ones are at (dc,ba)=(01,00),(11,00),(11,10).
2. Choose the don’t-care at (01,10) to be 1. With wraparound column adjacency, these four cells form a group: a stays 0 and c stays 1, while b and d vary. Thus f=¬a∧c.
3. De Morgan gives f=¬(a∨¬c). Since ¬c is supplied, feed a and ¬c to one NOR gate. A direct wire to any supplied literal fails some required cell, so zero gates cannot suffice. Minimum 1.
Two flip-flops share a clock. T flip-flop output Q1 feeds the D input; D flip-flop output Q0 feeds the T input. Initial Q1Q0=11 before cycle 1. Select states after cycles 3 and 4: A (11,00); B (11,01); C (00,11); D (01,01).
Your answer
Answer & solution
Official answer: B
1. A T flip-flop toggles when T=1 and holds when T=0, so Q1(next)=Q1 XOR Q0. A D flip-flop copies its input, so Q0(next)=Q1.
2. Both right-hand sides use the old state at the same clock edge. Starting 11, edge 1 gives 01, edge 2 gives 10, and edge 3 gives 11.
3. Edge 4 repeats the first transition and gives 01. Therefore the requested pair is (11,01), B. Updating one flip-flop before computing the other would incorrectly mix old and new states.
A 16-bit unsigned integer is BCA9 in hexadecimal. Give its octal representation. A:571244. B:736251. C:571247. D:136251.
Your answer
Answer & solution
Official answer: D
Step through it (13 steps)
1. Convert each hexadecimal digit into four binary bits: B=1011, C=1100, A=1010, 9=1001. The number is therefore 1011110010101001₂.
2. Octal groups binary bits in threes, starting at the least-significant end. Add two leading zeros only for grouping: 001 011 110 010 101 001.
3. These groups are 1,3,6,2,5,1, yielding 136251₈, option D. A decimal check is BCA9₁₆=48297, and 1·8⁵+3·8⁴+6·8³+2·8²+5·8+1=48297. Leading padding does not change the value.
The quadratic x²−13x+36=0 has its coefficients written in base b. Its roots in that same base are the single digits 5 and 6. Find b.
Answer & solution
Official answer: 8.0
Our answer: 8
Step through it (5 steps)
1. Because 5 and 6 are single digits, their numerical values are 5 and 6, while the coefficient 13_b means b+3 and 36_b means 3b+6. The base must exceed 6 to admit all displayed digits.
2. For a monic quadratic, the sum of the roots equals the coefficient subtracted from x. Thus 5+6=b+3, which gives b=8.
3. Check the product condition as well: 5·6=30, and 36_8=3·8+6=30. Both coefficient relations agree, and digits 0 through 6 are legal in base 8. Hence the answer is 8, not a decimal interpretation of 13 and 36.
For Boolean variables w,x,y,z (juxtaposition=AND, +=OR, ¬=NOT), which equality is incorrect? A:wx+w(x+y)+x(x+y)=x+wy. B:¬[w¬x(y+¬z)]+¬w x=¬w+x+¬y z. C:[w¬x(y+x¬z)+¬w¬x]y=x¬y. D:(w+y)(wxy+wyz)=wxy+wyz.
Your answer
Answer & solution
Official answer: C
1. Check C by expanding its left side: w¬xyy+w¬xx¬zy+¬w¬xy. Since yy=y and ¬xx=0, this reduces to w¬xy+¬w¬xy=¬xy(w+¬w)=¬xy. The stated right side is x¬y, a different function.
2. A concrete counterexample is x=0,y=1, with any w,z. C then equates 1 with 0, so it is incorrect.
3. Verify the alternatives: A expands to wx+wx+wy+x+xy=x+wy by absorption. In B, De Morgan gives ¬w+x+¬y z for the complemented product; the extra ¬w x is absorbed. In D, every product inside the second factor already implies w+y, so multiplying by w+y changes nothing. C is uniquely false.
Given f(w,x,y,z)=Σm(0,1,2,3,7,8,10)+Σd(5,6,11,15), where d marks don't-cares, choose a minimum product-of-sums expression. A:(¬w+¬z)(¬x+z). B:(¬w+z)(x+z). C:(w+z)(¬x+z). D:(w+¬z)(¬x+z).
Your answer
Answer & solution
Official answer: A
Step through it (12 steps)
1. For a POS minimization, group zeros rather than ones. Of the sixteen minterms, the required zeros are 4,9,12,13,14; entries 5,6,11,15 may be assigned as convenient.
2. The group {9,11,13,15} has w=1,z=1 throughout, so it contributes wz to the complement f′. The group {4,6,12,14} has x=1,z=0, contributing x¬z. Together these cover every required zero without covering any required one.
3. Thus f′=wz+x¬z. Complementing by De Morgan yields f=(¬w+¬z)(¬x+z), A. Both groups are needed: zero 9 is not covered by x¬z and zero 4 is not covered by wz. No single-literal zero group avoids all required ones, so the two two-literal clauses form a minimum POS.
A two-bit saturating up-counter has next states 00→01,01→10,10→11,11→11. It uses synchronous T flip-flops for bits Q1,Q0. Choose (T1,T0). A:(Q1Q0,¬Q1¬Q0). B:(¬Q1Q0,¬Q1+¬Q0). C:(Q1+Q0,¬Q1+¬Q0). D:(¬Q1Q0,Q1+Q0).
Your answer
Answer & solution
Official answer: B
1. A T flip-flop holds its state when T=0 and toggles when T=1. Thus its required input is T=Q XOR Qnext; compute it separately for each bit.
2. For current states 00,01,10,11, the high-bit toggle requirements are 0,1,0,0. Only state 01 toggles Q1, giving T1=¬Q1·Q0. The low-bit requirements are 1,1,1,0, since Q0 changes on every transition except the saturated 11→11.
3. Therefore T0=¬(Q1Q0)=¬Q1+¬Q0. This pair is B. In particular the final state must hold rather than wrap to 00, so both T inputs must be zero at 11.
A Boolean operator # obeys x#0=x, x#1=NOT x, x#x=0, and x#(NOT x)=1. Identify x#y. Writing ¬ for NOT, concatenation for AND and + for OR, the options are A: x¬y+¬xy. B: x¬y+¬x¬y. C: ¬xy+xy. D: xy+¬x¬y.
Your answer
Answer & solution
Official answer: A
The four truth-table cases specified for # are exactly exclusive OR: different operands give 1 and equal operands give 0. Therefore x#y=x¬y+¬xy, A.
Construct the rows explicitly: 0#0=0, 0#1=1, 1#0=1, 1#1=0. An SOP has a minterm for each output-one row, namely ¬xy and x¬y. These are XOR's two unequal-input cases. Option D would be XNOR, which instead outputs 1 for equal inputs. The complement symbols in the options are essential; replacing them with ordinary variables changes the operator.
Find the signed decimal value of the 16-bit two's-complement word 1111 1111 1111 0101.
Answer & solution
Official answer: -11.0 : -11.0
Our answer: −11
Step through it (4 steps)
Invert 1111111111110101 and add 1 to obtain 0000000000001011=11. The leading sign bit is 1, so the two’s-complement value is−11.
A second method treats the word as an unsigned integer and subtracts 216 because the sign bit is 1. The unsigned hexadecimal value is FFF 5, or 65525;65525−65536=−11. The invert-and-add-one method and this positional-weight method agree. A leading 1 does not mean simply attaching a minus sign to the remaining 15-bit magnitude; that would be sign-magnitude, a different representation.
A synchronous counter repeatedly outputs 0,1,0,2,0,3. What is the minimum number of J-K flip-flops required?
Answer & solution
Official answer: 3.0 : 4.0
Our answer: 3
The repeating output sequence has six distinct phases. Its three occurrences of 0 require different future successors 1, 2, 3, so they cannot share one deterministic internal state. At least six states require ceil(log₂6)=3 flip-flops; a six-state cycle with output decoding attains this. The official accepted interval 3.0 : 4.0 is preserved even though the minimum derived here is 3.
Counting distinct output labels alone would suggest four states, but a deterministic counter must also remember where it is in the cycle. The zero before 1, the zero before 2 and the zero before 3 have different next outputs and so need different internal states. A possible 6-state encoding uses 000 through 101 and decodes them to 0,1,0,2,0,3. Three bits store those phases; suitable J-K input logic realizes the transition cycle. The official interval remains a scoring fact, not a proof that four is the minimum.
Two 2-to-1 multiplexers are cascaded. The first has select P, input 0 tied to 0 and input 1 tied to R. Its output feeds input 1 of the second multiplexer. The second has select Q and input 0 tied to ¬R; output is X. Find the minimal SOP. A: ¬P¬Q+PQR. B: ¬PQ+QR. C: PQ+¬P¬QR. D: ¬Q¬R+PQR. A select 0 chooses input 0, and select 1 chooses input 1.
Your answer
Answer & solution
Official answer: D
The first mux selects 0 for P=0 and R for P=1, giving PR. The second selects ¬R for Q=0 and PR for Q=1. Therefore X=¬Q¬R+PQR, D. The isolated 111 minterm requires PQR, and the two minterms with Q=R=0 require the other implicant, so this SOP is minimal.
A2:1 mux implements ¬s·I0+s·I1. Applying that equation once gives PR and applying it again gives ¬Q¬R+QPR. In PQR order the 1-minterms are 000,100,111. The first two differ only in P and combine to ¬Q¬R. The 111 minterm has no neighboring 1-minterm and must remain the three-literal term PQR. This verifies both equivalence and minimality, rather than merely matching an option's algebraic shape.
An eight-bit ripple-carry adder adds two’s-complement integers A and B. With A=1, give the decimal B causing the longest latency for the sum to stabilize.
Answer & solution
Official answer: -1.0 : -1.0
Our answer: −1; sum-only timing may also tie at 127
With A=00000001 and B=11111111 (−1), the low-order 1+1 generates a carry that propagates through all seven higher positions, giving the standard full-ripple worst case and official−1. If only the eight sum outputs matter and final carry-out is excluded, B=01111111 (127) also propagates the carry into the sign position and can tie the longest sum-settling delay under a conventional equal-delay full-adder model. Thus uniqueness depends on the precise output/timing model; −1 is a valid worst-case operand but need not be the only one.
At bit 0, 1+1 creates carry c1. At every higher bit of B=−1, A has 0 and B has 1, so the carry-propagate signal Ai XOR Bi is 1. Thus each carry waits on the previous stage. Binary 11111111 denotes −1, not 255, in the specified signed representation.
Boolean variables satisfy x1⊕x2⊕x3⊕x4=0. Which always holds? A x1x2x3x4=0; B x1x3+x2=0; C ¬x1⊕¬x3=¬x2⊕¬x4; D x1+x2+x3+x4=0. Juxtaposition is AND and + is OR.
Your answer
Answer & solution
Official answer: C
XOR parity zero means x1 XOR x3=x2 XOR x4. Complementing both inputs of either XOR leaves its value unchanged, giving ¬x1 XOR ¬x3=¬x2 XOR ¬x4, C. All four variables 1 satisfies the premise but refutes A, B, D.
XOR is addition modulo two. Moving terms across the equality means XORing both sides with the same terms, not ordinary subtraction. Also (¬u)⊕(¬v)=(u⊕1)⊕(v⊕1)=u⊕v because 1⊕1=0. This algebra proves C for every even-parity input, not just a sample assignment.
X is the number of distinct integers representable in 16-bit two’s complement; Y is the corresponding number for 16-bit sign magnitude. Find X−Y.
Answer & solution
Official answer: 1.0 : 1.0
Our answer: 1
Two’s complement has 216 distinct values. Sign magnitude has two encodings of zero, leaving 216−1 distinct values. Hence X−Y=1.
Two’s-complement range is −32768 through 32767, containing 65536 integers. Sign magnitude ranges from −32767 through 32767, containing 65535 integers. Both formats have 65536 bit patterns; the question asks distinct mathematical values, so +0 and −0 count once.
A 4-bit Johnson counter starts at 0000. Choose its decimal sequence. A 0,1,3,7,15,14,12,8,0; B 0,1,3,5,7,9,11,13,15,0; C 0,2,4,6,8,10,12,14,0; D 0,8,12,14,15,7,3,1,0.
Your answer
Answer & solution
Official answer: D
Our answer: D for one shift orientation; A for the reverse
A Johnson counter feeds the complement of one end bit into the other end of a shift register. With the right-shift/MSB-insertion convention, bits fill with ones and then zeros, producing eight states before returning. Reversing the bit-weight convention reflects each four-bit word and converts D into A. Therefore the official D is consistent but not uniquely forced by the direction-free wording; B and C are not this eight-state twisted-ring cycle.
Solution: Complemented end-bit feedback with right shifts gives 0000→1000→1100→1110→1111→0111→0011→0001→0000, the official D. With left shifts and the opposite end-bit feedback, the equally valid Johnson counter gives 0, 1, 3, 7, 15, 14, 12, 8, 0, option A. The question does not specify shift direction or bit-weight orientation; D is conventional, not uniquely implied.
Binary operator ≠ has truth table (p,q,result): (0,0,0),(0,1,1),(1,0,1),(1,1,0). Which properties hold? A commutative and associative; B commutative only; C associative only; D neither.
Your answer
Answer & solution
Official answer: A
Recognize XOR, which is addition modulo 2. Swapping its two inputs preserves their sum modulo 2, proving commutativity. Grouping three inputs either way gives (p+q+r) mod 2, proving associativity. A truth table for only two inputs can show commutativity directly, but associativity needs the three-input relation or this algebraic argument.
Solution: The truth table is XOR. Both (a XOR b) XOR c and a XOR (b XOR c) give parity of the three bits, and a XOR b=b XOR a. Thus the operation is associative and commutative, A.
Boolean operations are f(X,Y,Z)=X′YZ+XY′+Y′Z′ and g(X,Y,Z)=X′YZ+X′YZ′+XY. Which singleton basis is functionally complete? A both; B only {f}; C only {g}; D neither.
Your answer
Answer & solution
Official answer: B
For g, factor Y: X′Y(Z+Z′)+XY=Y(X′+X)=Y. Repeated use of a projection can merely select existing inputs, not synthesize negation. For f, connect the third input to the second: f(X,Y,Y)=X′Y+XY′+Y′=X′Y+Y′=X′+Y′=(XY)′. This constructs NAND without supplying constants; NAND alone realizes NOT and AND and therefore all Boolean functions.
Solution: g=¬XYZ+¬XY¬Z+XY=Y. Compositions of this projection cannot produce all Boolean functions. For f=¬XYZ+X¬Y+¬Y¬Z, substitute Z=Y: f(X, Y, Y)=¬XY+X¬Y+¬Y=¬X+¬Y, NAND. Since NAND alone is functionally complete, f is complete whereas g is not, B.
Positive-edge D and JK flip-flops share a clock. D output drives both J,K; JK output drives D input. Initially D output=1, JK output=0. J=K=1 toggles JK; J=K=0 holds it. Both have nonzero propagation delay. Choose JK output including initial value: A 0110110…; B 0100100…; C 011101110…; D 011001100….
Your answer
Answer & solution
Official answer: A
Denote outputs by d,j to distinguish the JK output from its input terminal names. At an edge d′=j. The JK output toggles exactly when d=1, so j′=j XOR d. Apply both using pre-edge values: (1,0)→(0,1)→(1,1)→(1,0). The JK column is 0,1,1,0,1,1,… . Nonzero propagation delay prevents treating one edge-triggered output update as an input sampled by the other at that same edge.
Solution: Let the old outputs be(D, J), where J denotes the JK output. At a common positive edge, Dnext=J and Jnext=J XOR D. From initial(1, 0), the state sequence is(0, 1),(1, 1),(1, 0), repeating every three edges. The JK output including its initial value is 0110110..., A. Both devices sample old outputs at the edge; propagation delays do not make the updates sequential.
Minimum JK flip-flops for synchronous count output sequence 0, 0, 1, 1, 2, 2, 3, 3, 0, 0, …?
Answer & solution
Official answer: 3
The repeated output at each count needs an internal phase bit: the two appearances of 0 must have different next outputs eventually and cannot be the same deterministic state. The sequence has period 8, requiring eight states and at least 3 bits. A3-bit modulo 8 counter with the low bit suppressed in the output realizes it, so 3 JK flip-flops suffice.
Although only four output values appear, the repeated occurrences need different internal states. If the two consecutive zeros were the same state of an autonomous deterministic counter, they would have the same successor and could not later advance to 1. The complete repeating pattern has period 8, so at least 8 internal states and ceil(log 2 8)=3 flip-flops are required. A modulo 8 counter outputs its two upper bits, holding each value for two clocks, which attains the bound.
How many minterms remain in the minimized function [¬D + A¬B + ¬AC + A¬CD + ¬A¬CD] complemented as a whole? Here juxtaposition is AND and + is OR.
Answer & solution
Official answer: 1
Step through it (11 steps)
For the outer complement to be 1, every inner OR term must be 0. D′=0 requires D=1. With D=1 and C=0, AC′D+A′C′D=A+A′=1, impossible; hence C=1. Then A′C=0 requires A=1, and AB′=0 requires B=1. Conversely A=B=C=D=1 makes all inner terms zero. The function is exactly ABCD, one minterm.
Complementing a sum means that every product inside must be zero. The ¬D term first forces D=1. Then A¬CD and ¬A¬CD combine to ¬C, so C must be 1. With C=1, the term ¬AC forces A=1; with A=1, A¬B forces B=1. Thus exactly A=B=C=D=1 survives. Conversely that assignment makes every original summand zero, verifying the result ABCD and exactly one minterm.
Construct a full adder from two half adders and an OR gate, and a four-bit ripple-carry adder from four such full adders. Each AND/OR gate delay is 1.2 microseconds; each XOR gate delay is 2.4 microseconds. Determine propagation delay, distinguishing a lumped full-adder timing model from gate-level overlapping propagation.
Each XOR delay is 2.4 microseconds and each AND/OR delay 1.2. A full adder made from two half adders has P=A XOR B, sum=P XOR Cin and Cout=AB+P*Cin. Its worst input-to-output delay is 4.8. Multiplying this black-box delay by four gives the published 19.2. However in a gate-aware ripple circuit all four P signals are computed in parallel. The first carry settles by 4.8, and each later carry needs only AND+OR=2.4 more, giving carry delays 4.8, 7.2, 9.6, 12; the last sum also settles by 9.6+2.4=12. Thus 19.2 is a conservative lumped-stage estimate, not the tight standard gate-level propagation bound under simultaneous operand arrival. A fixed zero initial carry or different arrival assumptions can further change sensitized timing. The intended timing model is not explicit.
At gate level all bit propagate signals P=A XOR B become ready after 2.4 microseconds, and generates G=AB after 1.2. The first carry using P·Cin followed by OR is ready after 4.8. Later carries traverse only an AND and OR using already-ready P, adding 2.4 each: 7.2, 9.6 and 12.0. The last sum is also ready at 9.6+2.4=12.0. By contrast, treating each full adder as a black box with worst-case delay 4.8 and multiplying by four gives the published 19.2. These calculations use different overlap assumptions; the source/key discrepancy must remain visible rather than silently selecting a timing model.
For Boolean variables define X#Y=X′+Y′, where prime means NOT and + means OR. Consider S1: (P#Q)#R=P#(Q#R); S2: Q#R=R#Q. Which holds for all Boolean P,Q,R? (A) only S1; (B) only S2; (C) both; (D) neither.
Your answer
Answer & solution
Official answer: B
1. By De Morgan, X′+Y′=NOT(XY). For the counterexample, 0#1=1 and 1#1=0, so the left grouping is 1#1=0 while the right grouping is 0#0=1.
2. X#Y=¬X+¬Y is NAND and is commutative. It is not associative: P=0, Q=1, R=1 gives(P#Q)#R=0 while P#(Q#R)=1. Thus only S2, B.
For Boolean F=P′+QR, with variable order P,Q,R (P most significant) and P′=NOT P, assess S1: F=Σ(4,5,6); S2: F=Σ(0,1,2,3,7); S3: F=Π(4,5,6); S4: F=Π(0,1,2,3,7). Here Σ denotes sum of minterms and Π product of maxterms. Options list truth values S1,S2,S3,S4: (A) F,T,T,F; (B) T,F,F,T; (C) F,F,T,T; (D) T,T,F,F.
Your answer
Answer & solution
Official answer: A
Step through it (13 steps)
1. F=¬P+QR is 1 for all P=0 cases 0..3 and for 111 (7).
2. It is 0 exactly on 4, 5, 6. Therefore sum of minterms 0, 1, 2, 3, 7 and product of maxterms4, 5, 6 are correct: S2, S3, option A.
In positional notation, (43) base x equals (y3) base 8, where x is a valid integer base and y is a valid octal digit. How many (x,y) solutions are possible?
Answer & solution
Official answer: 5
Step through it (9 steps)
1. The complete pairs are (x,y)=(6,3),(8,4),(10,5),(12,6),(14,7). The apparent pair (4,2) is invalid because digit 4 cannot occur in base 4; larger y cannot occur in base 8.
2. The equality gives 4x+3=8y+3, hence x=2y. The base must exceed its largest digit 4, so x≥5, and the octal digit y lies between 0 and 7. Thus y=3, 4, 5, 6, 7 and x=6, 8, 10, 12, 14, giving five solutions.
For Boolean f(w,x,y,z)=Σ(0,2,4,5,6,10), with minterm indexing in variable order w,x,y,z, find the total number of prime implicants. There are no don't-care minterms.
Answer & solution
Official answer: 3
Step through it (11 steps)
1. The four-cell group {0,2,4,6} fixes w=0,z=0; pair {4,5} fixes w=0,x=1,y=0; pair {2,10} fixes x=0,y=1,z=0. All singleton minterms and remaining valid pairs expand into one of these maximal groups. Count prime implicants, not just a selected minimum cover.
2. The maximal all-one cubes are 0--0 covering 0, 2, 4, 6; 010- covering 4, 5; and-010 covering 2, 10. They correspond to w′z′, w′xy′ and x′yz′. No cube can expand without including a zero minterm, and every other valid cube is contained in one of these three. Thus there are 3 prime implicants.
Simplify F(P,Q,R,S)=PQ+P̅QR+P̅QR̅S to a minimal sum of products. A: PQ+QR+QS. B: P+Q+R+S. C: P̅+Q̅+R̅+S̅. D: P̅R+P̅R̅S+P.
Your answer
Answer & solution
Official answer: A
Step through it (11 steps)
1. Method and setup. Factor Q from every term. Then simplify inside the parentheses using absorption X+X̅Y=X+Y twice: first absorb the P̅ factor when P is already present, then simplify R+R̅S. A minimality argument must also show that none of the surviving products is dispensable.
2. Work through the result and its assumptions. Use X+X′Y=X+Y: PQ+P′QR=Q(P+R). Including P′QR′S gives Q[P+P′(R+R′S)]=Q(P+R+S)=PQ+QR+QS. The three products are essential, witnessed by Q=1 with exactly one of P, R, S equal 1. Thus A.
All numerals in the equation (312)/(20)=13.1 use the same unknown base. Determine that base.
Answer & solution
Official answer: 5
Step through it (5 steps)
1. Method and setup. Translate place values before doing arithmetic: 312 means 3b²+b+2, 20 means 2b, and 13.1 means b+3+b⁻¹. The base must be an integer greater than 3 because digit 3 occurs. This restriction removes algebraic roots that are not valid radices.
2. Work through the result and its assumptions. For base b, (3b²+b+2)/(2b)=b+3+1/b. Multiplication gives 3b²+b+2=2b²+6b+2, hence b(b−5)=0. A valid base exceeds the largest digit 3, so b=5.
A 4-to-1 multiplexer has select lines S₁=P and S₀=Q. Data inputs numbered 0,1,2,3 are respectively 0,1,R,R̅, and output is F. Choose the minimal sum of products. A: P̅Q+QR̅+PQ̅R. B: P̅Q+P̅QR̅+PQR̅+PQ̅R. C: P̅QR+P̅QR̅+QR̅+PQ̅R. D: PQR̅.
Your answer
Answer & solution
Official answer: A
1. Method and setup. Enumerate the four select cases 00,01,10,11. Only the last three contribute nonzero outputs: data 1 contributes P̅Q, data R contributes PQ̅R, and data R̅ contributes PQR̅. Simplify this canonical mux expansion, taking care that the select bit order is P then Q.
2. Work through the result and its assumptions. Select inputs are P, Q and data inputs 0, 1, R, R′. Thus F=P′Q+PQ′R+PQR′. The first and third terms combine through P′Q+PQR′=Q(P′+PR′)=P′Q+QR′. Hence F=P′Q+QR′+PQ′R, option A. The minterm P=1, Q=0, R=1 is isolated and requires the three-literal term; the remaining on-set requires two additional implicants, establishing minimality.
The dual Fᴰ of a Boolean expression F(x1,…,xn,+,·,′) swaps OR and AND. F is self-dual if F=Fᴰ. How many self-dual n-variable Boolean functions are there? A 2^n; B 2^(n-1); C 2^(2^n); D 2^(2^(n-1)).
Your answer
Answer & solution
Official answer: D
1. Set up the reasoning. Use the truth-table characterization F(x)=NOT F(NOT x). For n≥1, every input bit vector is paired with a different bitwise-complement vector.
2. Derive the result. By Boolean duality, self-duality means F(x)=¬F(¬x). The2n assignments partition into 2n−1 complementary pairs. Choosing either value on one member determines the opposite value on its partner independently, giving 2^(2n−1) functions, D.
3. Check the interpretation. There are 2n-1 pairs, not n pairs. Each pair permits two independent output assignments, 01 or 10; exponentiating two by the number of pairs gives the function count rather than the number of truth-table rows.
Let k=2^n. Feed an n-bit binary counter into an n-to-2^n decoder. The resulting circuit is equivalent to which counter? A k-bit binary up; B k-bit binary down; C k-bit ring; D k-bit Johnson.
Your answer
Answer & solution
Official answer: C
1. Set up the reasoning. For each binary counter state, the decoder raises exactly the corresponding one of its k outputs. Advancing the binary state moves this single active output to the next position.
2. Derive the result. The decoder activates exactly one of k=2n outputs for each binary count. As the count cycles, the active position circulates through the k outputs, matching the one-hot sequence of a k-bit ring counter, C.
3. Check the interpretation. A ring counter circulates a one-hot pattern through k positions. A k-bit binary counter has 2k states and a Johnson counter normally has 2k states, unlike this decoder's k-state one-hot cycle.
In the numeral equation (123) base 5 = (x8) base y, x is a leading digit and y is an integer base. How many pairs (x,y) are possible?
Answer & solution
Official answer: 3
Step through it (9 steps)
1. Set up the reasoning. Convert the known numeral to decimal: 1×5²+2×5+3=38. The other numeral equals xy+8, so admissible pairs must satisfy xy=30.
2. Derive the result. (123)₅=25+10+3=38, so xy+8=38 and xy=30. A valid base y>8 and a leading digit 1≤x<y leave(x, y)=(1, 30),(2, 15),(3, 10). Thus3 solutions.
3. Check the interpretation. Digit validity is essential: the digit 8 requires y≥9, and x must satisfy 1≤x<y. Check the factor pairs of 30 against these constraints rather than counting every factorization.
IEEE-754 binary32 uses 1 sign bit, 8 biased-exponent bits and 23 fraction bits. A float X is assigned -14.25. What is its hexadecimal representation? A C1640000H; B 416C0000H; C 41640000H; D C16C0000H.
Your answer
Answer & solution
Official answer: A
Step through it (6 steps)
1. Set up the reasoning. Convert the magnitude exactly: 14 is 1110₂ and 0.25 is .01₂. Normalize to 1.11001₂×2³, then encode sign, biased exponent, and the fraction after the implicit leading 1.
2. Derive the result. 14.25=1110.01₂=1.11001₂×2³. The negative sign gives sign bit1, the biased exponent is 127+3=130=10000010₂, and the fraction is 11001000000000000000000. Combining fields gives binary11000001011001000000000000000000, hexadecimalC1640000, A.
3. Check the interpretation. The leading 1 is not stored in the fraction field. The negative sign changes the top bit only; exponent bias is 127, so exponent 3 becomes 130. Group the final 32 bits into nibbles to distinguish C164 from the similar distractor C16C.
For F(P,Q,R,S), the listed minterms are Σm(0,2,5,7,8,10,13,15), with 2,7,8,13 designated don't-cares. Find a minimal SOP. A Q S̅+Q̅ S; B Q̅ S̅+QS; C Q̅ R̅ S̅+Q̅ R S̅+Q R̅ S+QRS; D P̅ Q̅ S̅+P̅ QS+PQS+P Q̅ S̅. Variables in minterm indexing are ordered P,Q,R,S.
Your answer
Answer & solution
Official answer: B
Step through it (10 steps)
Step 1: Required ones are 0,5,10,15; the four designated don't-cares may be used to enlarge groups but do not require coverage. Step 2: Group {0,2,8,10}: P and R vary, while Q=S=0, giving Q̅S̅. Group {5,7,13,15}: P and R vary, while Q=S=1, giving QS. Neither group includes a specified zero. Step 3: These two four-cell implicants cover every required one. One implicant cannot bridge the two regions without including specified zeros, so two terms are necessary. The minimal form is B; C and D split these groups into smaller, nonminimal terms.
A combinational block has inputs x,a,b and output y. It sets y=a when x=1, otherwise y=b. Which block best implements it? A full adder; B priority encoder; C multiplexer; D flip-flop.
Your answer
Answer & solution
Official answer: C
Step 1: Express the two cases algebraically as y=xa+x̅b. Only one product term is enabled for any x. Step 2: This is a two-input data selector: x chooses between data inputs a and b. That is exactly a 2-to-1 multiplexer, C. Step 3: A full adder computes sums, a priority encoder encodes active-input priority, and a flip-flop stores state; no storage or arithmetic is required here.
Three synchronous JK flip-flops have state Q2Q1Q0 initially 000 and a common clock. The drawing's wiring is J2=Q̅1,K2=Q0; J1=Q2,K1=Q̅2; J0=Q1,K0=Q̅0. The crossing before the first flip-flop is a wire jump, not a junction. Which are the next three states? A 001,010,011; B 111,110,101; C 100,110,111; D 100,011,001.
Your answer
Answer & solution
Official answer: C
Step 1: Use the JK characteristic equation Q⁺=J Q̅+K̅ Q, evaluating every input from the same pre-edge state. Do not update flip-flops sequentially. Step 2: At 000, the three (J,K) pairs are (1,0),(0,1),(0,1), so Q2 sets and the other two remain reset: next state 100. Step 3: At 100 the pairs are (1,0),(1,0),(0,1), giving 110. At 110 they are (0,0),(1,0),(1,1), so Q2 holds, Q1 stays set and Q0 toggles to 1, giving 111. Step 4: The sequence is 100,110,111, C. Correctly interpreting the drawn wire jump is essential to these input equations.
With ⊕ denoting XOR, simplify F(P,Q)=((1⊕P)⊕(P⊕Q))⊕((P⊕Q)⊕(Q⊕0)). A P+Q; B complement of (P+Q); C P⊕Q; D complement of (P⊕Q). Here + is Boolean OR.
Your answer
Answer & solution
Official answer: D
Step 1: XOR is associative and commutative, so flatten the expression into 1⊕P⊕P⊕Q⊕P⊕Q⊕Q⊕0. Step 2: Repeated equal pairs cancel because x⊕x=0; three P terms leave one P and three Q terms leave one Q. Zero is neutral, so F=1⊕P⊕Q. Step 3: XOR with 1 complements its operand: F=¬(P⊕Q), the XNOR function, D. Its output is 1 when P and Q agree, distinguishing it from OR and NOR.
What is the smallest integer representable by an 8-bit two’s-complement number? A−256, B−128, C−127, D0.
Your answer
Answer & solution
Official answer: B
An8-bit two’s-complement integer has range−27 through 27−1, hence minimum−128, B.
The leftmost bit has weight−128 and the remaining seven bits have positive weights 64, 32, 16, 8, 4, 2, 1. To minimize the represented integer, set the negative-weight bit to 1 and all positive-weight bits to 0:10000000 represents−128. The opposite endpoint 01111111 represents 127. Unlike sign-magnitude, two’s complement has one more negative value than positive nonzero values, which explains why−127 is not the minimum.
A circuit has inputs D0, D1, D2, D3 and outputs X0, X1, V. For0000 it outputs don’t-care, don’t-care, 0; for 1000 it outputs 0, 0, 1; for x100 it outputs 0, 1, 1; for xx10 it outputs 1, 0, 1; for xxx1 it outputs 1, 1, 1 (input order D0, D1, D2, D3). Identify A priority encoder; B decoder; C multiplexer; D demultiplexer.
Your answer
Answer & solution
Official answer: A
The table outputs the binary index of the highest asserted input, with D3 taking priority over D2, then D1 and D0. Its validity bit distinguishes no active input from input D0. Thus it is a priority encoder, A.
Read the table from highest priority downward. If D3=1, the other inputs are irrelevant and the code is 11. Otherwise D2=1 selects 10; otherwise D1=1 selects 01; otherwise D0=1 selects 00. This is encoding the index of the highest asserted request. A decoder expands a binary code to selected outputs, the reverse direction. A multiplexer selects a data input using separate select lines, not this priority rule. The validity bit is needed because code 00 otherwise cannot distinguish “D0 asserted” from “no input asserted.”
Which does not represent XNOR(x, y)? A xy+¬x¬y; B x XOR ¬y; C ¬x XOR y; D ¬x XOR ¬y.
Your answer
Answer & solution
Official answer: D
Complementing exactly one XOR input produces XNOR, while complementing both leaves XOR unchanged: x′⊕y′=x⊕y. Also xy+x′y′ is XNOR. Thus only D fails to represent XNOR.
XNOR is 1 exactly on equal inputs 00 and 11. Complementing both XOR operands does not change whether they differ, so ¬x XOR ¬y has the same truth values as x XOR y:0, 1, 1, 0. It therefore disagrees with XNOR on every row. Complementing one input toggles equality versus inequality and produces XNOR. The sum xy+¬x¬y directly lists the two equal-input cases.
The truth table X Y f (X, Y) 0 0 0 0 1 0 1 0 1 1 1 1 represents the Boolean function (A) X (B) X + Y (C) X ⊕ Y (D) Y
Your answer
Answer & solution
Official answer: A
For X=0 both rows output 0, and for X=1 both rows output 1, regardless of Y. Thus f(X, Y)=X, option A.
Check: Using minterms, the two true rows give XȲ+XY. Factor X to obtain X(Ȳ+Y)=X. X+Y would wrongly output 1 on input 01, while XOR would wrongly output 0 on 11.
The amount of ROM needed to implement a 4 bit multiplier is (A) 64 bits (B) 128 bits (C) 1 Kbits (D) 2 Kbits
Your answer
Answer & solution
Official answer: D
Two four-bit operands supply eight address bits, so a ROM table needs 28=256 entries. Their product ranges up to 15×15=225 and needs eight output bits. Total ROM capacity is 256×8=2048 bits=2 Kbits, D, using binary K.
Check: The address is the concatenation of the two operands, not their sum, so four bits are insufficient to index all operand pairs. Although there are fewer distinct products than pairs, a direct ROM lookup still reserves one eight-bit output word for each of 256 addresses.
Minimize the following four-variable Karnaugh map. Columns ab are 00,01,11,10; rows cd are 00,01,11,10. In that order the rows are [1,X,X,1], [X,0,0,1], [0,0,0,0], [1,0,0,X]. X denotes a don’t-care; blank cells in the source denote zero. A bar denotes complement. (A) b̄d̄ (B) b̄d̄+b̄c̄ (C) b̄d̄+ab̄c̄d (D) b̄d̄+b̄c̄+c̄d̄.
Your answer
Answer & solution
Official answer: B
Step through it (11 steps)
Use Gray-order rows cd=00, 01, 11, 10 and columns ab=00, 01, 11, 10, treating blank cells as zero. The four corners form a wraparound group using the don’t-care at row10, column 10, giving b̄d̄. Rows00 and 01 in the two outer columns form a second wraparound group using the don’t-care at row01, column 00, giving b̄c̄. Their union covers all required ones without covering a zero. No single implicant can cover both required cells with cd=01 and cd=10 without including row11 zeros. Thus the minimal expression is b̄d̄+b̄c̄, B.
Check: Each selected four-cell group varies a and one of c,d, eliminating those variables. In the corner group b=0,d=0 stay fixed; in the rows 00/01 outer-column group b=0,c=0 stay fixed. A don’t-care may be used as 1 to enlarge a group but need not be covered.
Which circuit is NOT equivalent to a two-input XNOR? Let the upper and lower inputs be x and y. The structural descriptions below replace the source gate drawings; NOT, AND, OR and XOR denote gates.
(A) XOR(x,y) followed by NOT (B) NOT both inputs, feed them to XOR, then NOT its output (C) NOT x, then XOR with y (D) Invert y to y'; feed x and y' to an AND followed by NOT and also to an OR; AND those two outputs and then invert
Your answer
Answer & solution
Official answer: D
A complements XOR. B complements both XOR inputs and then its output, also producing XNOR. C complements exactly one XOR input, again XNOR. In D, let top input be x and lower input y. The inner branches are (xy′)′ and x+y′; the final NAND gives [(xy′)′(x+y′)]′, which is the complement of XOR(x, y′), hence XOR(x, y). Thus D is not XNOR. The wire bridge was checked in the source.
A truth-table check makes the distinction explicit. XNOR has outputs 1,0,0,1 for inputs 00,01,10,11. Inverting both XOR inputs leaves XOR unchanged, whereas inverting exactly one input complements XOR, explaining A through C. For D, write u=x and v=y'. The product (uv)'(u+v) equals u XOR v. The final inversion yields NOT(x XOR y')=x XOR y, whose outputs are 0,1,1,0, the opposite of the target.
Find the simplified sum-of-products form of (P+Q'+R')(P+Q'+R)(P+Q+R'), where + is OR, juxtaposition is AND, and ' denotes complement.
(A) P'Q+R' (B) P+Q'R' (C) P'Q+R (D) PQ+R
Your answer
Answer & solution
Official answer: B
Step through it (10 steps)
Using (P+A)(P+B)=P+AB, the product becomes P+(Q′+R′)(Q′+R)(Q+R′). The first two residual factors reduce to Q′. Then Q′(Q+R′)=Q′R′, yielding P+Q′R′, B.
First combine the first two factors by taking their common term X=P+Q': (X+R')(X+R)=X+R'R=X. The remaining product is (P+Q')(P+Q+R'). Apply the same common-term identity with common P to obtain P+Q'(Q+R')=P+Q'R'. This two-stage simplification avoids a long expansion of all eight products and makes the absorption of Q'Q=0 explicit.
Similar questions1 more → · asked again: GATE 1994, Q2.1
Flip-flops for modulus258
Counters & Timing
Tap to enlarge
What is the minimum number of D flip-flops needed for a modulo-258 counter?
(A) 9 (B) 8 (C) 512 (D) 258
Your answer
Answer & solution
Official answer: A
k flip-flops provide at most 2k states. Since28=256<258≤512=29, at least 9 are needed; a 9-bit counter with suitable reset logic suffices. Hence A.
A modulo-m counter needs m distinct states before repeating. Each flip-flop stores one binary bit, so k of them encode at most 2k different combinations. Taking a ceiling gives k=ceil(log2 258)=9. The 9-bit device has extra possible combinations, but logic can reset or redirect the sequence after 258 states. Options 258 and 512 confuse the number of states with the number of storage bits.
Three synchronous D flip-flops have outputs P,Q,R. The source circuit connects R directly to D_P, a NOR of P and R to D_Q, and an AND of Q and the complemented R output to D_R. All sample simultaneously at a clock edge. If PQR=010 immediately before the edge, what is PQR afterward?
(A) 000 (B) 001 (C) 010 (D) 011
Your answer
Answer & solution
Official answer: D
Tracing the wires, including the bridge crossings, gives next-state equations P_next=R, Q_next=NOT(P OR R), and R_next=Q AND NOT R. The upper two gate inputs are P and R; the lower AND gate uses Q and the complemented output of R. All D flip-flops update simultaneously from the pre-edge values. For PQR=010 this gives P_next=0, Q_next=1, R_next=1, so the next state is 011, option D.
For a D flip-flop, the output after the edge equals its D input just before the edge. Substitute the old values P=0,Q=1,R=0 into all three equations: D_P=0; D_Q=NOT(0 OR 0)=1; D_R=1 AND NOT 0=1. Assemble the new values in P,Q,R order as 011. Do not feed the newly computed R back into P in this same step; that would model sequential assignments rather than simultaneous hardware sampling.
Three synchronous D flip-flops have outputs P,Q,R and connections D_P=R, D_Q=NOR(P,R), D_R=AND(Q,NOT R). All sample simultaneously. Starting with all flip-flops reset to zero, how many distinct output states occur?
(A) 3 (B) 4 (C) 5 (D) 6
Your answer
Answer & solution
Official answer: B
From the figure the synchronous next-state equations are P_next=R, Q_next=NOT(P OR R), and R_next=Q AND NOT R. Starting from the power-on reset 000 gives 000→010→011→100→000. These four states are distinct, and the return to 000 repeats the same deterministic cycle. Thus the number of reachable states from reset is 4, option B; the question does not ask for all eight possible register patterns.
Evaluate every transition with the same pre-edge rule. At 000 the next bits are 0,1,0. At 010 they are 0,1,1. At 011 they are 1,0,0. At 100 they are 0,0,0. The reset state is included in the count, so there are four distinct states before repetition, not three transitions away from reset. A three-bit register can represent eight states, but its next-state logic and initialization restrict the reachable sequence.
Find the minterm expansion of f(P,Q,R)=PQ+Q¬R+P¬R. Use P,Q,R as the most-significant to least-significant bits of each minterm index. Options: (A) m₂+m₄+m₆+m₇; (B) m₀+m₁+m₃+m₅; (C) m₀+m₁+m₆+m₇; (D) m₂+m₃+m₄+m₅.
Your answer
Answer & solution
Answer: A (no official key was published)
Step through it (11 steps)
The expression is PQ+Q R̄+P R̄, with variable order P,Q,R. PQ covers minterms 6 and 7; Q R̄ covers 2 and 6; P R̄ covers 4 and 6. Taking their union gives m₂+m₄+m₆+m₇, option A. Repeated minterm 6 is included only once.
To convert products to minterms, include missing variables: PQ=PQ¬R+PQR, Q¬R=¬PQ¬R+PQ¬R, and P¬R=P¬Q¬R+PQ¬R. Their binary assignments are 110,111; 010,110; and 100,110. OR is idempotent, so duplicate 110 is not counted again. The resulting truth vector in index order 0 through 7 is 00101011.
A signed 16-bit integer P has two’s-complement hexadecimal representation F87B. What is the 16-bit two’s-complement representation of 8P? Options: (A) C3D8; (B) 187B; (C) F878; (D) 987B.
Your answer
Answer & solution
Answer: A (no official key was published)
Step through it (5 steps)
The 16-bit pattern F87B represents 0xF87B−0x10000=−1925. Multiplication by 8 gives −15400, which is within the signed 16-bit range. Its two’s-complement encoding is 65536−15400=50136=0xC3D8, A; equivalently shift F87B left three positions and retain 16 bits.
The top hexadecimal digit F sets the sign bit, so interpreting F87B as an unsigned positive number without subtracting 216 gives the wrong signed value. The range check −32768≤−15400≤32767 confirms that multiplying by eight does not overflow here. Hexadecimal shifting also gives F87B×8=7C3D8, whose low four digits are C3D8.
A 4-to-1 multiplexer has data inputs I₀=R, I₁=¬R, I₂=¬R, I₃=R. The select inputs are S₁=P and S₀=Q (S₁ is the more significant selection bit). Find its output f. Options: (A) ¬(P⊕Q⊕R); (B) P⊕Q⊕R; (C) P+Q+R; (D) ¬(P+Q+R).
Your answer
Answer & solution
Answer: B (no official key was published)
The select bits are S₁=P and S₀=Q. Inputs 0 and 3 equal R, while inputs 1 and 2 equal R̄. Thus f=R when P=Q and f=R̄ when P≠Q, exactly f=P⊕Q⊕R, option B.
The four select combinations are PQ=00→R, 01→¬R, 10→¬R, 11→R. XOR with P⊕Q flips R exactly in the middle two cases, establishing the answer for both possible R values. For example P=Q=R=0 yields f=0, immediately excluding the complemented-XOR and complemented-OR choices.
A combinational circuit consists entirely of 2-input NOR gates. Define NOR(x,y)=¬(x+y). Its wiring is a=NOR(P,Q), b=NOR(Q,R), c=NOR(P,R), d=NOR(Q,R), u=NOR(a,b), v=NOR(c,d), and f=NOR(u,v). What is f? Options: (A) ¬(Q+R); (B) ¬(P+Q); (C) ¬(P+R); (D) ¬(P+Q+R).
Your answer
Answer & solution
Answer: A (no official key was published)
The top second-level NOR gives complement(complement(P+Q)+complement(Q+R))=(P+Q)(Q+R)=Q+PR. The bottom gives (P+R)(Q+R)=R+PQ. The final NOR complements their sum: f=complement(Q+PR+R+PQ)=complement(Q+R), since PR is absorbed by R and PQ by Q. Thus A.
De Morgan’s law turns a NOR of two complemented OR expressions into an AND of the original OR expressions. The identity (X+Y)(X+Z)=X+YZ then simplifies the two intermediate branches. Finally Q+PQ=Q and R+PR=R remove the terms containing P entirely, so the output is independent of P despite P appearing in the wiring.
Two positive-edge-triggered T flip-flops have both T inputs tied to logic 1. The external clock drives the first, whose output is Q₀; Q₀ directly clocks the second, whose output is Q₁. Starting from Q₁Q₀=00, what are the next four settled values after successive external positive clock edges? Options: (A) 11,10,01,00; (B) 10,11,01,00; (C) 10,00,01,11; (D) 11,10,00,01.
Your answer
Answer & solution
Answer: A (no official key was published)
Both T inputs are tied to 1, so each flip-flop toggles on a positive clock edge. Q₀ toggles on every external edge; Q₁ is clocked by Q₀ and therefore toggles only on Q₀ transitions 0→1. Starting at Q₁Q₀=00, the settled states after successive external edges are 11,10,01,00. Option A; the ripple clock is not a common synchronous clock.
Trace the clock-sensitive events: on edge 1, Q₀ rises 0→1 and triggers Q₁, giving 11. On edge 2, Q₀ falls 1→0, so Q₁ stays 1, giving 10. Edge 3 raises Q₀ and toggles Q₁ back to 0, giving 01. Edge 4 only lowers Q₀, returning to 00. Ripple propagation delays are ignored when listing settled states.
Convert octal 1217 to the equivalent choice: A hexadecimal 1217; B hexadecimal 028F; C decimal 2297; D hexadecimal 0B17.
Your answer
Answer & solution
Answer: B (no official key was published)
Step through it (10 steps)
Octal 1217 expands to binary 001 010 001 111. Grouping in fours gives 0010 1000 1111, hexadecimal 28F, or 028F with a leading zero. Hence B. Its decimal value is 512+128+8+7=655.
Using place values, octal 1217 equals 1·8³+2·8²+1·8+7=512+128+8+7=655. Divide into hexadecimal place values:655=2·256+8·16+15, so it is 028F hexadecimal. The same conversion follows by octal digit triples 001010001111, regrouped into binary quartets 0010 1000 1111.
Implement F=AB+C using only two-input NOR gates. Find the minimum gate count: A 2; B 3; C 4; D 5.
Your answer
Answer & solution
Answer: B (no official key was published)
Factor AB+C=(A+C)(B+C). Compute u=NOR(A, C), v=NOR(B, C), then NOR(u, v)=(A+C)(B+C), using three gates. Two do not suffice: with at most two gates, the final NOR receives only primary inputs and the output of one preceding NOR; exhaustive truth-table enumeration of all such input choices finds no realization. Thus 3, B. The accompanying check script verifies the lower bound without assuming complementary inputs are supplied.
Use the product-of-sums identity AB+C=(A+C)(B+C). Gate 1 gives ¬(A+C); gate 2 gives ¬(B+C); their NOR yields ¬[¬(A+C)+¬(B+C)]=(A+C)(B+C). Thus three gates suffice. With only two NOR gates, the last gate can take raw inputs and at most one derived NOR signal; checking these structural possibilities cannot produce this three-variable function. The accompanying exhaustive small-circuit checker supplies the lower-bound check, so three is minimal.
A two-bit state AB starts 00. For input 0, states 00, 01, 10, 11 transition respectively to 00, 10, 01, 10 with outputs 1, 0, 0, 0. For input 1 they transition to 01, 00, 01, 00 with outputs 0, 1, 1, 1. Minimum input length that arrives in 01 while emitting 1? A 3; B 4; C 5; D 6.
Your answer
Answer & solution
Answer: A (no official key was published)
The only transition ending in state 01 with output 1 is from state 10 on input 1. From 00, reaching 10 requires at least two inputs:00 --1/0-->01 --0/0-->10. Appending 1 reaches 01 and emits 1. Thus input 101 achieves the target in 3 steps, and the predecessor argument rules out shorter inputs. Answer A.
Work backward from the desired transition: among rows ending in 01, output 1 occurs only from 10 on input 1. From initial 00, a single input reaches only 00 or 01, never 10, so at least two inputs are needed before the final 1. Input 1 reaches 01 with output 0, then 0 reaches 10 with output 0, then 1 reaches 01 with output 1. This witness 101 has length 3 and matches the lower bound.
In IEEE floating-point representation, what does hexadecimal 0x00000000 represent?
(A) Normalized value 2^(−127) (B) Normalized value 2^(−126) (C) Normalized value +0 (D) Special value +0
Your answer
Answer & solution
Answer: D (no official key was published)
Step through it (6 steps)
1. Split binary32 into sign, exponent and fraction fields. Every field is zero here. 2. An all-zero exponent is reserved for zero/subnormal encodings, so the normalized-number formula with an implicit leading 1 does not apply. 3. The zero fraction makes the magnitude zero; sign bit 0 makes it +0. This is the special value in D.
Minimize the Karnaugh map. Columns ab are 00,01,11,10; rows cd are 00,01,11,10. Rows of cell values are [1,1,0,1], [X,0,0,0], [X,0,0,0], [1,1,0,X]. X is a don’t-care; blank source cells are zero. Prime denotes complement.
1. Treat the map edges as adjacent. The four corners form a legal group by using the bottom-right don’t-care; b and d are zero throughout, giving b′d′. 2. Group the cells in the top and bottom rows of the left two columns. Here a=d=0, giving a′d′. 3. The union covers every specified 1 without any specified 0, so f=b′d′+a′d′, A. One implicant cannot cover both required ab=01 and ab=10 regions without including a forbidden ab=11 cell, so two terms are needed.
(A) Decimal 10 (B) Decimal 11 (C) Decimal 10 and 11 (D) Any valid radix greater than 2
Your answer
Answer & solution
Answer: D (no official key was published)
1. Interpret the digits by place value: 121ᵣ=r²+2r+1=(r+1)², while 11ᵣ=r+1. 2. The positive square root is r+1 for every positive radix. 3. Digit 2 is valid only when the integer radix exceeds 2. Hence all valid r>2 satisfy the equation, D; there is nothing special about decimal 10 or 11.
An AND gate combines f₁ and f₂, and its output is ORed with f₃ to produce f. Given f₁=Σm(4,5,6,7,8), f₃=Σm(1,6,15), f=Σm(1,6,8,15), which offered f₂ works?
(A) Σm(4,6) (B) Σm(4,8) (C) Σm(6,8) (D) Σm(4,6,8)
Your answer
Answer & solution
Answer: C (no official key was published)
1. The circuit computes f=(f1∧f2)∨f3. Minterm8 must be supplied through f1f2, while 4,5,7 must not be introduced. 2. Of the options, only f2=Σm(6,8) meets these conditions, giving final set{1,6,8,15}, C. The internal function is not uniquely determined over all possible minterms: values outside f1’s support are irrelevant and minterm 6 is already covered by f3. 3. C is the unique compatible supplied choice.
Simplify (P+Q′)(PQ′+PR)(P′R′+Q′), where + is Boolean OR and juxtaposition is AND.
(A) PQ′ (B) PR′ (C) PQ′+R (D) PR′+Q
Your answer
Answer & solution
Answer: A (no official key was published)
Step through it (9 steps)
1. Factor the middle term as P(Q′+R), so when P=0 the whole expression is 0. 2. For P=1, the first factor P+Q′ is 1; the middle is Q′+R; the last P′R′+Q′ is Q′. 3. Absorption gives (Q′+R)Q′=Q′. Combining both P cases yields PQ′, A. This checks the full function, not just a selected input.
What is the maximum number of different Boolean functions on n Boolean variables? Options: (A) n² (B) 2^n (C) 2^(2^n) (D) 2^(n²)
Your answer
Answer & solution
Answer: C (no official key was published)
1. Approach. First count truth-table rows, not functions. A truth table has 2n rows; choosing an output bit independently for every row determines one function.
2. Derivation and interpretation. There are 2n input assignments. Each can independently be assigned output 0 or 1, giving 22^n distinct Boolean functions, C. This counts functions on n variables, including those independent of some variables.
How many 3-to-8 line decoders, each with an enable input, are needed to build a 6-to-64 line decoder without other logic gates? Options: (A) 7 (B) 8 (C) 9 (D) 10
Your answer
Answer & solution
Answer: C (no official key was published)
1. Approach. Split the six inputs into two groups of three. One decoder selects a bank, and each selected bank decodes the remaining three inputs.
2. Derivation and interpretation. One 3-to 8 decoder decodes the upper three bits into eight enable signals. Each enables one of eight further 3-to 8 decoders for the lower three bits. Total 1+8=9, C, assuming compatible enable/output polarities. Eight final decoders are required to provide 64 outputs, and another is needed to select their banks without extra gates.
For f(w,x,y,z)=Σm(1,3,4,6,9,11,12,14), which statement is true? Minterm bits are in w,x,y,z order. Options: (A) Independent of one variable (B) Independent of two variables (C) Independent of three variables (D) Dependent on all variables
Your answer
Answer & solution
Answer: B (no official key was published)
Step through it (10 steps)
1. Approach. List x,z for the selected minterms: each has either x=0,z=1 or x=1,z=0. Both w values and both y values occur for each such pair.
2. Derivation and interpretation. Pairing minterms differing in w or y leaves membership unchanged. The given minterms are exactly those with x≠z, so f=x⊕z. It depends on x,z but not w,y, hence is independent of two variables, B.
Let f(w,x,y,z)=Σm(0,4,5,7,8,9,13,15), with minterm bits in w,x,y,z order. Which listed expressions are NOT equivalent to f? Prime denotes complement. The source expressions are: P = x′y′z′ + w′xy′ + wy′z + xz Q = w′y′z′ + wx′y′ + xz R = w′y′z′ + wx′y′ + xyz + xy′z S = x′y′z′ + wx′y′ + w′y Options: (A) P only (B) Q and S (C) R and S (D) S only
Your answer
Answer & solution
Answer: D (no official key was published)
1. Approach. Read each complement mark carefully before testing equivalence. The source has Q=w′y′z′+wx′y′+xz. Expand product terms into minterms, or enumerate all sixteen inputs; a single extra or missing minterm disproves equivalence.
2. Derivation and interpretation. P, Q and R each produce minterms {0,4,5,7,8,9,13,15}, exactly the target set. For Q, w′y′z′ covers {0,4}, wx′y′ covers {8,9}, and xz covers {5,7,13,15}. For R, xyz+xy′z=xz, so R equals Q. S instead produces {0,2,3,6,7,8,9}: for instance input 0010 makes w′y true although minterm 2 is not in f. Thus only S is not equivalent, option D. The previous B answer resulted from dropping the prime on z in Q; the scanned original visibly contains that prime. This is a source-based independent correction, not an official-key match.
Define X*Y=XY+X′Y′ for Boolean variables, and let Z=X*Y. Consider P: X=Y*Z; Q: Y=X*Z; R: X*Y*Z=1. Which statements hold? Options: (A) Only P and Q (B) Only Q and R (C) Only P and R (D) All P,Q,R
Your answer
Answer & solution
Answer: D (no official key was published)
1. Approach. The connective is equivalence/XNOR. Express it as 1⊕X⊕Y, then substitute the definition of Z; each variable appearing twice cancels under XOR.
2. Derivation and interpretation. The operation is XNOR, representable over modulo 2 arithmetic as X*Y=1⊕X⊕Y. With Z=1⊕X⊕Y, we get Y*Z=X and X*Z=Y. Moreover (X*Y)*Z=Z*Z=1; XNOR is associative here. Therefore all P,Q,R hold, D.
Only one multiplexer and one inverter may implement an arbitrary Boolean function of n variables. What is the minimum universal multiplexer size? Options: (A) 2^n-to-1 (B) 2^(n+1)-to-1 (C) 2^(n−1)-to-1 (D) 2^(n−2)-to-1
Your answer
Answer & solution
Answer: C (no official key was published)
1. Approach. Shannon expansion fixes selector variables and leaves a cofactor at each data input. If one variable remains, its only four Boolean functions are 0,1,x,x′, all available with constants, a wire and one inverter.
2. Derivation and interpretation. Use n−1 variables as selector bits of a 2n−1-to 1 multiplexer. For each selector assignment the remaining one-variable function is 0,1,x or x′, so a single shared inverter suffices. A smaller selector set leaves at least two variables; some cofactors, such as two-variable parity, cannot be supplied by a constant, a wire or one inversion. Thus the universal size under direct-variable selector wiring is 2n−1:1, C.
For a 4-bit carry-lookahead adder, Pi=Ai⊕Bi, Gi=AiBi, Si=Pi⊕Ci and C_(i+1)=Gi+PiCi, where C0 is the input carry. All Pi and Gi are already available. With two-level AND–OR logic and unbounded gate fan-in, how many AND and OR gates are required for the carry generator used with outputs S3,S2,S1,S0,C4? Options: (A) 6 AND,3 OR (B) 10 AND,4 OR (C) 6 AND,4 OR (D) 10 AND,5 OR
Your answer
Answer & solution
Answer: B (no official key was published)
1. Approach. Expand every carry directly in terms of P,G,C0, avoiding a ripple chain. C1 has one product needing AND; C2 has two; C3 three; C4 four. The standalone Gi terms need no AND gates.
2. Derivation and interpretation. Expand C1=G0+P0C0; C2=G1+P1G0+P1P0C0; similarly C3 and C4 have 3 and 4 nontrivial product terms. With unbounded fan-in and all P,G supplied, the four carry outputs require 1+2+3+4=10 AND gates and one OR gate each, totaling 4 OR gates. Thus B. XOR sum generation is outside this AND/OR carry-generator count.
A 4-bit up-counter has outputs A4,A3,A2,A1 from most to least significant. Control table: Clear=1 asynchronously clears to 0; Clear=0,Load=0,Count=0 holds; Clear=0 on a rising clock with Load=1 loads the parallel input; Clear=0 on a rising clock with Load=0,Count=1 counts up. The circuit fixes Count=1, Load=0 and parallel input=0011, and connects Clear=A3 AND A1. Starting at 0 and neglecting all gate/counter delays, which stable count cycle occurs? Options: (A) 0,3,4 (B) 0,3,4,5 (C) 0,1,2,3,4 (D) 0,1,2,3,4,5
Your answer
Answer & solution
Answer: C (no official key was published)
1. Approach. First determine whether the parallel input is enabled. It is not, since Load=0. Then find the first binary count making the asynchronous clear condition true; that state immediately disappears.
2. Derivation and interpretation. The clear input is the AND of outputs A 3 and A 1. With Load=0 the displayed 0011 input is ignored and the device counts upward from 0. The first count having A 3=A 1=1 is 0101=5, which immediately asserts asynchronous clear. With negligible delays this transient 5 is not a stable count state; the stable cycle is 0,1,2,3,4 and back to 0, C.
A free-running clock has 50% duty cycle; waveform f changes only at its falling edges. Which two-stage clocked-D circuit delays f by 180°? Textual circuit options specify (stage-1 D input, stage-1 clock, stage-1 output wired to stage-2 D, stage-2 clock); every final output is stage-2 Q. The source does not resolve whether “clocked D flip-flops” means level-sensitive stages or edge-triggered devices. Options: (A) (¬f, ¬clk, Q̄, clk) (B) (¬f, clk, Q, ¬clk) (C) (f, clk, Q, ¬clk) (D) (f, ¬clk, Q̄, clk)
Your answer
Answer & solution
Answer: A under the intended two-phase storage model (no official key was published)
1. In A the first D storage stage is enabled by inverted clock, receives ¬f, and exposes its complemented output, restoring f. The second stage is driven by the original clock.
2. Under a level-sensitive two-phase interpretation, a change of f at the falling edge propagates through the first stage during the low half-cycle and becomes visible through the second at the next rising edge: delay T/2, or 180 degrees of the clock. D gives the wrong polarity; B and C use the opposite phase order.
3. If these are literal falling-edge-triggered flip-flops, f changes at the sampling edge and setup/hold timing is unspecified, so reliable half-cycle delay is not guaranteed. The the paper says clocked D flip-flops without resolving this distinction.
4. Teaching check: Distinguish signal inversion from delay: feeding ¬f and then using Q̄ restores f’s polarity. The complementary clocks create the intended half-period separation. Reliable edge-triggered sampling additionally requires setup/hold margins, which the statement does not supply for f changing exactly at a clock edge.
Two 2:1 multiplexers are cascaded. The first has input 0=x, input 1=¬y and select=z. Its output drives input 0 of the second; second input 1=x and select=y. A select value of 0 chooses input 0. Which expression represents output f(x,y,z)? Here + means OR and juxtaposition AND. Options: (A) x¬z+xy+¬yz (B) x¬z+xy+¬(yz) (C) xz+xy+¬(yz) (D) xz+x¬y+¬yz
Your answer
Answer & solution
Answer: A (no official key was published)
1. The first mux outputs x¬z+¬yz. The second selects that output when y=0 and x when y=1, giving f=¬y(x¬z+¬yz)+xy=x¬y¬z+¬yz+xy.
2. By absorption/consensus this equals x¬z+xy+¬yz, option A. The first mux’s lower input is complemented y, not y.
3. Teaching check: For a 2:1 mux use output=¬select·input 0+select·input 1. Apply this formula first to z, then to y. Keeping the complemented lower input of the first mux is essential; overlooking that inversion changes the truth table.
Two three-bit unsigned words a₂a₁a₀ and b₂b₁b₀ are added with carry-in c. Which Boolean expression is the block carry-generate function (outgoing carry generated independently of c)? Here + means OR, juxtaposition AND, and ⊕ XOR. The expanded alternatives below follow the clearer GateForum typesetting. Options: (A) a₂b₂+a₂a₁b₁+a₂a₁a₀b₀+a₂a₀b₁b₀+a₁b₂b₁+a₁a₀b₂b₀+a₀b₂b₁b₀ (B) a₂b₂+a₂b₁b₀+a₂a₁b₁b₀+a₁a₀b₂b₁+a₁a₀b₂+a₁a₀b₂b₀+a₂a₀b₁b₀ (C) a₂+b₂+(a₂⊕b₂)(a₁+b₁+(a₁⊕b₁)(a₀+b₀)) (D) a₂b₂+¬a₂a₁b₁+¬(a₂a₁)a₀b₀+¬a₂a₀¬b₁b₀+a₁¬b₂b₁+¬a₁a₀¬b₂b₀+a₀¬(b₂b₁)b₀
Your answer
Answer & solution
Answer: A (no official key was published)
1. Let gi=ai bi and pi=ai+bi. The carry generated independently of c0 is G=g2+p2g1+p2p1g0.
2. Expanding gives a2b2+a2a1b1+b2a1b1+a2a1a0b0+a2b1a0b0+b2a1a0b0+b2b1a0b0, the seven terms of A. This tests whether the three-bit sum generates an outgoing carry when c0=0, not whether an incoming carry propagates.
3. Teaching check: At one bit, carry-out is gᵢ+pᵢ·carry-in, where gᵢ=aᵢbᵢ and the OR-based propagation pᵢ=aᵢ+bᵢ is sufficient. Substitute this recurrence across bits 0,1,2 and collect the terms independent of the external carry. Those terms form the block generate function.
Three D flip-flops q₂,q₁,q₀ start at 000 and share a clock. Wiring: D₂=q₁, D₁=q₀⊕q₂, D₀=data. Feed the bits 100110000, left to right, one per clock. What is the final q₂q₁q₀? Options: (A) 000 (B) 001 (C) 010 (D) 101
Your answer
Answer & solution
Answer: C (no official key was published)
1. On each clock, update simultaneously(q2,q1,q0)←(q1,q0⊕q2,data). Starting000 and feeding 100110000 left to right gives 001,010,100,011,111,100,010,100,010.
2. The final state is 010, C. All right-hand-side register values are from before the clock edge.
3. Teaching check: Simultaneous updates mean q₂ receives the old q₁, not a value just calculated in the same cycle. Keep two state triples, old and new, when tracing. The supplied nine-bit string includes four trailing zero inputs; those clocks still shift and feed back state.
For f(w,x,y,z)=Σm(5,7,11,12,13,15), only one input changes at a time. A transition between adjacent ON minterms must never cause a momentary zero. Which cube cover avoids such static-1 hazards? The options below explicitly use GateForum p11; its D begins wzy, while the corresponding GFG term is too blurred to establish. This question therefore retains a source discrepancy rather than silently repairing an option. Options: (A) {¬wxz, wx¬y, x¬yz, xyz, wyz} (B) {wxy, ¬wxz, wyz} (C) {wx·overline(yz), xz, w¬xyz}; the printed bar spans yz, retaining the source bar-scope ambiguity (D) {wzy, wyz, wxz, ¬wxz, x¬yz, xyz}
Your answer
Answer & solution
Answer: Proven cover given; option letter unresolved (no official key was published)
1. For a two-level AND-OR cover to avoid static-1 hazards on single-input changes, every adjacent pair of ON minterms must share a cube. The adjacent pairs are(5,7),(5,13),(7,15),(11,15),(12,13),(13,15).
2. The cover{xz,wyz,wx¬y} covers all six and exactly the ON set. Equivalently, the six edge cubes are{¬wxz,x¬yz,xyz,wyz,wx¬y,wxz}.
3. Option A lacks a cube spanning 13↔15; option C leaves 12↔13 unbridged if its first term is read as wx¬y¬z.
4. Neither reading makes C valid.
5. Thus a corrected D containing wx¬y would work, but the paper warrants silently claiming that printed D is correct. Original wording/key are needed to resolve the letter.
6. Teaching check: Ordinary truth-table equivalence does not by itself guarantee hazard freedom. For every adjacent ON pair, one product term must remain asserted throughout the changing input. The independently derived valid cover {xz,wyz,wx¬y} can be verified by checking both its ON set and its coverage of all six ON edges.
An ordinary binary adder adds two n-bit two’s-complement numbers aₙ₋₁…a₀ and bₙ₋₁…b₀. Its result bits are cₙ₋₁…c₀ and carry-out is c_out. Which expression detects signed overflow? Let a=aₙ₋₁,b=bₙ₋₁,c=cₙ₋₁. Both reproductions print a continuous bar over ab in the second term of B; its scope must not be silently normalized. Options: (A) c_out·¬(a⊕b) (B) ab¬c+overline(ab)c [continuous source bar; intended separate-literal reading: ab¬c+¬a¬bc] (C) c_out⊕c (D) a⊕b⊕c
Your answer
Answer & solution
Answer: B only under separate-literal complement reading; printed grouped bar is ambiguous (no official key was published)
1. Signed overflow occurs when both operand sign bits agree and the result sign differs: V=ab¬c+¬a¬bc. For example, two positive operands overflowing the positive range give a=b=0,c=1.
2. Read literally as a grouped complement, the printed expression is ab¬c+¬(ab)c, not the standard overflow expression.
3. A counterexample is four-bit −8+1=−7: a=1,b=0,c=1, with no signed overflow, but ¬(ab)c=1. Therefore printed B works only if its spanning bar is intended to mean separately complemented literals. That intended reading must be stated explicitly; the original official wording and key are unavailable.
4. The other expressions are not general overflow detectors. With four-bit −1+1=0, c_out=1,c=0 and C incorrectly signals overflow. D fails on −8+(−1), whose sign bits are a=b=1,c=0: D=0 although overflow occurs. A misses positive overflow 7+1 because c_out=0.
5. Teaching check: Compute overflow from operand and result signs, then check the scope of every complement. Carry-out is an unsigned carry indicator, not signed overflow. The retained B answer is conditional on the separate-literal reading, not a verified literal-source or official-key answer.
Let h₃h₂h₁h₀ be the four-bit reflected Gray code of n, and g₃g₂g₁g₀ the Gray code of (n+1) mod 16. Minterm indices refer to the current Gray word h. Which next-bit function is correct? GateForum A includes minterm 3; GFG appears to print 5 in that position. Options: (A) g₀=Σm(1,2,3,6,10,13,14,15) [GateForum; GFG: 1,2,5,6,10,13,14,15] (B) g₁=Σm(4,9,10,11,12,13,14,15) (C) g₂=Σm(2,4,5,6,7,12,13,15) (D) g₃=Σm(0,1,6,7,10,11,12,13)
Your answer
Answer & solution
Answer: C (no official key was published)
1. Use h(n)=n⊕(n>>1) and g=h((n+1) mod16). Enumerating n=0,...,15 gives the ON-set for g2, indexed by the present Gray word h, as{2,4,5,6,7,12,13,15}, exactly C.
2. As cross-checks, g0 has{0,1,6,7,10,11,12,13}, g1 has{1,2,3,6,10,13,14,15}, and g3 has{4,9,10,11,12,13,14,15}; the other options attach these sets to wrong output bits.
3. Teaching check: Gray-code minterm indices are the current Gray words, not the underlying binary n values. For example n=0 gives h=0000 and next g=0001, so the present-state index zero belongs to g₀’s ON set. This immediately distinguishes some mislabeled alternatives.
Circuit: top gate is NAND of X and complemented Y; bottom gate is AND of Y and Z; output f is NAND of those two results. Which variable is redundant? A X; B Y; C Z; D none.
Your answer
Answer & solution
Answer: A (no official key was published)
The upper NAND output is ¬(X¬Y)=¬X+Y; the lower AND output is YZ. The final NAND is ¬[(¬X+Y)YZ]=¬(YZ), because Y(¬X+Y)=Y. Thus X is irrelevant and f depends only on Y, Z, A.
Let top output t=¬(X¬Y), bottom u=YZ, and f=¬(tu). If Y=0, u=0 and f=1 regardless of X, Z. If Y=1, the top output is 1 and f=¬Z. Together these cases give f=¬Y∨¬Z=¬(YZ), independent of X. This also follows algebraically because Y·¬Y=0 cancels the X-dependent product. Thus A.
Representable n-bit two’s-complement range? A −2^(n−1) through 2^(n−1)−1; B −(2^(n−1)−1) through 2^(n−1)−1; C −2^(n−1) through 2^(n−1); D −(2^(n−1)+1) through 2^(n−1)−1.
Your answer
Answer & solution
Answer: A (no official key was published)
The most significant bit has weight−2n−1 and the remaining bits sum from 0 to 2n−1−1. Thus the represented range is−2n−1 through 2n−1−1, A.
The most significant bit has weight−2n−1, while lower bits contribute from 0 through 2n−1−1. Setting only the sign bit gives the minimum; setting all lower bits and clearing the sign bit gives the maximum. There are exactly 2n values in the asymmetric interval, including zero once, so A.
Convert octal 657 to hexadecimal: A 1AF; B D78; C D71; D 32F. Clearer GateForum source confirms option A.
Your answer
Answer & solution
Answer: A (no official key was published)
Step through it (9 steps)
657 in octal is 6×64+5×8+7=431. Dividing into hexadecimal digits gives 1×256+10×16+15=1AF, A. Equivalently, octal bits 110101111 regroup as 0001 1010 1111.
Convert via place values:6·8²+5·8+7=384+40+7=431. In hexadecimal 431=1·256+10·16+15, giving 1AF. Equivalently octal digit triples 110101111 become 0001 1010 1111. The answer is A, spelling 1AF; the clearer alternate confirms the faint final glyph in that choice.
Minimize f(A, B, C, D)=Σ(1, 4, 5, 9, 11, 12). Options: A BC′D′+A′C′D+AB′D; B ABC′+ACD+B′C′D; C ACD′+A′BC′+AC′D′; D A′BD+ACD′+BCD′.
Your answer
Answer & solution
Answer: A (no official key was published)
Step through it (13 steps)
BC′D′ covers minterms 4, 12; A′C′D covers 1, 5; AB′D covers 9, 11. Their union is exactly{1, 4, 5, 9, 11, 12}, so A matches the function.
Each product in a valid SOP must cover only required minterms, and all six required minterms must be covered by at least one product. A four-variable Karnaugh map or direct 16-row evaluation makes this test mechanical. For A, BC′D′ covers 4 and 12, A′C′D covers 1 and 5, and AB′D covers 9 and 11. Their union is exactly the required six minterms with no extras. A single added or lost prime would alter these pairs, so the options were cross-checked against the clearer alternate.
Positive-edge D flip-flop has D=A·X+Q′·X′ and output Y=Q. Before successive rising edges X=1, 1, 0, 1, 1; A takes A0, A1, A2, A3, A4. The source draws X changes exactly at some edges. Output over periods 1–5: A A0, A1, A1′, A3, A4; B A0, A1, A2′, A3, A4; C A1, A2, A2′, A3, A4; D A1, A2, A3, A4, A5. Explain the ideal sampling assumption.
Your answer
Answer & solution
Answer: A under pre-edge sampling convention (no official key was published)
The combinational input is D=AX+Q′X′. Thus X=1 loads A and X=0 toggles the previous output. Sampling the values just BEFORE each rising edge, X is 1, 1, 0, 1, 1 and the available A values are A0, A1, A2, A3, A4. The outputs for periods 1–5 are therefore A0, A1, A1′, A3, A4, option A. Both drawings put X transitions exactly on rising edges; an actual device would require setup/hold timing to determine the result reliably. The answer uses the conventional idealized pre-edge interpretation rather than claiming that coincident physical transitions are well-defined.
Evaluate the next-state equation before each clock edge. With X=1 the second product vanishes, so D=A and the register loads that sample. With X=0 the first product vanishes, so D=¬Q and it toggles its previously stored value. The third edge therefore stores ¬A1 rather than an independent A2. This produces option A under pre-edge sampling. A real setup/hold violation at a coincident transition cannot be resolved solely from an ideal Boolean drawing.
A binary transducer reads least-significant bit first. Initial Q0 loops on 0/output 0 and changes to Q1 on 1/output 1; Q1 loops on 0/output 1 and 1/output 0. Does it compute A ones complement; B twos complement; C increment; D decrement?
Your answer
Answer & solution
Answer: B (no official key was published)
Read from the least significant end: Q0 copies all initial zeros and copies the first 1, then Q1 complements every remaining bit. Keeping the least-significant 1 and all lower zeros while complementing higher bits is exactly fixed-width two’s-complement negation. The all-zero input remains zero. Thus B.
Subtracting a fixed-width binary word from zero leaves its trailing zeros unchanged, leaves the first 1 unchanged, and complements all higher bits. The state change happens at precisely that first 1. For example input word 010100 read from the right yields output 101100, its negation modulo 64. Zero never leaves Q0 and stays zero. A ones-complement machine would flip the trailing zeros too, so A is not the same operation.
Two positive-edge D flip-flops start at Q0Q1=00. Wiring gives D0=¬Q0 and D1=Q0 XOR ¬Q1. Which repeating cycle? A00→11→01→00; B00→11→00; C00→10→01→11→00; D00→11→01→10→00.
Your answer
Answer & solution
Answer: D (no official key was published)
Read the wires as Q0(next)=Q0′ and Q1(next)=Q0 XOR Q1′. Simultaneous updates from 00 give 11; from 11 give 01; from 01 give 10; and from 10 return to 00. Thus the cycle is 00→11→01→10→00, D. Both source diagrams agree.
Both registers sample old values simultaneously. At 00, D0=1 and D1=0 XOR 1=1, producing 11. At 11, D0=0 and D1=1 XOR 0=1, producing 01. At 01, D0=1 and D1=0 XOR 0=0, producing 10. At 10, D0=0 and D1=1 XOR 1=0, returning 00. Do not update Q0 first and reuse its new value in the Q1 equation; that would describe different asynchronous behavior.
Simplify f=x′y′+xy+x′y, where prime denotes complement, juxtaposition AND and + OR. Options: (A) x′+y′ (B) x+y (C) x+y′ (D) x′+y
Your answer
Answer & solution
Answer: D (no official key was published)
Step through it (10 steps)
1. x′y′+xy+x′y=x′(y′+y)+xy=x′+xy=x′+y by absorption. Thus D.
2. Teaching check: A case check confirms the algebra: when x=0, either y value satisfies x′y′+x′y, so output is 1; when x=1 only xy remains, so output equals y. The function is therefore x′ OR y, not x OR y′.
An SR latch consists of two cross-coupled NAND gates. What happens while both external S and R inputs are held at 0? Options: (A) Q=0,Q′=1 (B) Q=1,Q′=0 (C) Q=1,Q′=1 (D) Indeterminate states
Your answer
Answer & solution
Answer: C (no official key was published)
1. Each NAND gate has a forced 0 input, so both outputs are 1 regardless of feedback: Q=1,Q′=1, C. These labels cease to be complements in this forbidden input condition.
2. Indeterminacy can arise when both inputs are subsequently released together, not while both remain 0.
3. Teaching check: For a NAND gate, NAND(0,z)=1 for either z. Applying that fact to both cross-coupled gates resolves the held-input state without timing analysis. The later release race is a different event and must not replace the question’s fixed-input condition.
If the base-x numeral 73 equals the base-y numeral 54, which pair (x,y) is possible? Options: (A) 8,16 (B) 10,12 (C) 9,13 (D) 8,11
Your answer
Answer & solution
Answer: D (no official key was published)
Step through it (6 steps)
1. The equation is 7x+3=5y+4, or 7x−5y=1. Among the options x=8,y=11 gives 56−55=1 and both bases exceed their digits.
2. Thus D; both numerals represent 59.
3. Teaching check: A two-digit numeral ab in base r equals ar+b, rather than a×10+b. Substitution for (8,11) gives 7×8+3=59 and 5×11+4=59. Valid bases must also exceed every digit used; algebra alone would not suffice otherwise.
A decimal digit is encoded in four-bit BCD: 0=0000,…,9=1001. A combinational circuit must output 1 iff the digit is at least 5. Using only AND,OR,NOT gates, what is the minimum number of gates? Options: (A) 2 (B) 3 (C) 4 (D) 5
Your answer
Answer & solution
Answer: B (no official key was published)
1. Write the BCD inputs A,B,C,D with weights 8,4,2,1. For valid digits 0–9, the threshold predicate digit≥5 is A OR[B AND(C OR D)].
2. This uses three gates: one OR for C+D, one AND with B, and one OR with A. All four inputs are essential on valid BCD pairs (0/8,1/5,4/6,4/5 respectively), and a two-gate AND/OR/NOT network cannot express both the independent A case and the nested B∧(C∨D) case.
3. Invalid BCD encodings 10–15 are unspecified/don’t-care, as the source produces a digit.
4. Teaching check: Use digit weights 8,4,2,1. Digits 8 and 9 are detected by the 8-bit; digits 5,6,7 require the 4-bit and at least one low bit. Values 10–15 are not decimal digits supplied by this source, so they are don’t-care cases rather than additional truth-table requirements.
What are the essential prime implicants of f(a,b,c)=a′c+ac′+b′c? Options: (A) a′c and ac′ (B) a′c and b′c (C) a′c only (D) ac′ and bc′
Your answer
Answer & solution
Answer: A (no official key was published)
Step through it (12 steps)
1. The on-set of a′c+ac′+b′c is{1,3,4,5,6}. Prime implicants include a′c covering 1,3; ac′ covering 4,6; b′c covering 1,5; and ab′ covering 4,5.
2. Minterm3 is covered only by a′c, and minterm 6 only by ac′, so these two are essential. Minterm5 can be covered by either b′c or ab′, making neither of those essential.
3. Teaching check: A prime implicant is essential only if it alone covers some on-set minterm. Minterm 5 can be covered by either b′c or ab′, so the visible term b′c is not essential merely because it appears in the original expression.
A two-input mux selects data input X when control Z=0, and Y when Z=1. Which connections realize f=T+R without extra hardware? Options: (A) X=R,Y=1,Z=T (B) X=T,Y=R,Z=T (C) X=T,Y=R,Z=0 (D) X=R,Y=0,Z=T
Your answer
Answer & solution
Answer: A (no official key was published)
1. A two-input mux computes Z′X+ZY. Set X=R,Y=1,Z=T: output=T′R+T=T+R by absorption.
2. When T=0 it passes R; when T=1 it outputs 1. These are precisely the two cases of OR, with no additional gate.
3. Teaching check: Mux select is a Shannon expansion: f=Z′X+ZY. Taking Z=T splits OR into f|T=0=R and f|T=1=1. This supplies the data connections directly, without trying every arbitrary wiring pattern.
A synchronous two-bit counter uses T flip-flops with outputs Q2 (MSB) and Q1 (LSB), driven by a common clock. Its required cycle is 0→2→3→1→0. The figure wires XNOR(Q1,Q2) to T2; the unknown X drives T1. What is X? Options: (A) Q2′ (B) Q2+Q1 (C) (Q1⊕Q2)′ (D) Q1⊕Q2
Your answer
Answer & solution
Answer: D (no official key was published)
1. Use state order Q2Q1=00→10→11→01→00. Since a T flip-flop toggles exactly when T=1, the LSB excitation Q1 XOR Q1(next) takes values 0,1,0,1 at states 00,10,11,01.
2. This is Q1 XOR Q2. The MSB excitation is its complement, agreeing with the pictured XNOR feedback into T2.
3. Thus X=Q1⊕Q2.
4. Teaching check: For each present state, calculate toggle=present bit XOR next bit. At 00,10,11,01 the LSB toggles 0,1,0,1 and the MSB toggles 1,0,1,0. These complementary sequences explain the given XNOR and required XOR together.
A 4-bit carry-lookahead adder is built only from AND,OR,NOT,NAND,NOR gates. Inputs are supplied in true and complemented forms. Each gate has unit delay, and the carry network is a two-level AND–OR implementation. What is the overall propagation delay? The exact complement-generation/netlist convention is not specified. Options: (A) 4 time units (B) 6 time units (C) 10 time units (D) 12 time units
Your answer
Answer & solution
Answer: B under conventional parallel complemented-signal implementation (no official key was published)
1. With input complements supplied, pi=ai XOR bi and its complement can each be formed in two gate levels, while gi=ai bi needs one. Expanding each carry as an OR of generate/propagate products adds two levels after the propagate signals, so carries and their complements can be ready at time 4 (parallel OR/NOR outputs).
2. A sum si=pi XOR ci can then be realized in two further AND–OR levels using these true/complement signals, giving time 6. This is the conventional gate-delay model behind B; it assumes sufficient fan-in for the stipulated two-level carry network and parallel generation of needed complements.
3. The wording does not specify a unique netlist or minimum-area implementation; adding serial inversion or a three-level XOR implementation can produce a different delay, so 6 is not a delay guaranteed for every allowed circuit.
4. Teaching check: The critical path goes through propagate formation, the expanded carry network and sum formation. Under the conventional parallel true/complement implementation these cost 2+2+2 levels. A statement about this implementation is different from a universal claim about every legal gate netlist.
A=11111010 and B=00001010 are eight-bit two’s-complement numbers. Which listed eight-bit two’s-complement result represents their product? Option B follows GFG (10011100); GateForum instead prints 10111100. Options: (A) 11000100 (B) 10011100 (C) 10100101 (D) 11010101
Your answer
Answer & solution
Answer: A (no official key was published)
Step 1: 11111010 represents 250−256=−6 and 00001010 represents 10. Their product is −60, which fits in eight signed bits.
Step 2: Its encoding is 256−60=196=11000100, option A. A full sixteen-bit product is its sign extension, 1111111111000100; the options clearly request the eight-bit representation.
Step 3: Teaching check: Negating 11111010 by invert-and-add-one gives magnitude 00000110=6, so the signed operand is −6. The product −60 fits in [−128,127], avoiding overflow. Check the chosen output by decoding 11000100 as 196−256=−60.
Interpret every bit string as an eight-bit two’s-complement integer. Which is divisible by 11111011? A. 11100111; B. 11100100; C. 11010111; D. 11011011.
Your answer
Answer & solution
Answer: A (no official key was published)
Step through it (12 steps)
1. For an eight-bit word with most significant bit 1, subtract 256 from its unsigned value. The divisor is −5, so only signed multiples of 5 qualify. Dividing −25 by −5 gives the integer 5; the other listed values leave nonzero remainders.
2. The 8-bit two’s-complement divisor 11111011 is 251−256=−5. The listed values 11100111,11100100,11010111,11011011 are respectively−25,−28,−41,−37. Only−25 is divisible by−5, so A.
An array multiplier multiplies two n-bit numbers. Every gate has unit delay. What is its total propagation delay? A. Θ(1); B. Θ(log n); C. Θ(n); D. Θ(n²).
Your answer
Answer & solution
Answer: C (no official key was published)
1. The relevant quantity is longest input-to-output path, not total gate count. Partial-product generation occurs in parallel, after which a regular array has a number of dependent addition levels proportional to operand width. Unit gate delay therefore makes the critical delay linear even though there are quadratically many partial-product cells.
2. A conventional array multiplier forms partial products in parallel and propagates carries/sums through a linear number of adder stages. With constant delay per gate/stage, its critical path is Θ(n), C. Its Θ(n²) hardware area does not imply quadratic propagation delay; a tree multiplier is a different architecture.
Minimal states for a latched count-difference detector
Finite-State Machine Design
Tap to enlarge
A synchronous sequential circuit has one input and two output bits. Let zₖ,nₖ count zeros and ones in the first k input bits. Initially output is 00. When zₖ−nₖ first reaches 2, output becomes 10 forever. When nₖ−zₖ first reaches 2, output becomes 01 forever. What is the minimum number of states? A. 5; B. 6; C. 7; D. 8.
Your answer
Answer & solution
Answer: A (no official key was published)
1. Before absorption retain only d=zₖ−nₖ. On input 0 increment d and on input 1 decrement it. Values −1,0,+1 are nonabsorbing and still output 00; reaching +2 or −2 selects different permanent outputs. Distinguish 0 from +1 by suffix 0, 0 from −1 by suffix 1, and −1 from +1 by suffix 0, proving the three transient states cannot merge.
2. Before a threshold is reached, it suffices to track d=(zeros seen)−(ones seen) in {−1,0,1}. Reaching +2 or −2 enters a separate absorbing state with output 10 or 01. Thus five states suffice. They are all distinguishable: the absorbing states have different outputs, and appropriate one-bit continuations separate each pair of the three pre-threshold states. Hence five states are necessary, option A.
Literal count counts every variable occurrence, complemented or not; for example xy+xz has four literals. Find minimum literal counts for a product-of-sums and a sum-of-products, respectively, for this four-variable Karnaugh map. Rows xy and columns zw both use Gray order 00,01,11,10. Rows are: 00:(X,1,0,1); 01:(0,1,X,0); 11:(1,X,X,0); 10:(X,0,0,X), with X a don’t-care. A. (11,9); B. (9,13); C. (9,10); D. (11,11). An independently minimized pair may be absent from these reproduced options.
Your answer
Answer & solution
Answer: (9,8); no listed option (no official key was published)
1. For SOP, group 1 cells with optional X cells and never cover a specified 0; this yields ¬w¬y, w¬x¬z, x¬w¬z. For POS, group zeros with optional X cells, yielding factors (y∨¬x),(¬w∨¬z),(¬y∨¬z),(w∨x∨¬y). Count variable occurrences, not number of groups: SOP has 8 and POS has 9. Don’t-care choices may differ for the two minimizations. The exact-cover checker is needed to certify these are minima rather than just valid upper bounds.
2. Use row variables xy and column variables zw in the printed Gray order 00,01,11,10. A valid minimum SOP is (¬w∧¬y)∨(w∧¬x∧¬z)∨(x∧¬w∧¬z), containing 2+3+3=8 literals. A valid minimum POS is (y∨¬x)∧(¬w∨¬z)∧(¬y∨¬z)∧(w∨x∨¬y), containing 2+2+2+3=9 literals. Each matches every specified 0 and 1; the X cells may be assigned as needed separately for the two minimizations. Exhaustive enumeration of all 3⁴ Boolean cubes, excluding any cube that covers a forbidden cell, and exact minimum-cost covering of the required cells confirms these lower bounds. Thus the requested ordered pair (POS,SOP) is (9,8), absent from (11,9),(9,13),(9,10),(11,11).
Two zero-delay XOR gates are cascaded. The first receives A directly and A through a non-inverting buffer delayed by 2 ns. Its output X feeds the second XOR directly and through a non-inverting buffer delayed by 4 ns. All wires/gates except those buffers have zero delay, and every signal is initially 0. A rises from 0 to 1 at t=1 ns and stays 1. How many transitions occur at the final output B from t=0 to 10 ns? A. 1 B. 2 C. 3 D. 4
Your answer
Answer & solution
Answer: D (no official key was published)
1. Before 1 ns both first-XOR inputs are 0. At 1 ns its direct input rises, but its delayed input stays 0 until 3 ns. Therefore X is 1 exactly on [1,3). 2. The 4 ns delayed copy of X is 1 on [5,7). The second XOR is high when exactly one copy is high, so B is high on those two nonoverlapping intervals. 3. List the changes: 0→1 at 1 ns, 1→0 at 3 ns, 0→1 at 5 ns, and 1→0 at 7 ns. There are four, giving D.
Solution: Let A(t) rise once at t=1 ns. The first XOR output is A(t) XOR A(t−2), a pulse on [1,3). The second output XORs this pulse with its copy delayed by 4 ns. The copies occupy [1,3) and [5,7), so they do not overlap and the output changes at 1,3,5,7 ns. There are four transitions in the stated interval, option D.
Find the minimum sum-of-products form of f(w,x,y,z) from this Karnaugh map. Columns wx are 00, 01, 11, 10; rows yz are 00, 01, 11, 10. The respective rows of entries are [0,1,1,0], [X,0,0,1], [X,0,0,1], [0,1,1,X], where X is a don’t-care. Prime denotes complement. (A) xz + y′z; (B) xz′ + zx′; (C) x′y + zx′; (D) None of these.
Your answer
Answer & solution
Answer: B (no official key was published)
Step through it (12 steps)
Step 1: Read the map using its Gray-code axes.
Step 2: The clearer alternate labels columns wx=00,01,11,10 and rows yz=00,01,11,10. Rows with z=0 have specified ones where x=1; rows with z=1 have ones where x=0, with don’t-cares available to complete the groups. Each four-cell group removes the two variables that change inside it. The two resulting product terms have opposite x,z values, identifying XOR rather than an expression depending on y.
Conclusion: Group the four cells with x=0,z=1 to obtain x′z. Group the four cells with x=1,z=0, using the displayed don’t-care cells, to obtain xz′. The remaining specified cells are zero. Thus f=xz′+x′z, B. Each implicant is needed to cover its separate group, and w,y disappear.
Which statement describes decimal 0.25? (A) It equals binary 0.1. (B) It equals binary 0.01. (C) It equals binary 0.00111… . (D) It cannot be represented exactly in binary.
Your answer
Answer & solution
Answer: B and C if the trailing ones continue forever (no official key was published)
Step 1: Evaluate both binary expansions as real numbers.
Step 2: In0.001111…, the first one is in the third fractional position, so its value is 1/8+1/16+1/32+… . Multiplying this sum by 1/2 and subtracting leaves half the sum equal to 1/8, hence the sum is 1/4. No finite truncation equals 1/4, but the infinite expansion does. The ellipsis is therefore essential to the recorded ambiguity.
Conclusion: The terminating binary representation is 0.01₂=2−2=1/4, B. But the printed alternative C,0.001111..., also equals sum_(j=3)^∞2−j=(1/8)/(1−1/2)=1/4 when the ellipsis means infinitely repeated ones. Thus both are exact real-number representations, analogous to decimal 0.999...=1. B is the unique terminating representation, but the prompt does not restrict to terminating representations. This is an overlapping-options issue, not an official-key claim.
Twos-complement representation of negative fifteen
Number Systems & Computer Arithmetic
Tap to enlarge
Which bit string is a two’s-complement representation of decimal −15? (A) 1111; (B) 11111; (C) 111111; (D) 10001.
Your answer
Answer & solution
Answer: D (no official key was published)
Step through it (10 steps)
Step 1: Choose a width that can represent the value.
Step 2: The n-bit two’s-complement range is−2n−1 through 2n−1−1. Four bits cannot hold−15, while five bits can. At width five, +15 is 01111; complementing gives 10000 and adding one gives 10001. Interpreting10001 as unsigned 17 and subtracting 32 independently checks−15.
Conclusion: At least 5 bits are needed because the 4-bit signed range is−8 through 7. In5 bits, −15 is 25−15=17=10001₂, D. Strings consisting entirely of ones represent−1, not−15.
In which operation is sign extension a step? (A) Floating-point multiplication; (B) Signed 16-bit integer addition; (C) Arithmetic left shift; (D) Conversion of a signed integer from one size to another.
Your answer
Answer & solution
Answer: D (no official key was published)
Step 1: Compare zero extension with sign extension.
Step 2: For a positive number, the sign bit is zero, so sign extension simply adds leading zeros. For a negative number, adding leading ones preserves the signed interpretation: 10001 has unsigned value 17−32=−15, and 11110001 has unsigned value 241−256=−15. Zero-extending 10001 would instead yield+17.
Conclusion: When a signed two’s-complement integer is widened, copy its sign bit into the new high-order positions. This preserves the numerical value; for example 10001₂ (5-bit−15) becomes 11110001₂ (8-bit−15). This is the size-conversion operation in D.
Which statement about overflow in two’s-complement addition is correct? (A) A carry from the sign-bit addition always flags overflow. (B) Adding a positive value to a negative value cannot overflow. (C) Overflow is flagged when the carries from the sign bit and the preceding bit agree. (D) None of these.
Your answer
Answer & solution
Answer: B (no official key was published)
Step 1: Contrast carry with signed overflow.
Step 2: In four bits, 0111+0001=1000 overflows the signed range even though there is no final carry. Conversely, 1111+0001=0000 with a carry represents−1+1=0 without signed overflow. These examples rule out a carry-only test. Opposite-sign operands always have a sum between the two operands and therefore within range.
Conclusion: If a≥0 and b<0 are representable, their sum lies between b and a and remains representable. Thus opposite-sign addition cannot overflow, B. For two’s complement, overflow is the XOR of the carry into and out of the sign position, not simply the outgoing carry or equality of those carries.
A circuit connects f₁ and f₂ to a two-input NAND gate, inverts f₃ with a NOT gate, and feeds these two outputs to another two-input NAND gate whose output is f. Given f₁(x,y,z)=Σm(0,1,3,5), f₂(x,y,z)=Σm(6,7), and f(x,y,z)=Σm(1,4,5), find f₃. (A) Σm(1,4,5); (B) Σm(6,7); (C) Σm(0,1,3,5); (D) None of these.
Your answer
Answer & solution
Answer: A (no official key was published)
Step 1: Apply De Morgan’s law at the final gate.
Step 2: The first NAND outputs¬(f1f2), and the lower inverter outputs¬f3. The final NAND complements their conjunction, giving f1f2+f3. Because no minterm belongs to both{0,1,3,5} and{6,7}, the product f1f2 is identically zero. Therefore the third input must equal the required output, not either of the two earlier input functions.
Conclusion: The network computes f=¬(¬(f1f2)·¬f3)=f1f2+f3. The minterm sets of f1 and f2 are disjoint, so f1f2=0. Hence f3=f=Σ(1,4,5), A.
A 4-to-1 multiplexer selects I₀,I₁,I₂,I₃ for A₁A₀=00,01,10,11 respectively. The diagram connects I₀=I₁=x, I₂=y, I₃=y′, A₁=y′, A₀=z, and enable EN=z′. Its output is f(x,y,z). Which function is implemented? (A) xyz′; (B) xy+z; (C) x+y; (D) None of these. The drawing labels EN as an enable input but does not explicitly state the disabled-output convention.
Your answer
Answer & solution
Answer: A under the conventional enable model (no official key was published)
Step 1: Split by enable, then by the select bit.
Step 2: For z=1, EN=0 and the assumed Boolean disabled output is 0. For z=0, A0=0; if y=0 then A1=1, selecting input I2=0, while y=1 makes A1=0 and selects I0=x. Thus the only way to output 1 is x=y=1,z=0. The explicit disabled-output convention is needed because a high-impedance device is not modeled by this truth table.
Conclusion: The shown connections are I0=I1=x, I2=y, I3=y′, A1=y′, A0=z, and EN=z′. With active-high enable and output forced 0 while disabled, z=1 makes f=0. When z=0, y=0 selects I2=0 and y=1 selects I0=x. Thus f=xyz′, A. A tristate disabled output would instead be high impedance; that behavior is not the Boolean-output model used here.
Define the Boolean function f(A,B)=A′+B, where prime is complement and + is OR. Simplify f(f(x+y,y),z). (A) x′+z; (B) xyz; (C) xy′+z; (D) None of these.
Your answer
Answer & solution
Answer: C (no official key was published)
Step 1: Simplify one function application at a time.
Step 2: First substitute A=x+y,B=y into A′+B. De Morgan gives x′y′+y, and absorption y+x′y′=y+x′ simplifies it. Now use that entire expression as the first argument of the outer function: (x′+y)′+z=xy′+z. Complementing only one component of the inner result would give the wrong expression.
Conclusion: The inner function is f(x+y,y)=(x+y)′+y=x′y′+y=x′+y. Applying f again gives (x′+y)′+z=xy′+z, C.
A finite-state machine starts in A. Transition labels are input/output, with a one-bit input and two-bit output. The diagram gives A --0/00--> A, A --1/01--> B, B --0/01--> A, B --1/10--> C, C --0/01--> A, and C --1/10--> C. What does it do? (A) Output the sum of the current and preceding input bits. (B) Output 01 whenever the input sequence contains 11. (C) Output 00 whenever the input sequence contains 10. (D) None of these.
Your answer
Answer & solution
Answer: A (no official key was published)
Step 1: Verify all possible current/previous bit pairs.
Step 2: Previous0/current 0 produces 00; previous 0/current 1 produces 01; previous 1/current 0 produces 01; previous 1/current 1 produces 10. State A is the previous-zero class and B,C the previous-one class. On input 110, the output is 01,10,01, so claims of 01 for the final 11 pair or 00 for 10 are contradicted directly.
Conclusion: State A represents previous input 0 (also the initial assumed bit); states B and C both represent previous input 1. From A, input 0 outputs 00 and input 1 outputs 01. From B or C, input 0 outputs 01 and input 1 outputs 10. These are the two-bit encodings of previous bit plus current bit, A. The extra distinction between B and C does not change this behavior.
Rewrite f(x,y,z)=xy′+yz′ using only one complementation and one or more AND/OR operations. Draw a circuit for that expression using a single NOT gate and AND/OR gates.
Shared context
Part (a) implements f(x,y,z) = xy′ + yz′ with one complement. Part (b) independently converts a drawn three-AND/two-OR circuit to exactly six two-input NAND gates.
Answer & solution
Answer: f = (x + y) · (yz)′ (no official key was published)
1. Start from the given f(x,y,z) = xy′ + yz′. Complementing y and z separately would require two NOT operations, so that direct sum-of-products implementation does not satisfy the restriction.
2. Search for a single complemented compound expression. De Morgan’s law gives (yz)′ = y′ + z′, so one NOT gate applied after AND(y,z) can generate the required complemented combination.
4. Show that xz′ is redundant rather than dropping it without justification. Split it by y: xz′ = xz′(y+y′) = xyz′ + xy′z′. The first term is already covered by yz′; the second is covered by xy′. Absorption therefore leaves precisely xy′ + yz′.
5. Implement the verified expression f = (x+y)(yz)′. Use t1 = OR(x,y), t2 = AND(y,z), t3 = NOT(t2), then f = AND(t1,t3):
x,y ---> OR --------- t1 ---\
AND ---> f
y,z ---> AND ---> NOT -- t3 -/
6. Count the gates: one OR, two AND gates, and exactly one NOT. The complemented quantity is yz, not either individual input. An exhaustive check of all eight input combinations independently confirms the identity.
Convert the given circuit directly, without first expressing its switching function, into an equivalent circuit containing exactly six two-input NAND gates. Textual description of the given diagram: three separate two-input AND gates receive six input wires (two per gate). The first and second AND outputs feed a two-input OR gate. That OR output and the third AND output feed a final two-input OR gate, which produces the circuit output. The input wires are unlabeled in the reproduction.
Shared context
Part (a) implements f(x,y,z) = xy′ + yz′ with one complement. Part (b) independently converts a drawn three-AND/two-OR circuit to exactly six two-input NAND gates.
Answer & solution
Answer: Six two-input NAND gates with netlist N1…N6 below (no official key was published)
1. Identify the source circuit by its connections. The top, middle, and bottom two-input AND gates feed a cascade of two OR gates: the first OR combines the top two branches, and the second combines that result with the bottom branch. Label the six external wires a,b,c,d,e,f from top to bottom. These are local wire labels, not extra assumptions about their values.
2. Transform the first AND–OR section by bubble-pushing. A NAND is an AND with a complemented output. Replace the top and middle AND gates with NAND gates N1 and N2. Replace the OR they feed with NAND N4, whose effective input complements cancel those two output complements. Thus N4 has the same output as that original OR.
3. Transform the final OR in the same way. Its bottom input is supplied in complemented form by replacing the bottom AND with NAND N3. Its other input must be the complement of N4’s output, which is produced by NAND N5 with both input pins tied to N4. NAND N6 then implements the final OR through De Morgan’s law.
4. Draw and connect the complete six-gate replacement:
5. Check the physical restrictions. Gates N1–N6 are all two-input NAND gates. Tying the two inputs of N5 together implements an inverter and still uses one allowed two-input NAND gate. There are exactly six gates, no hidden NOT gates and no three-input gates. This is a local circuit transformation, without first expressing the original switching function. A separate exhaustive simulation over the 64 external input assignments confirms equivalence.
Find a minimal SOP for the displayed four-variable map. Columns wx and rows yz both use Gray order 00,01,11,10. Rows are [0,X,0,X], [X,1,X,1], [0,X,1,0], [0,1,X,0], with X a don’t-care. Choices: A xy+y′z; B wx′y′+xy+xz; C w′x+y′z+xy; D xz+y.
Your answer
Answer & solution
Answer: A (no official key was published)
Step through it (13 steps)
Step 1: Read columns wx and rows yz in Gray order 00,01,11,10. The entire row yz=01 can be grouped using its don’t-care cells, producing y′z. The block with x=1,y=1 across rows 11/10 and columns 01/11 produces xy.
Step 2: These two four-cell groups cover all specified ones without covering a specified zero. One term cannot cover both required regions: enlarging to a common cube would include forbidden zero cells.
Conclusion: xy+y′z is a minimal two-term expression, A. Don’t-care cells are chosen only to enlarge legal groups, not to change specified zeros.
Two positive-edge D flip-flops start at Q0=Q1=0. Their inputs are D0=X and D1=X·¬Q0; output Y=Q1. Setup time is 20 ns, hold time zero, and clock period at least 40 ns. The figure shows X rising after the first clock rising edge and falling before the sixth. Select the output trace: A one-cycle pulse from the second to third edge; B high from first to third; C first to second; D later sustained high. Exact timing drawing remains linked.
Your answer
Answer & solution
Answer: A under the ideal synchronous timing model (no official key was published)
Step 1: At each positive clock edge, Q0_next=X and Y_next=X·¬Q0_old. Both flip-flops sample old pre-edge signals, so the second stage cannot use the newly updated Q0 in the same sampling event.
Step 2: Initially Q0=Y=0. X rises after the first shown rising clock edge. At the next rising edge X=1 while old Q0=0, so Q0 becomes 1 and Y becomes 1. At the following rising edge X remains 1 but old Q0=1, so Y becomes 0. Later edges keep Y low, including after X falls.
Thus Y has one clock-period pulse starting at the second rising edge, plot A. The displayed separation is interpreted as meeting the 20 ns setup requirement, with negligible unprovided gate/clock-to-Q delays; period alone would not guarantee timing for an arbitrarily placed X transition.
Choose the three-hex-digit two’s-complement representation of decimal −539 from ABE,DBC,DE5,9E7.
Your answer
Answer & solution
Answer: C for the displayed 12-bit width (no official key was published)
Step through it (5 steps)
Step 1: Convert 539 to hexadecimal:539=2·256+1·16+11=21B₁₆. The three-hex-digit answer options imply 12 bits.
Step 2: Complement each hex digit to F, giving DE4, then add one to obtain DE5. Independently,1000₁₆−021B₁₆=0DE5₁₆.
Thus C. A wider representation would sign-extend with leading F digits; two’s-complement representation is width-dependent, so DE5 is interpreted using the options’ width.
A 2:1 mux computes ac′+bc. First mux has a=1,b=0,c=x1. Its output supplies a of a second mux, whose b=x1 and c=x2. Choose f from x1′+x2; x1′x2+x1x2′; x1x2+x1′x2′; x1+x2′.
Your answer
Answer & solution
Answer: C (no official key was published)
Step 1: The supplied mux equation is output=a·c′+b·c. In the first mux a=1,b=0,c=x1, so its output g=x1′.
Step 2: The second mux has a=g,b=x1,c=x2. Substitute to obtain f=x1′x2′+x1x2, an XNOR function.
Thus C. Its truth table is 1,0,0,1 for inputs 00,01,10,11, which also distinguishes it from XOR and the single-disjunction options.
A synchronous three-bit register starts Q0=1,Q1=Q2=0. Wiring gives D0=Q1 XOR Q2,D1=Q0,D2=Q1. State number is 4Q2+2Q1+Q0. Choose cycle A 1,3,4,6,7,5,2; B 1,2,5,3,7,6,4; C 1,2,7,3,5,6,4; D 1,6,5,7,2,3,4.
Your answer
Answer & solution
Answer: B (no official key was published)
Step 1: Read the wiring as Q0_next=Q1 XOR Q2, Q1_next=Q0, Q2_next=Q1, all using the old state. The displayed numeric state is 4Q2+2Q1+Q0.
Step 2: Starting 001, successive triples are 010,101,011,111,110,100, then 001 again. For example 010 gives new Q0=1 XOR 0=1,new Q1=0,new Q2=1, hence 101.
Thus the decimal cycle is 1,2,5,3,7,6,4, option B. Computing updates in place rather than simultaneously would produce a different, incorrect sequence.
f(x,y,z)=Σm(0,1,2,4). Determine whether f is self-dual.
Task: Decide whether f is self-dual and justify the answer.
Shared context
f(x,y,z)=Σm(0,1,2,4). Determine whether f is self-dual.
Answer & solution
Answer: Yes; f(x,y,z)=¬f(¬x,¬y,¬z). (no official key was published)
1. Self-duality requires complementary input vectors to produce complementary outputs. For three variables, complementing every input bit maps minterm index i to 7−i.
2. The complementary pairs are (0,7), (1,6), (2,5), and (3,4). The given on-set {0,1,2,4} contains exactly one member of each pair.
3. Thus whenever f is 1, its complementary input has value 0; and whenever f is 0, its complementary input has value 1. This proves the identity for all eight input vectors.
4. Having four ones alone would not prove self-duality: their distribution across complement pairs matters. Here all four pairs satisfy the required condition.
Input bits e8,e4,e2,e1 encode decimal d as d+3 (valid codes 3…12); output b4 is the weight-4 BCD bit. Diagram has four excess-3 input lines and four BCD outputs b8,b4,b2,b1. GFG explicitly requests b4; GateForum omits the subscript in its prose.
Task: Give a minimal product-of-sums expression for b4.
Shared context
Input bits e8,e4,e2,e1 encode decimal d as d+3 (valid codes 3…12); output b4 is the weight-4 BCD bit. Diagram has four excess-3 input lines and four BCD outputs b8,b4,b2,b1.
Answer & solution
Answer: b4=(¬e4+e1)(¬e4+e2)(e4+¬e2+¬e1). (no official key was published)
1. For decimal digits d=0…9, the weight-4 BCD bit is 1 exactly for d=4,5,6,7. Their excess-3 inputs are 7,8,9,10. Hence the on-set is {7,8,9,10}; the valid zero-set is {3,4,5,6,11,12}. Codes {0,1,2,13,14,15} are don’t-cares.
2. For a product-of-sums minimize groups of zeros, permitting invalid codes as don’t-cares. The group e4=1,e1=0 covers zero codes 4,6,12 and don’t-care 14, giving the clause ¬e4+e1.
3. The group e4=1,e2=0 covers 4,5,12 and don’t-care 13, giving ¬e4+e2. The pair 3,11 has e4=0,e2=1,e1=1 while e8 varies, giving e4+¬e2+¬e1.
4. Multiplying these clauses covers every required zero and no required one. The e8 input disappears because the chosen groups span both of its values.
5. To check minimality without claiming these groups are all essential, enumerate the maximal zero/don’t-care cubes (bit order e8,e4,e2,e1; dash means either value): -011, -1-0, -10-, 0--0, 0-0-, 00--, 1-11, 11--. Their covered required zeros are respectively {3,11}, {4,6,12}, {4,5,12}, {4,6}, {4,5}, {3}, {11}, {12}. This includes the legal alternative cube {0,1,2,3}; zero 3 is not restricted to pairing with 11.
6. Every clause must avoid all required one-codes. No single zero cube can cover any pair among required zeros 5,6,11: the smallest cube spanning each such pair contains code 7, a required one. At least three clauses are therefore necessary. The maximal cubes listed above have at most four cells, so every nonredundant clause has at least two literals. A cube covering zero 11 has at most two cells (the only choices are -011 and 1-11), so its clause needs at least three literals. Any POS consequently needs at least 3+2+2=7 literals; four or more clauses need at least eight. The displayed three-clause, seven-literal POS attains both lower bounds. Other minimum covers exist; its three chosen prime groups are not all essential.
Initially copy input bits. After two consecutive input zeros, complement following bits; after two consecutive input ones while complementing, return to copying. The triggering second bit still uses the old mode. Use J-K flip-flops.
Task: Give the state transition diagram (specified here by a complete labeled transition table).
Shared context
Initially copy input bits. After two consecutive input zeros, complement following bits; after two consecutive input ones while complementing, return to copying. The triggering second bit still uses the old mode. Use J-K flip-flops.
Answer & solution
Answer: Four-state Mealy machine A,B,C,D with transitions A:0/0→B,1/1→A; B:0/0→C,1/1→A; C:0/1→C,1/0→D; D:0/1→C,1/0→A. (no official key was published)
1. Define A as copy mode with no pending zero, B as copy mode after one zero, C as complement mode with no pending one, and D as complement mode after one one. Start at A. Edge labels are input/output.
2. In copy mode output equals input. Thus A on 0 emits 0 and moves to B; A on 1 emits 1 and stays A. B on 1 emits 1 and resets to A; B on 0 emits 0 and moves to C because the second zero has just occurred.
3. In complement mode output is inverted. Thus C on 0 emits 1 and stays C; C on 1 emits 0 and moves to D. D on 0 emits 1 and resets to C; D on 1 emits 0 and returns to A after the second one.
4. The transition-triggering symbol is processed using the old mode, matching the printed example: input 101100|01001011|0|11 gives output 101100|10110100|0|11.
5. These four states record exactly the information needed: the current mode and whether the first symbol of its switching pair has been seen. Runs of the nontriggering symbol reset the pending-pair state.
Initially copy input bits. After two consecutive input zeros, complement following bits; after two consecutive input ones while complementing, return to copying. The triggering second bit still uses the old mode. Use J-K flip-flops. Encode A=00, B=01, C=10, D=11 with mode bit M and pending-pair bit P. Input x; output y=x XOR M.
Task: Give minimized sum-of-products expressions for the J and K inputs of one state flip-flop.
Shared context
Initially copy input bits. After two consecutive input zeros, complement following bits; after two consecutive input ones while complementing, return to copying. The triggering second bit still uses the old mode. Use J-K flip-flops. Encode A=00, B=01, C=10, D=11 with mode bit M and pending-pair bit P. Input x; output y=x XOR M.
Answer & solution
Answer: For mode flip-flop: J_M=P¬x, K_M=Px. Optionally J_P=Mx+¬M¬x and K_P=1. (no official key was published)
1. Use the four-state transition table from part (a), encoding copy states A,B with M=0 and complement states C,D with M=1. P=1 denotes B or D, where a triggering first bit is pending.
2. A J-K flip-flop obeys Q⁺=J¬Q+¬KQ. To change 0→1 requires J=1 (K don’t-care); 0→0 requires J=0; 1→0 requires K=1 (J don’t-care); and 1→1 requires K=0.
3. When M=0, the mode changes to 1 only in B (P=1) on x=0. Therefore J_M=P¬x. For M=1, J_M is irrelevant and these excitation don’t-cares allow the M literal to be omitted.
4. When M=1, the mode changes to 0 only in D (P=1) on x=1. Therefore K_M=Px, likewise independent of M after using its don’t-cares. Each is a single two-literal product and is already minimized SOP.
5. For a complete implementation, P=0 changes to 1 precisely when x=M (A on 0 or C on 1), giving J_P=Mx+¬M¬x. From either P=1 state the next P is always 0, so K_P=1. Reset both bits to 0 and use y=x XOR M.
Find a listed solution(x,y,z,w) to x+y+z=1,xy=0,xz+w=1,xy+z′w′=0. Choices0100,1101,1011,1000; + means OR.
Your answer
Answer & solution
Answer: C (no official key was published)
Step 1: xy=0 immediately rejects 1101. For 0100, xz+w=0, so it fails the third equation. The same third equation rejects 1000.
Step 2: For 1011, x+y+z=1,xy=0,xz+w=1, and xy+z′w′=0+0·0=0. It satisfies all four.
Thus C is the listed solution. The equations can have other solutions not listed, so this checks the requested candidate rather than asserting a unique solution over all sixteen assignments.
Map columns wz and rows xy are Gray-ordered 00,01,11,10. Rows are [0,X,0,0],[0,X,1,1],[1,1,1,1],[0,X,0,0]. Which does NOT implement it: A(w+x)y; Bxy+yw; C(w+x)(w′+y)(x′+y); D none?
Your answer
Answer & solution
Answer: D (no official key was published)
Step through it (15 steps)
Step 1: The specified ones occur when y=1 and at least one of w,x is 1. Thus F=(w+x)y, and distribution gives xy+yw, proving A and B equivalent and consistent with all specified cells.
Step 2: Simplify C: (w′+y)(x′+y)=y+w′x′. Multiplying by(w+x) gives y(w+x)+(w+x)w′x′=y(w+x), because the last product is zero.
Therefore C is equivalent as well, so none of A–C fails: D. The complement bars on both w and x in C are essential and were checked in the clearer alternate figure.
A JK master-slave flip-flop P has J=K=1; its output feeds a D master-slave flip-flop Q with the shared clock. Starting(P,Q)=(0,1), find the state after three cycles from choices(1,0),(1,1),(0,0),(0,1).
Your answer
Answer & solution
Answer: A (no official key was published)
Step 1: J=K=1 makes P toggle each cycle. Q captures the previous P through its D input; the master-slave arrangement prevents using the newly changed P as the same-cycle input.
Convert one valid BCD digit d∈{0,…,9} to d mod 6. Input bits I₄I₃I₂I₁ have weights 8,4,2,1; output bits R₃R₂R₁ have weights 4,2,1. Illegal BCD inputs need not be detected.
Task: Give the complete valid-input truth table, using 1 for truth.
Shared context
Convert one valid BCD digit d∈{0,…,9} to d mod 6. Input bits I₄I₃I₂I₁ have weights 8,4,2,1; output bits R₃R₂R₁ have weights 4,2,1. Illegal BCD inputs need not be detected.
Answer & solution
Answer: Outputs for inputs 0…9: 000,001,010,011,100,101,000,001,010,011. (no official key was published)
1. For d=0,…,5 the output equals d. For d=6,…,9 subtract six once, giving 0,1,2,3.
3. Inputs 1010,1011,1100,1101,1110,1111 may all be assigned XXX (don’t-care), not mandatory zero. No fourth output bit is needed because the maximum remainder is 5; if a four-bit interface is desired, R₄=0 for valid inputs.
4. In particular parity is unchanged by subtracting six, so the least significant bit is simply R₁=I₁. This provides a useful check on every row.
Convert one valid BCD digit d∈{0,…,9} to d mod 6. Input bits I₄I₃I₂I₁ have weights 8,4,2,1; output bits R₃R₂R₁ have weights 4,2,1. Illegal BCD inputs need not be detected. Available altogether: two two-input AND gates, one two-input OR gate, and two NOT gates (OR is explicit in GFG; omitted in GateForum).
Task: Specify one circuit for each output bit within the gate budget.
Shared context
Convert one valid BCD digit d∈{0,…,9} to d mod 6. Input bits I₄I₃I₂I₁ have weights 8,4,2,1; output bits R₃R₂R₁ have weights 4,2,1. Illegal BCD inputs need not be detected.
Answer & solution
Answer: R₁=I₁; R₂=(I₂∧¬I₃)∨I₄; R₃=I₃∧¬I₂. (no official key was published)
1. R₃ must be one only for valid digits 4 and 5. Their I₃=1 and I₂=0, so R₃=I₃ AND NOT I₂. Illegal inputs are don’t-care, permitting this simple expression.
2. R₂ is one for 2,3,8,9. The term I₂ AND NOT I₃ covers 2,3; I₄ covers 8,9 among valid BCD digits. Therefore R₂=(I₂ AND NOT I₃) OR I₄.
3. Complete netlist: N₂=NOT(I₂); N₃=NOT(I₃); G₂=AND(I₂,N₃); G₃=AND(I₃,N₂); R₂=OR(G₂,I₄); R₃=G₃; R₁ is a wire from I₁. This explicitly identifies every gate input and output and uses exactly the allowed 2 NOT, 2 AND, 1 OR gates.
4. Checking d=6,7 gives I₃=I₂=1, so R₃=R₂=0 and only parity R₁ remains. Checking d=8,9 gives I₄=1 and I₃=I₂=0, so output is 010 or 011. These are the nontrivial modulo reductions.
5. R₃ is the weight-four bit, not R₄. If four output positions are drawn, tie R₄ to zero.
Which is not NOT x: x NAND x, x NOR x, x NAND 1, or x NOR 1?
Your answer
Answer & solution
Answer: D (no official key was published)
Compute each expression directly. x NAND x=¬(x·x)=¬x; x NOR x=¬(x+x)=¬x; x NAND 1=¬x. But x NOR 1=¬(x+1)=0 for both possible x values. At x=0 that differs from NOT x=1, so D is the non-inverter. Tying the inputs together and tying an input to a constant are different operations.
Rows AB and columns CD are Gray ordered 00,01,11,10. Rows are [0,0,1,0],[X,X,1,X],[0,1,1,0],[0,1,1,0]. Find the expression; B is D(C+A).
Your answer
Answer & solution
Answer: B (no official key was published)
Step through it (13 steps)
The entire CD=11 column consists of ones, giving implicant CD. The block spanning AB=11,10 and CD=01,11 gives AD. Their union is CD+AD=D(C+A). Check that every specified one is covered and neither group contains a specified zero; don’t-cares may take either value. Both terms are needed: AB=00,CD=11 requires CD, while AB=10,CD=01 requires AD. Therefore the displayed expression B implements all constrained cells.
The circuit has u=NAND(A,Y),v=NAND(B,u),Y=AND(C,v). Given steady Y=1, select ABC from 001,011,101,111.
Select all that apply
Answer & solution
Answer: A,C,D (no official key was published)
Substitute the required Y=1 into the first gate: u=¬A. The second gives v=¬(B·¬A)=¬B+A. For the output AND to be one, C=1 and v=1 are required. Thus either A=1 or B=0, with C=1. The allowed listed triples are 001,101,111, namely A,C,D; 011 gives v=0 and fails. This is a fixed-point calculation, not a claim about which state an arbitrary initial circuit will reach. NAND bubbles were checked in the clearer alternate diagram.
Choose universal component sets: A XOR and NOT; B 2:1 multiplexers; C AND and XOR; D gates AB+C.
Select all that apply
Answer & solution
Answer: B,C if constants 0 and 1 are available (no official key was published)
A produces only affine Boolean functions, so it cannot express AND and is incomplete. For B, a mux with data inputs 1,0 implements NOT of its select; a mux with data 0,y and select x implements xy. NOT and AND are universal. For C, x XOR 1=¬x, again providing NOT plus AND. D is monotone, so compositions cannot implement inversion. Hence B,C under the usual available-constant convention. Without constant 1, B and C preserve zero and cannot produce NOT; the source does not explicitly state the constant-input convention, so this dependence is retained.
Add two 16-bit numbers without an external carry-in. Choose the half/full-adder counts; B gives one half-adder and 15 full-adders.
Select all that apply
Answer & solution
Answer: B (no official key was published)
The least-significant position adds only two operand bits, so a half-adder produces its sum and carry. Each of the remaining fifteen positions must add two operand bits plus the carry from the preceding position, requiring a full-adder. The total is therefore one half-adder and fifteen full-adders, B. Using half-adders alone would not handle three inputs at higher positions without extra combination logic. If an external carry-in were required at the first position, sixteen full-adders would be the natural implementation instead.
Which schemes have two zeros: sign-magnitude,ones complement,twos complement,none?
Select all that apply
Answer & solution
Answer: A,B (no official key was published)
In sign-magnitude, magnitude bits all zero represent zero with either sign bit, producing +0 and −0. In ones complement, complementing the all-zero positive representation yields the all-one negative-zero pattern. In twos complement, negation complements then adds one, returning zero to the all-zero pattern after overflow is discarded; the all-one pattern represents −1 instead. Thus exactly A and B have two zero representations.
A bitstring B is XORed with itself n times. What happens, with D saying unchanged for even n?
Your answer
Answer & solution
Answer: D if n counts XOR operations (no official key was published)
XOR satisfies B⊕B=0 and 0⊕B=B. Starting from B, one additional XOR produces 0, two produce B, and so on. Hence after n XOR operations the result is B for even n and 0 for odd n, supporting D. If the diagram’s “n times” instead counts the number of copies of B, the parity reverses: even copies give 0. Neither case complements B or divides it by 2. The operation-count versus operand-count ambiguity is retained.
A multiplexer has four select bits. Is it 4:1, 2:1, 16:1, or 8:1?
Your answer
Answer & solution
Answer: C (no official key was published)
Four binary select inputs encode 24=16 distinct combinations. A conventional fully populated multiplexer uses each combination to select one data input and forwards it to one output. Thus it is 16:1, C. The select width is logarithmic in the number of data inputs; it is not itself the input count. A partially populated design could leave codes unused, but that is not the usual mux designation.
The listed TTL logic 1 ranges are above 2.5 V, 0.8–5 V, below 5 V, and 2.8 V to Vcc. Identify the threshold.
Your answer
Answer & solution
Answer: No exact standard TTL input-high threshold is listed (no official key was published)
For standard 5 V TTL, the guaranteed input-high minimum VIH is 2.0 V and input-low maximum VIL is 0.8 V; the region between them is not guaranteed. Therefore neither 2.5 V nor 2.8 V is the actual specified input-high threshold. B includes the undefined range and C includes definite low voltages. A and D describe portions of the high region if voltages remain within operating limits, not the complete threshold criterion. A universal claim about any voltage above 2.5 V is also unsafe without upper limits. The source options do not provide an exact specification; no official correction is assumed.
The map has rows A=0, 1 and columns BC=00, 01, 10, 11. Both rows are 1, 0, 0, 1. Find its function; C is complement (B XOR C).
Your answer
Answer & solution
Answer: C: XNOR of B, C (no official key was published)
The identical rows show that A is irrelevant. The output is 1 exactly for BC=00 or 11, meaning B and C agree. Therefore F=B′C′+BC=¬(B⊕C), option C. The displayed columns are binary order 00, 01, 10, 11 rather than Gray order; treating adjacent columns as automatically differing in one bit would be invalid. Reading the labels as a truth table avoids that trap and gives the result directly. Its altered map is B′C′+BC+A′C, which is not any displayed option. The C answer follows the the paper map, not a claim that the paper agrees.
Similar questions3 more → · asked again: GATE 1992, Q2(i)
Commutative but nonassociative operator
Boolean Algebra & Logic Gates
Tap to enlarge
Which is commutative but not associative: AND, OR, NAND, XOR?
Your answer
Answer & solution
Answer: C (no official key was published)
NAND is symmetric in its arguments because ¬(ab)=¬(ba), so it is commutative. To test associativity, take a=0, b=1, c=1. Then (0 NAND 1) NAND 1=1 NAND 1=0, while 0 NAND(1 NAND 1)=0 NAND 0=1. The two groupings differ, proving nonassociativity. AND, OR and XOR are associative as well as commutative. Thus C; a single counterexample is enough to refute an asserted universal associative law.
For I(x,y)=¬x∨y, realize f=¬x·y+x·¬y using implication gates. Both the GFG and GateForum reproductions explicitly require four implication gates. Neither reproduction explicitly provides a constant-zero input.
Answer & solution
Answer: With constant 0: p=I(x,y), q=I(y,x), r=I(q,0), f=I(p,r). Without 0, impossible. (no official key was published)
The requested function is XOR. A four-gate construction satisfies that requirement if one input can be tied to Boolean 0:
G1: p = I(x,y) G2: q = I(y,x) G3: r = I(q,0) G4: f = I(p,r)
Wire x and y to G1 in that order and to G2 in the opposite order. Connect G2's output and a grounded input to G3. Connect G1's output and G3's output to G4, in that order. This netlist is an unambiguous gate-level schematic with fan-out allowed.
Since p=¬x∨y and q=¬y∨x, r=¬q. Therefore f=¬p∨r=¬(¬x∨y)∨¬(¬y∨x)=x¬y∨y¬x, as required. The truth table provides a direct check:
x y | p q r | f 0 0 | 1 1 0 | 0 0 1 | 1 0 1 | 1 1 0 | 0 1 0 | 1 1 1 | 1 1 0 | 0
The grounded input is essential, not an unmentioned extra implication gate. Without constant 0 or another non-1-preserving primitive, no finite acyclic circuit of implication gates can realize XOR. On x=y=1, every primary input is 1; every gate whose inputs are 1 outputs I(1,1)=1. Induction through the circuit makes its final output 1, contradicting XOR(1,1)=0. A constant 1 does not fix this problem. Thus the bare statement is impossible, while the conventional hardware interpretation allowing a ground connection admits the four-gate design above.
Show that the implication gate I(x,y)=¬x∨y is functionally complete. State any necessary extra resource.
Answer & solution
Answer: Implication alone is not complete; {implication,0} is complete. (no official key was published)
Taken literally, the claim is false. Implication preserves the Boolean value 1: I(1,1)=1. Any formula built from variables using only implication consequently outputs 1 when all its variables are 1, by structural induction. Such formulas cannot implement NOT, which sends 1 to 0, or the constant-zero function. Since functional completeness requires every Boolean function, implication alone fails. Producing constant 1 as I(x,x) does not remove this obstruction.
If a Boolean-zero input is supplied, completeness follows constructively. First implement NOT by ¬x=I(x,0). Then implement OR by x∨y=I(I(x,0),y). NOT and OR form a complete basis: for example x∧y=¬(¬x∨¬y), and any Boolean truth table can be expressed as a disjunction of conjunctions of literals. Therefore arbitrary Boolean functions can be realized using implication gates and the constant 0.
An equally direct complete primitive is NAND: I(x,I(y,0))=¬x∨¬y=¬(x∧y). Because NAND is functionally complete, this two-implication construction proves the same result. These are proofs of completeness of {I,0}, not of {I} alone. Both printed papers omit an explicit constant-zero assumption, so the necessary qualification must be retained rather than supplying a false proof of the literal claim.
Design a synchronous counter producing 1,4,2,3,1,4,... .
Answer & solution
Answer: Three common-clock D flip-flops with state sequence 001→100→010→011→001. (no official key was published)
Represent the displayed numbers by Q2Q1Q0. The required transitions are 001→100, 100→010, 010→011 and 011→001. Use three D flip-flops sharing one clock, with each D input equal to the corresponding next-state bit. Reset to 001 before normal counting.
A complete, self-starting design sends every unused state to 001:
Let mi denote the three-variable minterm for binary i. Then D2=m1=¬Q2·¬Q1·Q0; D1=m2+m4=¬Q0(¬Q2·Q1+Q2·¬Q1); D0=m0+m2+m3+m5+m6+m7. Wire these sum-of-products functions to D2,D1,D0. Notice D0 is 1 also for state 010, whose successor is 011. These equations directly implement every row of the table, so no unspecified-state behavior is hidden by don't-care minimization.
All bits update together on the active clock edge; a ripple counter would not implement this arbitrary sequence directly. Four internal states require only two bits if an output decoder is allowed, but three state flip-flops give the requested binary numbers directly and make unused-state recovery explicit.
Define x*y=¬x+y with Boolean OR+. Let z=x*y. Find z*x.
Your answer
Answer & solution
Answer: B: x (no official key was published)
Substitute z=¬x+y. Then z*x=¬z+x=¬(¬x+y)+x. De Morgan gives¬(¬x+y)=x¬y. Finally x¬y+x=x by absorption. Thus B. A truth-table check gives 0 for x=0 and 1 for x=1 regardless of y. The custom star is not ordinary multiplication, so the definition must be substituted before simplifying.
For f (x, y, z)=¬x+¬y·x+xz, which is valid: ¬y·x is prime, xz is a minterm, xz is an implicant, y is prime?
Your answer
Answer & solution
Answer: C (no official key was published)
Step through it (15 steps)
The term xz appears directly in the sum, so whenever xz=1, the function is 1; hence it is an implicant, C. It is not a minterm because it omits y. Simplifying f by absorption gives¬x+¬y+z, so¬y·x can be enlarged to¬y and is not prime. Finally y alone does not imply f: at (x, y, z)=(1, 1, 0), y=1 but f=0. Thus D is false.
Given sqrt ((224)r)=(13)r, find base r among 10, 8, 5, 6.
Your answer
Answer & solution
Answer: C: 5 (no official key was published)
Step through it (6 steps)
Convert the positional numerals to values: (224)r=2r²+2r+4 and (13)r=r+3. Squaring gives 2r²+2r+4=(r+3)²=r²+6r+9. Rearranging yields r²−4r−5=(r−5)(r+1)=0. A valid positive radix containing digit 4 must exceed 4, so r=5, option C. Check 224₅=64 and 13₅=8, whose square is 64.
f=(f1 AND f2) OR f3, with f1 minterms{8, 9, 10}, f2{7, 8, 12, 13, 14, 15}. Forum gives target f={8, 9}; GFG prints{7, 9}. Find f3 among listed choices.
Your answer
Answer & solution
Answer: The printed target is impossible (no official key was published)
The AND term is the intersection of the two minterm sets, namely{8}. Therefore the OR output must include 8 regardless of f3. Of the listed candidates, only{9} qualifies, B. The paper’s target{7, 9} excludes 8 and cannot be produced by this network. This material source disagreement is preserved; the answer is not an official-key match or a silent replacement of the paper’s output.
The Mealy state table gives (next state,output) for inputs 0 and 1: A: 0→(B,1), 1→(H,1) B: 0→(F,1), 1→(D,1) C: 0→(D,0), 1→(E,1) D: 0→(C,0), 1→(F,1) E: 0→(D,1), 1→(C,1) F: 0→(C,1), 1→(C,1) G: 0→(C,1), 1→(D,1) H: 0→(C,0), 1→(A,1). No initial state is specified. Find the equivalence partition of its states.
Answer & solution
Answer: {A}, {B}, {C,D}, {E,F,G}, {H}. (no official key was published)
Two Mealy states are equivalent if every finite input string produces the same output string from either state. In particular they must first agree on their immediate output for each input. The output pairs are (1,1) for A,B,E,F,G and (0,1) for C,D,H. This gives the initial partition P0={ABEFG,CDH}.
Refine each block according to the blocks reached on inputs 0 and 1, while retaining the output test. In P0, A and B lead respectively to blocks (ABEFG,CDH); E,F,G lead to (CDH,CDH); and C,D,H lead to (CDH,ABEFG). Hence P1={AB,EFG,CDH}.
Now use P1 to distinguish formerly similar successor states. A reaches (AB,CDH), whereas B reaches (EFG,CDH), splitting A from B. C and D both reach (CDH,EFG), whereas H reaches (CDH,AB), splitting H from CD. The states E,F,G still both transition into CDH. Thus P2={A,B,CD,EFG,H}.
Check stability: C and D have equal outputs and both go into CD on 0 and EFG on 1. Each of E,F,G has output 1 on both inputs and goes into CD on both inputs. No further split is needed. The singleton blocks trivially satisfy stability, so P2 is the equivalence partition.
Refinement never separates equivalent states: a split witnesses a finite input on which outputs eventually differ. For example, A and B are distinguished by 000, producing 111 and 110 respectively; H and C are distinguished by 100, producing 111 and 110. Conversely, a stable equal-output partition guarantees equal output sequences by induction on input length. This proves both directions, rather than guessing equivalent states from one-step transitions alone.
The Mealy state table gives (next state,output) for inputs 0 and 1: A: 0→(B,1), 1→(H,1) B: 0→(F,1), 1→(D,1) C: 0→(D,0), 1→(E,1) D: 0→(C,0), 1→(F,1) E: 0→(D,1), 1→(C,1) F: 0→(C,1), 1→(C,1) G: 0→(C,1), 1→(D,1) H: 0→(C,0), 1→(A,1). No initial state is specified. Give the minimal equivalent state table, naming merged states by their members.
Answer & solution
Answer: Five quotient states A,B,CD,EFG,H with the transition/output table below. (no official key was published)
The equivalence blocks are {A},{B},{C,D},{E,F,G},{H}. Replace every original destination by its block name, keeping the original output. The reduced table is:
Present state input 0: next/output input 1: next/output
A B/1 H/1
B EFG/1 CD/1
CD CD/0 EFG/1
EFG CD/1 CD/1
H CD/0 A/1
For example, C goes to D/0 and E/1, whereas D goes to C/0 and F/1. Once C,D are both named CD and E,F,G are all named EFG, those two rows become identical. Similarly, E,F,G all reduce to the row CD/1, CD/1. Therefore the choice of a representative inside a merged block does not affect the quotient table.
Why is this minimal rather than merely smaller? Output-based refinement begins with {ABEFG,CDH}, refines to {AB,EFG,CDH}, and then to the five displayed blocks, which are stable. Distinct resulting blocks have some finite distinguishing input, so no further merger preserves all output behavior. Five states are necessary to represent the behavior of all states in the given table.
No start state is printed, so the table does not justify inventing one or removing states as unreachable from it. This is minimization of the supplied machine's state behaviors. If a separate initial-state specification were supplied, one would additionally check reachability before reporting the size of a recognizer from that particular start. The table remains a Mealy table: outputs label transitions, not states, and a Moore-machine reinterpretation would be a different problem.
f=(¬w+y)(¬x+y)(w+¬x+z)(¬w+z)(¬x+z), where + is Boolean OR, juxtaposition is AND, and ¬ is complement. Express f in minimal sum-of-products form. The source requests only the answer; the derivation is included for learning.
Answer & solution
Answer: f=¬w¬x+yz. (no official key was published)
Group the two factors sharing ¬w and the two sharing ¬x. The Boolean identity (a+b)(a+c)=a+bc gives (¬w+y)(¬w+z)=¬w+yz, (¬x+y)(¬x+z)=¬x+yz. Applying the same identity with the common term yz gives (¬w+yz)(¬x+yz)=¬w¬x+yz. The original function is therefore (¬w¬x+yz)(w+¬x+z).
The remaining factor is redundant. Whenever ¬w¬x=1, its term ¬x makes w+¬x+z true. Whenever yz=1, its term z makes that factor true. Thus multiplying by it changes neither product term and f=¬w¬x+yz.
To justify minimality, not just equivalence, consider the true input 0000 in variable order wxyz. Any implicant covering it must require w=0 and x=0: changing w alone gives 1000, which is false, and changing x alone gives 0100, which is false. Its largest covering cube is therefore ¬w¬x. At 1111, changing y alone or z alone makes f false, so an implicant covering that point must require y=z=1. Its largest covering cube is yz. A single product cannot cover both 0000 and 1111 without allowing false inputs, since they disagree on every variable. Hence at least two terms and at least four literals are needed. The expression above uses exactly two two-literal terms and is minimal.
As a separate finite check, its 1-minterms are 0,1,2,3,7,11,15. Evaluating all 16 assignments agrees with the visually read five-factor source formula.
f=(¬w+y)(¬x+y)(w+¬x+z)(¬w+z)(¬x+z), where + is Boolean OR, juxtaposition is AND, and ¬ is complement. If the output line is stuck at 0, for how many input combinations is the output incorrect?
Answer & solution
Answer: 7 of the 16 input combinations. (no official key was published)
A stuck-at-zero output differs from the correct circuit exactly on inputs for which f should be 1. Inputs where f=0 still produce the correct visible output even though the circuit is faulty. First simplify the function to f=¬w¬x+yz using Boolean algebra.
Count the satisfying assignments by inclusion-exclusion. The term ¬w¬x fixes w=x=0 and leaves y,z free, giving four inputs. The term yz fixes y=z=1 and leaves w,x free, also giving four inputs. Their intersection fixes w=x=0,y=z=1, so that single input was counted twice. The number of distinct true inputs is 4+4−1=7.
In wxyz binary order, the erroneous inputs are 0000,0001,0010,0011,0111,1011,1111, corresponding to minterms 0,1,2,3,7,11,15. On each, the healthy output is 1 and the faulty output is 0. The other nine combinations have healthy output 0 and therefore do not expose this fault.
This count concerns one stuck-at fault on the final output line. It is not the count of faulty internal signals, nor a probability unless an input distribution is supplied. If all 16 inputs are equally likely, the observable error probability would be 7/16, but the requested answer is the integer 7.
The pictured four-bit adder receives b3…b0 and adds 0100 when b3b2=1, otherwise 0000; carry-in is zero. Its five output bits represent which conversion?
Your answer
Answer & solution
Answer: D: binary to radix 12 (no official key was published)
The condition b3b2=1 holds exactly for input values 12 through 15. For inputs 0 through 11, adding zero leaves the low four-bit digit unchanged and the carry zero. For inputs 12 through 15, adding four produces 16 through 19, so the output is carry 1 with low digit 0 through 3. Interpreting these as radix-12 digits gives 10₁₂ through 13₁₂, equal to decimal 12 through 15. BCD would instead correct at decimal 10 and add six, so it does not match this wiring.
A,B select mux inputs 0…3. In GFG the data inputs are C,¬C,¬C,C. Find f; the alternate loses the complement bars.
Your answer
Answer & solution
Answer: C: A⊕B⊕C (no official key was published)
When A=B, select 0 or 3, so f=C. When A≠B, select 1 or 2, so f=¬C. Thus f equals C toggled precisely when A⊕B=1, giving A⊕B⊕C. This evaluates all four selector cases and proves the parity expression. Both source readings are disclosed rather than silently treating the damaged alternate as identical.
For inputs 0,1, the next-state/output pairs are A:(D,0),(B,1); B:(A,0),(C,1); C:(A,0),(B,1); D:(A,1),(C,1). How many states remain?
Your answer
Answer & solution
Answer: B: 3 (no official key was published)
First group states by their immediate output pairs. A,B,C output (0,1), while D outputs (1,1), so D is separate. On input 0, A moves to D but B and C move to A, which belongs to the other initial group; therefore A must split from B,C. Now B and C both move to A on 0 and to the block {B,C} on 1, with identical outputs. They remain equivalent and no further split occurs. The stable partition is {A},{B,C},{D}, giving three states.
The K-map has rows CD=00,01,11,10 and columns AB=00,01,11,10; its 1s occur exactly where B≠D. Find a product-of-sums expression.
Your answer
Answer & solution
Answer: C: (B+D)(¬B+¬D) (no official key was published)
The displayed 1s occupy both B=1 columns when D=0 and both B=0 columns when D=1, independent of A and C. Hence the function is B XOR D. For a product-of-sums derivation, group the zeros with B=D=0 to obtain maxterm B+D, and group the zeros with B=D=1 to obtain maxterm ¬B+¬D. Their product is the required function. The paper option C prints this expression.
Inputs A,B and control bits C1,C0 specify F: 00→NOT(A OR B), 01→A OR B, 10→A XOR B, 11→A AND B. Implement using one 4:1 multiplexer, one two-input OR, one XOR, one AND, and one inverter. This is the complete GFG table; GateForum omits the last row.
Answer & solution
Answer: MUX selects I0=NOT(A+B), I1=A+B, I2=A XOR B, I3=AB with selectors C1,C0. (no official key was published)
First compute P=A OR B using the single OR gate. Fan out P to the multiplexer input I1 and to the inverter; connect the inverter output NOT(P) to I0. Compute X=A XOR B with the XOR gate and connect it to I2. Compute G=A AND B with the AND gate and connect it to I3. Use C1 as the high-order select bit and C0 as the low-order select bit. The multiplexer output is F.
Text circuit: A,B→OR→P→I1; P→NOT→I0; A,B→XOR→I2; A,B→AND→I3; (C1,C0)→MUX select; MUX→F. A common wire may drive multiple inputs, so sharing the OR result does not require another gate.
The four select codes choose I0,I1,I2,I3 respectively, directly reproducing the complete table. Algebraically F=(NOT C1)(NOT C0)NOT(P)+(NOT C1)C0P+C1(NOT C0)X+C1C0G. These outer products describe the multiplexer and do not demand extra physical gates.
A synchronous circuit has three D flip-flops with common clock. Q1 feeds D2, Q2 feeds D3, and Q2 XOR Q3 feeds D1 through the feedback gate. State Si denotes the binary value i of Q1Q2Q3, so S0=000,...,S7=111. Draw its state-transition diagram.
Answer & solution
Answer: S0 self-loop; S1→S4→S2→S5→S6→S7→S3→S1. (no official key was published)
A D flip-flop takes its next output from its D input on the common active clock edge. All three updates use the old outputs simultaneously. Reading the circuit wires gives Q1(next)=Q2 XOR Q3, Q2(next)=Q1, and Q3(next)=Q2. In particular, do not feed the newly computed Q1 into Q2 during the same clock edge.
To draw the diagram, put a self-loop on S0 and draw the separate seven-state directed cycle S1→S4→S2→S5→S6→S7→S3→S1. There is no external input, so each state has exactly one outgoing edge and there are no input labels to choose. The zero state is a fixed point because shifting zeros and XORing zeros still gives zeros. As a consistency check, the listed targets contain all eight states once; the transition function is invertible, since the old Q1 and Q2 are read from the new Q2 and Q3 and old Q3 is recovered by XORing new Q1 with new Q3.
States unreachable from the initial register state
Finite-State Machine Design
Tap to enlarge
A synchronous circuit has three D flip-flops with common clock. Q1 feeds D2, Q2 feeds D3, and Q2 XOR Q3 feeds D1 through the feedback gate. State Si denotes the binary value i of Q1Q2Q3, so S0=000,...,S7=111. Starting at S4, identify all unreachable states.
Answer & solution
Answer: Only S0 is unreachable; the seven nonzero states form the cycle containing S4. (no official key was published)
The next-state equations are (Q1,Q2,Q3)→(Q2 XOR Q3,Q1,Q2). Begin with S4=100 and repeatedly apply them. The successive states are S4=100, S2=010, S5=101, S6=110, S7=111, S3=011, S1=001, and then S4=100 again.
Once a deterministic state repeats, its subsequent trajectory repeats too; there is no input capable of taking a different branch. Therefore the reachable set is exactly {S1,S2,S3,S4,S5,S6,S7}, including the initial state itself at time zero. The only member of the eight-state space not visited is S0=000. It is unreachable from S4, although it is a perfectly valid state and would remain at zero forever if chosen as an initial state.
One can verify the exclusion algebraically. If the next state were 000, then new Q2=old Q1=0 and new Q3=old Q2=0. New Q1=old Q2 XOR old Q3=0 then forces old Q3=0. Thus only 000 can transition to 000; no nonzero state can enter it. The enumerated seven-state cycle proves that no additional state is excluded. The paper labels this subpart separately as question 73, but it is part (b) of original question 24 and shares that question's circuit and five-mark group allocation.
Solve ¬A+AB=0, AB=AC, AB+A¬C+CD=¬C·D in GFG. GateForum instead appears to print ¬(CD) on the last right side.
Your answer
Answer & solution
Answer: A: (1,0,0,1) (no official key was published)
The first equation is an OR equal to zero, forcing ¬A=0 and AB=0. Hence A=1 and B=0. The second equation then forces C=0. Substituting into the third leaves 1=D under the reading ¬C·D, so D=1. Complement scope is therefore a material the paper difference, not a cosmetic notation choice.
Count ones in the binary representation of 3·4096+15·256+5·16−3 in GFG; the alternate prints +3.
Your answer
Answer & solution
Answer: C: 10 (no official key was published)
Before subtracting three, the number is hexadecimal 3F50. Subtracting gives 3F4D, whose nibbles 0011,1111,0100,1101 contain 2+4+1+3=10 ones. Thus the answer happens to agree despite the different arithmetic expressions. The subtraction borrows from the previous nibble; treating its low digit as an independent negative digit would not give a binary representation.
A four-state machine has next states under input 1 of A→D, B→B, C→B, D→B, and under input 0 of A→B, B→C, C→D, D→C. Starting from an unknown state, find the shortest input sequence that guarantees state C. Options: (A) 01, (B) 10, (C) 101, (D) 110.
Your answer
Answer & solution
Answer: B: 10 (no official key was published)
Initially the possible states are {A,B,C,D}. Applying input 1 reduces this set to {B,D}: A goes to D, while B,C,D go to B. Applying input 0 then sends both B and D to C, so 10 guarantees C. The four paths are A→D→C, B→B→C, C→B→C and D→B→C. No shorter word works: the empty word leaves the initial state unknown, input 0 yields {B,C,D}, and input 1 yields {B,D}. Therefore length two is minimal and option B, 10, is correct. The output labels z do not affect the target-state requirement.
Implement Z=¬A+¬B+C using an inverter and a NAND gate. Here + means OR; both A and B carry complement bars.
Answer & solution
Answer: Invert C; feed A,B,¬C to a three-input NAND. (no official key was published)
De Morgan’s law gives ¬(A·B·¬C)=¬A+¬B+¬¬C=¬A+¬B+C. Therefore make the intermediate wire N=NOT(C) with the inverter, and connect A, B and N to a three-input NAND whose output is Z.
An exact circuit netlist is N := NOT C; Z := NAND3(A,B,N). The inverter is on C, even though the displayed formula has bars on A and B: the NAND’s output inversion supplies those two complements and changes the complement of its third input back into C.
As a truth-table check, the required OR expression is zero only when A=1, B=1 and C=0. Then N=1, all three NAND inputs are 1, and the output is 0. For every other assignment at least one NAND input is 0 and the output is 1. This uses a three-input NAND; restricting the available NAND to two inputs would require a different multi-gate implementation, which the statement does not specify.
K-map columns AB are 00,01,11,10; rows CD are 00,01,11,10. Row values in that order are [1,0,0,1], [0,1,1,0], [0,1,1,0], [1,0,0,1]. Blank source cells mean zero. Find minimal SOP.
Answer & solution
Answer: ¬B¬D+BD (B XNOR D). (no official key was published)
Step through it (10 steps)
Use two groups of four cells. The four corner cells form one valid group because the first and last rows are adjacent in Gray-code order, as are the first and last columns. Within that group B=0 and D=0, while A and C each vary. Its product term is ¬B¬D.
The central 2×2 block forms the other group. Its columns AB=01,11 both have B=1; its rows CD=01,11 both have D=1. A and C again vary, so this group contributes BD. The resulting sum of products is ¬B¬D+BD, independent of A and C.
Each group covers four ones and no zeros, and together they cover all eight ones. No eight-cell group is possible: the zero cells separate the two B,D cases. Each isolated case B=D=0 and B=D=1 needs its own implicant, so two two-literal products are minimal. The output is 1 exactly when B and D agree, which supplies the equivalent description B XNOR D.
The circuit forms t=NAND(A,B), u=NAND(t,C), v=NAND(C,D), then f=NAND(u,v). Find its Boolean expression.
Your answer
Answer & solution
Answer: A: ¬A·C+¬B·C+CD (no official key was published)
Write t=¬(AB), u=¬(tC), and v=¬(CD). The final NAND gives f=¬(uv)=¬u+¬v=tC+CD by De Morgan’s law. Substituting t=¬A+¬B yields f=¬A·C+¬B·C+CD. Following the intermediate nets prevents accidentally treating the first NAND as AND or distributing a complement across a sum without changing the operator. This algebra uses the input fan-out of C to both middle gates as shown in the figure.
Similar questions1 more → · asked again: GATE 2011, Q15
Flip-flops for a modulo counter
Counters & Timing
Tap to enlarge
Fill in the minimum number of flip-flops required for a binary modulo-N counter.
Answer & solution
Answer: ceil(log₂N), for N≥2 (no official key was published)
With k flip-flops, the state register has at most 2^k distinct binary states. A modulo-N counter must distinguish N positions before repeating, so 2^k≥N and k≥ceil(log₂N). This many bits are sufficient: use N of the available states and arrange the transition after N−1 to return to zero. Non-power-of-two counters leave unused codes, whose recovery behavior should be designed separately. The degenerate N=1 counter can be a constant output with no state bits in the abstract model.
Finite-state addition of arbitrarily long integers
Finite-State Machine Design
Tap to enlarge
True or false: a finite-state machine can add two integers of arbitrary digit length. State the input/output convention.
Answer & solution
Answer: True for an LSB-first synchronous serial adder (no official key was published)
Feed the two numbers one bit pair at a time from least significant to most significant, padding the shorter with zeros. The machine needs only the carry bit c, hence two states. For input bits a,b it emits (a+b+c) mod 2 and changes state to floor((a+b+c)/2). After the final pair, emit the remaining carry. This works for any finite length with constant internal state. The convention matters: it is a transducer with paired LSB-first input, not a DFA expected to store both complete unbounded integers or emit an MSB-first sum before future carries are known.
Match ECL,GaAs,TTL,CMOS with: (a) unipolar very fast radiation-resistant/difficult fabrication; (b) unipolar low power; (c) fast bipolar silicon/low density; (d) inexpensive bipolar.
Answer & solution
Answer: i–c,ii–a,iii–d,iv–b (no official key was published)
ECL uses bipolar transistors operated without deep saturation for high switching speed, matching c. GaAs technologies historically offered high speed and radiation resistance with fabrication challenges, matching a. TTL is the familiar bipolar family associated with inexpensive standard logic, matching d. CMOS uses complementary MOS devices and low static power, matching b. These are the historical qualitative comparisons given in the question; modern fabrication nodes can substantially change absolute speed, power and density rankings.
A received seven-bit single-error-correcting Hamming word has positions 7,6,5,4,3,2,1 containing 1,0,0,0,1,1,0 respectively. Assuming at most one corrupted bit, determine correctness and, if needed, correct it.
Answer & solution
Answer: Even parity: bit 6 is wrong, corrected word 1100110. Odd parity: bit 1 is wrong, corrected word 1000111. (no official key was published)
1. Parity checks cover positions {1,3,5,7}, {2,3,6,7}, {4,5,6,7}. Their received XORs are 0,1,1.
2. For even parity each expected XOR is zero. The failure vector (s4,s2,s1)=110₂=6 locates bit 6; flip its 0 to 1 to obtain 1100110 in position order 7 through 1. All three checks then equal zero.
3. For odd parity each expected XOR is one. The failure vector is 001₂=1, so flip bit 1 from 0 to 1 to obtain 1000111 in position order 7 through 1. All three checks then equal one.
4. Because the source does not specify the parity convention, one cannot select a unique corrected word without stating an assumption.
Diagram / structural description
Position: 7 6 5 4 3 2 1 Received: 1 0 0 0 1 1 0
Neither the paper explicitly specifies even or odd parity.
For the shown common-clock circuit, initial Q2Q1Q0=000. Find the state after four clock pulses. The Q2 flip-flop is JK with J=Q̅0,K=1; Q1 is D with D=Q2; Q0 is T with T=Q1.
Answer & solution
Answer: 011 (no official key was published)
1. All flip-flops sample their inputs from the same pre-edge state. JK gives Q2(next)=J·Q̅2+K̅·Q2=Q̅0·Q̅2. D gives Q1(next)=Q2. T gives Q0(next)=Q0 XOR Q1.
2. Starting at 000, the first pulse gives 100. The second gives 010. The third gives 101. The fourth gives 011.
3. Do not propagate a freshly changed Q2 into Q1 during the same edge; that would model a different asynchronous circuit.
Diagram / structural description
Common clock to JK(Q2), D(Q1), T(Q0). Q2→D; Q1→T; inverted Q0 feedback→J; K tied to logic 1.
Let t=NOR(x,y),u=NOR(x,t),v=NOR(y,t),f=NOR(u,v). Identify the function.
Select all that apply
Answer & solution
Answer: B: exclusive NOR (no official key was published)
The first output is t=¬x¬y. Then u=¬(x+t)=¬x·y and v=x·¬y. These are the two unequal-input cases. The final NOR complements their OR, giving f=¬(¬x·y+x·¬y)=xy+¬x¬y. Hence f is one exactly when x=y, the exclusive-NOR function. Evaluating 00,01,10,11 yields 1,0,0,1, distinguishing it from XOR and from a single NOR gate.
Recovered diagram: S1 loops for a=1 and goes to S2 for a=0; S2 loops for b=1 and goes to S1 for b=0. Which input restriction makes the machine have a stable state? A ab=1; B a+b=1; C ¬a+¬b=0; D ¬(ab)=1; E ¬(a+b)=1. Here + means Boolean OR. The section permits multiple correct alternatives.
Select all that apply
Answer & solution
Answer: B is the exact condition; A, B and C are sufficient restrictions if read as select-all-that-apply (no official key was published)
The arrows give S1→S1 when a=1 and S1→S2 when a=0; S2→S2 when b=1 and S2→S1 when b=0. Hold the inputs constant and test each pair. At (a,b)=(0,0), both states leave themselves, so there is no fixed point. At (0,1), S2 is stable and S1 reaches it. At (1,0), S1 is stable and S2 reaches it. At (1,1), both states are stable. Thus at least one stable state exists exactly when a∨b=1, giving B as the necessary-and-sufficient, least restrictive condition. A and C both force a=b=1 and hence are also sufficient restrictions, though not necessary. Because the original section allows multiple correct alternatives and the wording does not explicitly ask for the least restrictive condition, A,B,C is defensible under a merely sufficient-condition reading. D permits (0,0), while E requires (0,0), so neither guarantees stability.
Three common-clock JK stages use J/K as a signal and its complement; stages shift Q1→Q2→Q3, and the first receives ¬Q3. Starting at 000, what function is performed?
Select all that apply
Answer & solution
Answer: C: modulo-6 counter (no official key was published)
With complementary J and K inputs, each JK stage copies the signal on J at the next edge. The transition is therefore (Q1,Q2,Q3)→(¬Q3,Q1,Q2). Starting at 000 gives 100,110,111,011,001,then 000. The six distinct states form the cycle, so it is a three-stage Johnson counter with modulus six. It uses shift-register structure, but its specified closed-loop function from the given initial state is the modulo-6 count; the unused states are not part of that cycle.
The integer bits have weights 4,2,1 and contribute 4+2+0=6. The fractional bits have weights 1/2,1/4,1/8 and contribute 1/2+0+1/8=0.625. Add the two parts to get 6.625. Fractional bit positions continue negative powers of the base; treating .101 as a decimal fraction would not preserve the given binary value. This is one of the two separately retained conversion subparts sharing the printed group marks.
Convert (1118)₁₀ to base H as printed. Interpret H explicitly.
Answer & solution
Answer: 45E₁₆, if H denotes hexadecimal (no official key was published)
Taking H as the conventional hexadecimal notation, divide 1118 by 16: quotient 69,remainder 14=E. Divide 69 by 16: quotient 4,remainder 5. The final quotient 4 is the leading digit, giving 45E. Verify by expansion: 4·256+5·16+14=1024+80+14=1118. The source labels the desired base H rather than the number 16, so the hexadecimal interpretation is stated. If H were instead an unspecified variable radix, a unique numeral could not be supplied.
Only half adders are available. Show how any binary Boolean function can be implemented using them. The source does not specify whether fixed logic inputs are allowed.
Answer & solution
Answer: Universal with a fixed logic-1 input; false for constant-free combinational half-adder networks. (no official key was published)
A half adder on inputs x,y produces S=x XOR y and C=xy. Its carry output directly implements AND. If a fixed logic 1 is allowed as an input, its sum output on (x,1) is NOT x. Thus half adders provide the functionally complete basis {AND,NOT}. For example OR follows from De Morgan: x OR y = NOT((NOT x) AND (NOT y)). A concrete four-half-adder OR network uses H1(x,1).sum=nx, H2(y,1).sum=ny, H3(nx,ny).carry=z, H4(z,1).sum=x OR y; unused outputs may be ignored. Fan-out and tied inputs are permitted wiring operations, not additional gates.
To implement any two-input truth table f, form the minterms NOT x AND NOT y, NOT x AND y, x AND NOT y, and x AND y. OR together exactly those minterms whose truth-table rows have output 1. Each minterm uses available NOT/AND networks, and each OR uses the construction above. Empty selection gives constant 0, obtainable as H(x,x).sum; all four selected give constant 1. The same sum-of-products argument works for any finite number of Boolean inputs.
There is an essential qualification: without an independent logic-1 supply (or another non-zero-preserving primitive), the claim is false. Both half-adder outputs are 0 when both inputs are 0. By induction in topological order, every signal in a finite combinational network of such half adders is 0 when all external variables are 0. Therefore it cannot compute NOT x or the constant-1 function. Tying both inputs to the same variable gives XOR=0 and AND=x, not a source of 1. Feedback without a specified initial state is not a valid general combinational implementation. The intended universality proof consequently requires explicit permission to supply constant 1.
Two common-clock D flip-flops hold A,B. The two NAND inputs to the final NAND for D_A are NAND(¬A,B), NAND(¬A,¬P); those for D_B are NAND(P,¬B), NAND(¬P,A). Derive the state transition table.
Answer & solution
Answer: AB,P → A⁺B⁺: 00,0→10; 00,1→01; 01,0→10; 01,1→10; 10,0→01; 10,1→01; 11,0→01; 11,1→00. (no official key was published)
Read the feedback labels and output inversion bubbles before simplifying: the upper two first-stage gates share ¬A, and the bottom gate uses A and ¬P. A NAND of two NAND outputs implements an OR of their underlying products. Therefore D_A=¬A·B+¬A·¬P=¬A(B+¬P), and D_B=P·¬B+¬P·A. On a clock edge the new states are these D values evaluated from the old A,B and sampled P, not from a newly updated flip-flop.
For P=0 the equations become A⁺=¬A and B⁺=A, so old states with A=0 go to 10 and those with A=1 go to 01. For P=1 they become A⁺=¬A·B and B⁺=¬B. Evaluating 00,01,10,11 gives 01,10,01,00 respectively.
Complete table (old AB: next for P=0 / next for P=1): 00: 10 / 01 01: 10 / 10 10: 01 / 01 11: 01 / 00. This table includes all eight state/input combinations. Crossing wires without junction dots are not additional connections. Both source diagrams agree on the labelled feedback paths.
Rows are B=0, 1 and columns C=0, 1. The four entries are 1, 0, ¬A, A respectively. Give a sum of products.
Answer & solution
Answer: ¬B¬C+¬A¬C+ABC (no official key was published)
The B=0, C=0 cell is one for either A, giving ¬B¬C. At B=1, C=0 the output is ¬A, which joins the A=0 portion of the first cell to give ¬A¬C. The remaining one occurs at A=B=C=1 and is isolated, giving ABC. Thus the SOP is ¬B¬C+¬A¬C+ABC. Alternatively the direct unsimplified expansion ¬B¬C+¬AB¬C+ABC is equivalent. The letter entries in the map are functions of the third variable, not literal binary cells.
Similar questions3 more → · asked again: GATE 1998, Q2.8
Commutative but nonassociative gate
Boolean Algebra & Logic Gates
Tap to enlarge
Which operation is commutative but not associative: AND, OR, XOR, NAND?
Select all that apply
Answer & solution
Answer: D: NAND (no official key was published)
NAND(a, b)=¬(ab), unchanged when a and b are exchanged, so it is commutative. To refute associativity choose a=0, b=1, c=1. Then NAND(NAND(0, 1), 1)=NAND(1, 1)=0, whereas NAND(0, NAND(1, 1))=NAND(0, 0)=1. AND, OR and XOR are associative as well as commutative. A single counterexample suffices to disprove the NAND associativity identity for all triples.
Which can realize arbitrary digital Boolean functions: XOR gates, multiplexers, half adders, OR gates? State constant-input assumptions.
Select all that apply
Answer & solution
Answer: B, C for combinational functions with constants available (no official key was published)
A multiplexer implements Shannon expansion f=¬s f0+s f1, so recursively selecting cofactors realizes any Boolean function with constant leaves. A half adder supplies XOR and AND; tying one XOR input to 1 gives NOT, and AND plus NOT is functionally complete. XOR-only networks remain affine, while OR-only networks cannot implement negation. Thus B, C follow when constants, especially 1, are available. Without a supplied 1, mux and half-adder networks are zero-preserving and cannot realize every function. Also sequential circuits require state/feedback assumptions beyond combinational functional completeness; the source’s “all digital circuits” is broader than the standard intended claim.
Explain when addition in fixed-width two’s-complement arithmetic overflows, and why carry out of the most significant bit is not sufficient.
Answer & solution
Answer: Overflow iff equal-sign operands produce the opposite-sign result; V = carry into sign bit XOR carry out. (no official key was published)
For a w-bit two’s-complement word the representable interval is −2w−1 through 2w−1−1. Hardware retains the low w bits of the mathematical sum. Overflow means the mathematical signed sum lies outside this interval, not merely that an unsigned carry was discarded.
Let a,b be the operand sign bits and s the retained result sign bit. The overflow flag is V=(¬a∧¬b∧s)∨(a∧b∧¬s). Two nonnegative numbers overflow only by producing a sign bit of 1; two negative numbers overflow only by producing a sign bit of 0. Opposite-sign operands cannot overflow: their sum lies between the operands and hence within the representable interval.
Equivalently, if c_in is the carry into the sign-bit adder and c_out its outgoing carry, V=c_in XOR c_out. This follows by considering the sign-bit full-adder cases: for equal operand signs an incorrect result sign occurs precisely when these carries differ; for unequal signs they agree.
For four bits, 0111+0001=1000 represents 7+1 as −8: overflow occurs despite no outgoing carry. Conversely 1111+0001=0000 with carry 1 represents −1+1=0 correctly: carry occurs without overflow. Finally 1000+1111=0111 with carry 1 is −8+(−1), which really does overflow. These examples separate the unsigned carry flag from the signed overflow flag.
Design a three-input priority encoder with A>B>C using 4:1 multiplexers. Output X1X0 identifies the highest-priority active input, and is 00 if none is active.
Answer & solution
Answer: Choose A→11, B→10, C→01. Use two 4:1 MUXes, selects A,B; X1 inputs (0,1,1,1), X0 inputs (C,0,1,1). (no official key was published)
The statement does not assign binary labels to A, B, C, so explicitly choose A→11, B→10 and C→01, reserving 00 for no request. Any distinct nonzero assignment is valid if stated and implemented consistently.
The compressed truth table is: A B C | X1 X0 1 – – | 1 1 0 1 – | 1 0 0 0 1 | 0 1 0 0 0 | 0 0 A higher-priority 1 hides all lower-priority inputs. The resulting functions are X1=A∨B and X0=A∨(¬B∧C).
For both 4:1 multiplexers use select S1=A, S0=B, with D0,D1,D2,D3 selected by 00,01,10,11 respectively. Evaluate each function at these four selector values:
D0 D1 D2 D3
MUX for output X1: 0 1 1 1
MUX for output X0: C 0 1 1
Wiring diagram
A,B ──selects──>[4:1 MUX, data 0,1,1,1]──>X1
A,B ──selects──>[4:1 MUX, data C,0,1,1]──>X0
Tie 0 and 1 inputs to valid logic rails and enable both multiplexers. No inverter is needed in this realization. For example A=0,B=1,C=1 selects D1 and gives 10, correctly ignoring C. A=1 selects either D2 or D3 and always gives 11.
Design a 3-bit counter with D flip-flops such that at most one flip-flop changes between consecutive states.
Answer & solution
Answer: Use cyclic Gray sequence 000,001,011,010,110,111,101,100; D2=Q2Q0+Q1¬Q0, D1=Q1¬Q0+¬Q2Q0, D0=Q2Q1+¬Q2¬Q1. (no official key was published)
Use all eight states in the reflected Gray-code order, including a one-bit wraparound: 000 → 001 → 011 → 010 → 110 → 111 → 101 → 100 → 000. A binary counter would fail at transitions such as 011→100, where three bits change. In this Gray cycle every adjacent pair, including 100→000, differs in exactly one bit.
For a D flip-flop, next Q equals current D at the active clock edge. Thus the state table directly gives the needed excitation table: Q2Q1Q0 | D2D1D0 000 | 001 001 | 011 010 | 110 011 | 010 100 | 000 101 | 100 110 | 111 111 | 101
Grouping the 1s of each next-state column on a three-variable Karnaugh map gives: D2=(Q2∧Q0)∨(Q1∧¬Q0) D1=(Q1∧¬Q0)∨(¬Q2∧Q0) D0=(Q2∧Q1)∨(¬Q2∧¬Q1).
One common clock drives all three DFFs; clear inputs initialize Q2Q1Q0=000. Feedback connects each Q to the combinational network. All states belong to the cycle, so there are no unused lockout states. The guarantee concerns stable states at clock edges, assuming setup/hold and propagation constraints; glitches within combinational logic are not extra counter states.
The GFG figure connects x through controls ¬a, b and y through controls a, ¬b, joining at f. Upper a and lower b have inversion bubbles; Forum omits these bubbles. Find f.
Answer & solution
Answer: x¬ab+ya¬b in the Boolean switching model; no driven output for a=b without an additional convention (no official key was published)
The upper a-controlled switch has an inversion bubble while its b switch does not. This path conducts when a=0, b=1, passing x. The lower path has the opposite control polarities, so it conducts when a=1, b=0 and passes y. Combining those path contributions gives f=x¬ab+ya¬b. The paths are never simultaneously enabled, so this the reading avoids conflicting input drivers. However, when a=b neither path conducts: a physical pass-transistor output is floating or retains charge unless a pull device or storage convention is specified. Thus treating disabled paths as Boolean zero is a switching-algebra convention.
Count binary ones in the number. Forum prints 9×16³+7×16²+5×16+3; GFG instead appears to use plus signs between every displayed term.
Answer & solution
Answer: 4 ones, reading the printed + signs as addition (no official key was published)
Convert its digits independently: 9→1001, 7→0111, 5→0101, 3→0011. Their one counts are 2+3+2+2=9; concatenation introduces no carries. If the plus signs are taken literally, the sum is 16³+9+16²+7+16+5+3=4392=0x1128, whose binary representation has four ones. The arithmetic results are therefore source-dependent.
A=a3a2a1a0 and B=b3b2b1b0 are unsigned four-bit numbers. Express product bit c1.
Answer & solution
Answer: c1=(a1b0) XOR (a0b1) (no official key was published)
The column of weight 1 contains only a0b0, so it produces c0 and no carry into the weight-2 column. That next column contains a1b0 and a0b1. Adding two bits gives their XOR as the low result bit and their AND as carry to weight 4. Hence c1 is the XOR of the two partial products. Higher input bits cannot contribute to this column because their positional weights are at least four. Ordinary OR would be wrong when both partial products are one.
Which listed advantage does CMOS have over nMOS: lower power, greater speed, smaller chip, fewer masks, none?
Select all that apply
Answer & solution
Answer: A: lower power dissipation in the conventional static comparison (no official key was published)
A static CMOS gate ideally has no direct DC path from supply to ground in a stable logic state: one complementary network is off. Conventional nMOS load logic can draw steady current in one state. This explains the standard lower-static-power advantage. CMOS still consumes dynamic switching power and leakage, so zero real power is not asserted. Speed, area and fabrication-mask count depend on process and circuit design; the other listed claims are not universal advantages established merely by choosing CMOS. The comparison is historical logic-family behavior, not a ranking of every modern implementation.
Choose the advantage of synchronous over asynchronous sequential circuits: faster operation, easier hazard avoidance, less hardware, better noise immunity, none.
Select all that apply
Answer & solution
Answer: B: easier avoidance of hazard-related errors (no official key was published)
A synchronous design samples state on designated clock events. If combinational signals settle and setup/hold constraints are met before those events, intermediate glitches need not become incorrect stored states. This makes hazard management more systematic than in an asynchronous network whose transitions can directly trigger further state changes. The clock does not eliminate glitches or metastability automatically. Nor does synchrony inherently guarantee greater speed, smaller hardware or electrical noise immunity. The advantage is controlled observation time, subject to correct timing design.
Three two-input AND gates form aQ, ab and bQ; their outputs feed a three-input OR whose output Q is fed back to the first and third AND gates. Complete the output table for inputs ab=00,01,10,11, allowing for the prior stable output.
Answer & solution
Answer: 00→0; 01→previous Q; 10→previous Q; 11→1. (no official key was published)
Denote the previously stable feedback value by Q_old. Reading each gate gives Q_new = aQ_old + ab + bQ_old. This is the majority function of a, b and Q_old, not a memoryless two-input gate.
For a=b=0 all three products vanish, so the circuit resets to 0. For a=0,b=1 only bQ_old remains, so the old output is retained. For a=1,b=0 only aQ_old remains, also retaining the old value. For a=b=1 the middle product ab forces 1 irrespective of the old state. Thus the requested table, in row order 00,01,10,11, is 0,Q_old,Q_old,1.
A connection schematic is: AND(a,Q) ┐; AND(a,b) ├→ OR → Q; AND(b,Q) ┘, with Q returned to the indicated inputs. This is a two-input Muller C-element: equal inputs update the state, unequal inputs hold it. Without an initial condition the held value cannot be replaced by a numerical zero or one. The table describes settled behavior and does not assert that arbitrary simultaneous input changes are hazard-free.
Find a minimum SOP for f(A,B,C,D)=Σm(0,2,8,10,15)+Σd(3,11,12,14), with A the most significant bit.
Answer & solution
Answer: f = B′D′ + AC (two products, four literals). (no official key was published)
Step through it (12 steps)
Place the mandatory ones at 0,2,8,10,15 in the four-variable Karnaugh map, mark 3,11,12,14 as optional, and treat all other cells as zeros. The group {0,2,8,10} fixes B=0,D=0 while A,C vary, producing B′D′. The group {10,11,14,15} fixes A=1,C=1, producing AC; its cells 11 and 14 are permitted don’t-cares. The union covers every mandatory one and no mandatory zero.
For minimality, a single implicant containing both 0=0000 and 15=1111 would leave all four bits free and cover forbidden zeros. Therefore at least two product terms are necessary. No one-literal implicant is legal: each half of the truth table contains at least one mandatory zero. Hence each nonzero product needs at least two literals, and two products need at least four literals. Our expression meets both lower bounds.
Don’t-cares are permissions to choose values that simplify the implementation, not required ones. For example this solution sets 3 and 12 to zero, which is allowed. Check the seven mandatory-zero cells as well as the five mandatory-one cells; checking only the specified ones would not establish equivalence.
Three JK flip-flops Q0,Q1,Q2 share a clock. J0=K0=1. Cascaded two-input ANDs compute C1=1·Q0, C2=C1·Q1, C3=C2·Q2; J1=K1=C1 and J2=K2=C2. C3 is an outgoing carry with no shown destination. Flip-flop and AND delays are each 10 ns; setup time is negligible. Find maximum counter clock frequency.
Answer & solution
Answer: Shown register-to-register path: Tmin=30 ns, fmax≈33.33 MHz. Requiring final carry settlement adds a separate 40 ns/25 MHz condition. (no official key was published)
This is a synchronous counter, since all three flip-flops receive the same clock. It is not a three-stage ripple-clock chain. After an active edge, Q0 may change after 10 ns. Its new value reaches C1 after one AND delay and C2 after a second AND delay. The latest JK input of a shown flip-flop therefore settles after 10+10+10=30 ns. With negligible setup time the next active edge must be no earlier, giving fmax=1/(30 ns)=33⅓ MHz.
The path from Q1 to C2 takes only 20 ns. Q2 does not drive another displayed flip-flop. The third AND produces C3 only after as much as 40 ns from the clock, but that carry output is not connected to a register input in the displayed three-bit circuit. Counting it in the counter’s internal feedback constraint would assume an additional stage or external timing requirement.
If the question intends the outgoing carry to settle before every next edge, or the drawing is an expandable counter whose next stage samples C3, use Tmin=40 ns and fmax=25 MHz instead. State that additional condition explicitly. Clock skew, hold-time constraints and wire delays are outside the supplied delay model.
Using D flip-flops and gates, design a three-bit parallel-in/serial-out register shifting left to right. Inputs: CLK, parallel A,B,C; serial input S; LOAD/SHIFT control.
Answer & solution
Answer: For L=1 load: D0=LA+L′S, D1=LB+L′Q0, D2=LC+L′Q1; serial output Q2. (no official key was published)
Let Q0,Q1,Q2 be the stored bits from left to right. Define L=1 as LOAD and L=0 as SHIFT, consistent with the uncomplemented LOAD and complemented SHIFT label. Place a 2:1 multiplexer before each D flip-flop and connect all three clock pins to CLK.
Connection schematic
A ─load─┐ B ─load─┐ C ─load─┐
S ─shift┴MUX→DFF Q0 ─shift┴MUX→DFF Q1 ─shift┴MUX→DFF Q2→OUT
Each MUX uses L as select; all DFFs use the same active clock edge.
The gate equations are D0=(L AND A) OR (NOT L AND S), D1=(L AND B) OR (NOT L AND Q0), D2=(L AND C) OR (NOT L AND Q1). Implement each mux with two AND gates and one OR gate, sharing an inverter for L.
On a load edge the state becomes (A,B,C). On successive shift edges it becomes (S1,A,B), then (S2,S1,A), then (S3,S2,S1). The bits shifted out, measured just before those edges, are C,B,A. All right-hand sides use the old state because the flip-flops update together; using the newly updated Q0 to compute Q1 would incorrectly move a bit through several stages in one clock. An asynchronous reset is optional, not required for loading.
Design a 1024-bit serial-in/serial-out unidirectional shift register using a 1K×1 RAM with Din,Dout and READ/WRITE control, plus standard gates, registers and counters.
Answer & solution
Answer: Use a modulo-1024 address counter and read-before-write phases: capture old RAM[p] as output, overwrite RAM[p] with input, then advance p. (no official key was published)
A literal shift of all 1024 RAM cells on every bit would be wasteful. Instead, regard the RAM as a circular queue. Use a 10-bit binary counter p connected to RAM address A9..A0, an input holding flip-flop I, an output flip-flop O, and a two-phase controller.
Schematic
serial IN→I→RAM Din; counter p[9:0]→RAM address; RAM Dout→O→serial OUT. Controller→{I clock, RAM READ/WRITE, O clock, counter enable}.
For each external shift event: (1) latch the incoming bit in I and keep p stable; (2) select READ, wait for RAM access time, and clock Dout into O; (3) select WRITE and store I at the same p, meeting write pulse/setup/hold timing; (4) return to READ and increment p modulo 1024. The output must be captured before the write, since the RAM’s read-during-write behavior is not specified.
After initialization, address p holds the oldest of the 1024 retained bits. Reading emits that bit, overwriting appends the new bit, and incrementing makes the next-oldest location the head. Inductively, input bit s[k] is emitted on shift event k+1024, where an event’s output means the bit removed on that event. The first 1024 outputs depend on the RAM’s initial contents. To emulate a reset-to-zero shift register, clear every RAM location during a separate initialization sweep. The external shift period must accommodate both the read and write phases.