GATE-2012 ECE Q7 (digital)

Question 7 on digital from GATE (Graduate Aptitude Test in Engineering) 2012 Electronics and Communication Engineering paper.

Q7. The output Y of a 2-bit comparator is logic 1 whenever the 2 bit input A is greater than 2 bit input B. The number of combinations for which output is logic 1 is

(A) 4

(B) 6

(C) 8

(D) 10

Solution

Let’s write all the 16 possible combinations of A and B and count the number of times A is greater than B. Can easily see that the count is 16.

ABOut
000
010
020
030
101
110
120
130
201
211
220
230
301
311
321
330
TOTAL6

Alternately, pick each value of A and count the number of instances when A is greater than B. The count is 0 + 1 + 2 + 3 for A = 0,1,2,3 respectively.

Based on the above, the right choice is (B) 6

 

References

[1] GATE Examination Question Papers [Previous Years] from Indian Institute of Technology, Madras http://gate.iitm.ac.in/gateqps/2012/ec.pdf

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *