Top Banner
1) A bulb in a stair case has two switches, one switch being at the ground floor and the other one at the first floor. The bulb can be turned ON and also can be turned OFF by any one of the switches irrespective of the state of the other switch. The logic of switching of the bulb resembles (A) AND gate (B) OR gate (C) XOR gate (D) NAND gate (GATE-2013) Answer : (C) Solution: Let the two bulbs be p1 and p2 P1 P2 OUTPUT OFF OFF OFF OFF ON ON ON OFF ON ON ON OFF 2 )In the sum of products function f(X,Y,Z)=∑(2,3,4,5),the prime implicants are A )X’Y,XY’ B) X’Y,XY’Z’,XY’Z C)X’YZ’,X’YZ,XY’ D)X’YZ’,X’YZ,X’YZ’,X’YZ, (GATE-2012) Answer: ( A ) Solution: 3) The two numbers represented in signed 2’s complement form are P=11101101 and Q=11100110.If Q is subtracted fromP,the value obtained in signed 2’s complement form is A )100000111 B)00000111 C)11111001 D)111111001 (GATE-2008) Answer: (B) Solution: P=11101101 Q=11100110 Subtract Q hence find out 2’s complement=00011010 P=11101101 Q=00011010 Discard the carry 00000111
20

Digital Circuits.pdf

Dec 11, 2015

Download

Documents

maheshbabu527
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Digital Circuits.pdf

1) A bulb in a stair case has two switches, one switch being at the ground floor and the

other one at the first floor. The bulb can be turned ON and also can be turned OFF by

any one of the switches irrespective of the state of the other switch. The logic of

switching of the bulb resembles

(A) AND gate (B) OR gate (C) XOR gate (D) NAND gate (GATE-2013)

Answer : (C)

Solution: Let the two bulbs be p1 and p2

P1 P2 OUTPUT

OFF OFF OFF

OFF ON ON

ON OFF ON

ON ON OFF

2 )In the sum of products function f(X,Y,Z)=∑(2,3,4,5),the prime implicants are

A )X’Y,XY’ B) X’Y,XY’Z’,XY’Z

C)X’YZ’,X’YZ,XY’ D)X’YZ’,X’YZ,X’YZ’,X’YZ,

(GATE-2012)

Answer: ( A )

Solution:

3) The two numbers represented in signed 2’s complement form are

P=11101101 and Q=11100110.If Q is subtracted fromP,the value obtained in

signed 2’s complement form is

A )100000111 B)00000111 C)11111001 D)111111001 (GATE-2008)

Answer: (B)

Solution: P=11101101 Q=11100110

Subtract Q hence find out 2’s complement=00011010

P=11101101 Q=00011010 Discard the carry 00000111

Page 2: Digital Circuits.pdf

4) Which of the Boolean expression correctly represents the relation between P,Q,R and M1?

(GATE 2008)

A) M1 = (P OR Q) XOR R

B) M1 = (P AND Q) XOR R

C) M1 = (P NOR Q) XOR R

D) M1 = (P XOR Q) XOR R

Answer : ( D )

Solution: M1=[(PQ)’(P+Q)] XOR R

=[(P’+Q’)(P+Q)] XOR R

=(PQ’+P’Q) XOR R

=P XOR Q XOR R.

5 ) For the circuit shown in the figure I0-I3 are inputs to the 4:1 multiplexer R(MSB0 and s

are control bits (GATE-2008)

The output Z can be represented by

A ) PQ+PQ’S+Q’R’S’

B )PQR’+P’Q’S’

C )PQ’R’+P’QR+PQRS+Q’R’S’

D )PQR’+PQRS’+PQ’R’S+Q’R’S’

Answer : ( A )

Page 3: Digital Circuits.pdf

6) The Boolean expression Y=A’B’C’D+A’BCD’+AB’C’D+ABC’D’ can be minimised to

A) A’B’C’D+A’BC’+AC’D (GATE-2007)

B) A’B’C’D+BCD’+AB’C’D

C) A’BCD’+B’C’D+AB’C’D

D) A’BCD’+B’C’D+ABC’D’

Answer : ( D )

7) In the following circuit, output at the second mux x is given by (GATE-2007)

A) X = AB’C’+A’BC’+A’B’C+ABC

B) X = A’BC+AB’C+ABC’+A’B’C’

C) X = AB+BC+AC

D) X = A’B’+B’C’+A’C’

Answer: ( A )

Solution : For MUX 1

A(S1) B(S1) Y1

0 0 0

0 1 1

1 0 1

1 1 0

Y1=A’B+AB’

For MUX 2

Y1(S1) C(S0) Y

0 0 0

0 1 1

1 0 1

1 1 0

Y=Y1’C+Y1C’

= (A’B+AB’)’C+(A’B+AB’)C’

Therefore Y = ABC+A’B’C+A’BC’+AB’C’

Page 4: Digital Circuits.pdf

8 ) For the circuit shown, the counter state (Q1,Q0) follows the sequence (GATE-2007)

(A) 00, 01, 10, 11, 00 ……….

(B) 00, 01, 10, 00, 01 ……….

(C) 00, 01, 11, 00, 01 ……….

(D) 00, 10, 11, 00, 10……

Answer: (B)

Solution: D0=(Q0+Q1)’=Q0’. Q1’ and D1=Q0’

Q1(t) Q0(t) Q1(t+1)=D1=Q0(t) Q1(t+1)=D0=(Q0+Q1)’

0 0 0 1

0 1 1 0

1 0 0 0

0 0 0 1

. . . .

. . . .

9 ) The number of product terms in the minimized sum-of-product expression obtained

through the following K-map is (‘d’ denotes don’t cares) (GATE-2006)

(A) 2 (B) 3 (C) 4 (D) 5

Answer : ( A )

10) For the circuit shown in figure below,two 4-bit parallel-in-serial-out shift registers are

loaded with the data shown are used to feed the data to full adder. Initially,all the flip=flops are

in clear state.After applying two clock pulses,the outputs of the full-adder should be

(GATE – 2006)

Page 5: Digital Circuits.pdf

(A) S = 0 C0 = 0

(B) S = 0 C0 = 1

(C) S = 1 C0 = 0

(D) S = 1 C0 = 1

Answer: (D)

11) Decimal 43 in Hexa-decimal and BCD number system is respectively

(A) B2,0100 0011 (GATE-2005)

(B) 2B, 0100 0011

(C) B2, 0011 0100

(D) B2, 0100 0100

Answer: ( B )

Solution: First, convert the given code to BCD code and then to binary code.

12) The Boolean function f implemented in the figure using two multiplexers using two input

multiplexers is (GATE-2005)

(A) AB’C+ABC’

(B) ABC+AB’C’

(C) A’BC+A’B’C’

(D) A’B’C+A’BC’

Page 6: Digital Circuits.pdf

Answer:(A)

Solution:Selection line B can be 0 or 1

When B=0 CB’A

When B=1 C’BA

Therefore f=AB’C+ABC

13) A master slave flip-flop has the characteristic that (GATE-2004)

(A) change in the input immediately reflected in the output

(B) change in the output occurs when the state of the master is affected

(C) change in the output occurs when the state of the slave is affected

(D) both the master and slave states are affected at the same time

Answer: (C)

14) The range of signed decimal numbers that can be represented by 6-byte 1’s complement

number is (GATE-2004)

A) -31 to +31

B) -63 to +64

C) -64 to +63

D) -32 to +31

Answer: (A)

Solution: Complement range of numbers is 2n-1 +1 to 2n-1 -1

When n=6 it ranges from -31 to +31

15) A digital system is required to amplify a binary-encoded audio signal. The user should be

able to control the gain of the amplifier from a minimum to a maximum of 100 increments.

The minimum number of bits required to encode,in straight binary ,is (GATE-2004)

(A) 8

(B) 5

(C) 6

(D) 7

Answer: (D)

Solution:2 to the power of 7 =128

Therefore for 100 increments 7 bits are required.

Page 7: Digital Circuits.pdf

16) Choose the correct one from among the alternatives A,B,C,D after matching an item from

Group-1 with the most appropriate item in Group-2 (GATE-2004)

Group-1 Group-2

P:Shift Register 1:Frequency Division Multiplexing

Q:Counter 2:Addressing in memory chips

R:Decoder 3:Serial to parallel data conversion

A) P-3,Q-2,R-1

B) P-3,Q-1,R-2

C) P-2,Q-1,R-3

D) P-1,Q-2,R-2

Answer : (B)

17) The figure shows the internal schematic of a TTL AND-OR-INVERT(AOI) gate.For the

inputs shown in figure, the output Y is

(A) 0 (B) 1 (C) AB (D) (AB)’ (GATE-2004)

Answer : (A)

Solution:In TTL AND-OR inverter gate,propagation delay of transistor depends on

RC elements,When inputs are floating output is zero.

18) The output Y in the circuit is always ‘1’ when

A) two or more of the inputs P,Q,R are ‘0’

B)two or more of the inputs P,Q,R are ‘1’

C) any odd number of the inputs P,Q,R is ‘0’

D) any odd number of the inputs P,Q,R is ‘1’ (GATE-2011)

Answer: (B)

Solution: The output expression Y in the circuit

Y=PQ+PR+RQ

So that two or more inputs are ‘1’,Y is always ‘1’.

Page 8: Digital Circuits.pdf

19) When the output Y in the circuit below is ‘1’it implies that data has

A) Changed from 0 to 1

B) Changed from 1 to 0

C) Changed in either direction

D) Not changed (GATE-2011)

Answer: (A)

Solution: When data is’0’ Q is ‘0’

And if q is ‘1’ first fliopflop data is changed to ‘1’

Qis ‘1’it results in first D

Q’ is connected to2nd flipflop so that Q2=1

So that inputs of AND gate is 1.Hence Y=1

20) The logic function implemented by the circuit below is

A)F=AND(P,Q) B)F=OR (P,Q) C)F=XNOR(P,Q) D)F=XOR(P,Q) (GATE-2011)

Answer: (D)

Solution:0 is connected to I0 and I3

1 is connected to I1 and I2

Therefore F=PQ’+P’Q=XOR(P,Q)

21) In an 8085 microprocessor, the instruction CMP B has been executed while the content of

the accumulator is less than that of register B. As a result

(A) Carry flag will be set but Zero flag will be reset (GATE 2003)

(B) Carry flag will be rest but Zero flag will be set

(C) Both Carry flag and Zero flag will be rest

(D) Both Carry flag and Zero flag will be set

ANS:A

SOL : CMP B ;Compare the accumulator content with context of Register B

If A<R ; CY is set and zero flag will be reset.

Hence (A) is correct answer.

Page 9: Digital Circuits.pdf

22) The 8255 Programmable Peripheral Interface is used as described below.

(i) An A/D converter is interface to a microprocessor through an 8255.The conversion

is initiated by a signal from the 8255 on Port C. A signal on Port C causes data to be

stobed into Port A. (GATE 2004)

(ii) Two computers exchange data using a pair of 8255s. Port A works as a bidirectional

data port supported by appropriate handshaking signals.

The appropriate modes of operation of the 8255 for (i) and (ii) would be

(A) Mode 0 for (i) and Mode 1 for (ii)

(B) Mode 1 for (i) and Mode 2 for (ii)

(C) Mode for (i) and Mode 0 for (ii)

(D) Mode 2 for (i) and Mode 1 for (ii)

Ans: D

SOL : For 8255, various modes are described as following.

Mode 1 : Input or output with hand shake

In this mode following actions are executed

1. Two port (A & B) function as 8 - bit input output ports.

2. Each port uses three lines from C as a hand shake signal

3. Input & output data are latched.

Form (ii) the mode is 1.

Mode 2 : Bi-directional data transfer

This mode is used to transfer data between two computer. In this mode port A

can be configured as bidirectional port. Port A uses five signal from port C as

handshake signal.

For (1), mode is 2

Hence (D) is correct answer.

(GATE 2004)

23) The number of memory cycles required to execute the following 8085 instructions

(i) LDA 3000 H

(ii) LXI D, FOF1H

would be

(A) 2 for (i) and 2 for (ii) (B) 4 for (i) and 3 for (ii)

(C) 3 for (i) and 3 for (ii) (D) 3 for (i) and 4 for (ii)

ANS: B

SOL : LDA 16 bit & Load accumulator directly this instruction copies data byte

from memory location (specified within the instruction) the accumulator.

It takes 4 memory cycle-as following.

1. in instruction fetch

Page 10: Digital Circuits.pdf

2. in reading 16 bit address

1. in copying data from memory to accumulator

LXI D, (F0F1)4 ; It copies 16 bit data into register pair D and E.

It takes 3 memory cycles.

Hence (B) is correct answer.

(GATE 2004)

24) Consider the sequence of 8085 instructions given below

LXI H, 9258

MOV A, M

CMA

MOV M, A

Which one of the following is performed by this sequence ?

(A) Contents of location 9258 are moved to the accumulator

(B) Contents of location 9258 are compared with the contents of the accumulator

(C) Contents of location 8529 are complemented and stored in location 8529

(D) Contents of location 5892 are complemented and stored in location 5892

ANS:A

SOL :

LXI H, 9258H ; 9258H → HL

MOV A, M ; (9258H) → A

CMa ; A/→A( WHERE ‘/’Stands for complement)

MOV M, A ; A→M

This program complement the data of memory location 9258H.

Hence (A) is correct answer.

(GATE 2004)

25) It is desired to multiply the numbers 0AH by 0BH and store the result in the

accumulator. The numbers are available in registers B and C respectively. A partof the

8085 program for this purpose is given below

MVI A, 00H

LOOP ------

------

Page 11: Digital Circuits.pdf

-----

HLT

END

The sequence of instructions to complete the program would be

(A) JNX LOOP, ADD B, DCR C

(B) ADD B, JNZ LOOP, DCR C

(C) DCR C, JNZ LOOP, ADD B

(D) ADD B, DCR C, JNZ LOOP

ANS:D

SOL :

MVI A, 00H ; Clear accumulator

LOOP ADD B ; Add the contents of B to A

DCR C ; Decrement C

JNZ LOOP ; If C is not zero jump to loop

HLT

END

This instruction set adds the contents of B to accumulator to contents of C times.

Hence (D) is correct answer.

(GATE2005)

26) Consider an 8085 microprocessor system.

The following program starts at location 0100H.

LXI SP, OOFF

LXI H, 0701

MVI A, 20H

SUB M

The content of accumulator when the program counter reaches 0109 H is

(A) 20 H (B) 02 H (C) 00 H (D) FF H

ANS:C

SOL : 0100H LXI SP, 00FF ; Load SP with 00FFG

0103H LXI H, 0701 ; Load HL with 0107H

0106H MVI A, 20H ; Move A with 20 H

0108 H SUB M ; Subtract the contents of memory

; location whose address is stored in HL

Page 12: Digital Circuits.pdf

; from the A and store in A

0109H ORI 40H ; 40H OR [A] and store in A

010BH ADD M ; Add the contents of memeory location

; whose address is stored in HL to A

; and store in A

HL contains 0107H and contents of 0107H is 20H

Thus after execution of SUB the data of A is 20H - 20H = 00

Hence (C) is correct answer.

(GATE2005)

27) If in addition following code exists from 019H onwards,

ORI 40 H

ADD M

What will be the result in the accumulator after the last instruction is executed ?

(A) 40 H (B) 20 H (C) 60 H (D) 42 H

ANS:C

SOL: Before ORI instruction the contents of A is 00H. On execution the ORI 40H

the contents of A will be 40H

00H = 00000000

40H = 01000000

ORI 01000000

After ADD instruction the contents of memory location whose address is stored

in HL will be added to and will be stored in A

40H + 20 H = 60 H

Hence (C) is correct answer.

(GATE2006)

28) An I/O peripheral device shown in Fig. (b) below is to be interfaced to an 8085

microprocessor. To select the I/O device in the I/O address range D4 H - D7 H, its chip-select

(CS) should be connected to the output of the decoder shown in as

below :

Page 13: Digital Circuits.pdf

(A) output 7 (B) output 5

(C) output 2 (D) output 0

ANS:B

SOL : The output is taken from the 5th line.

Hence (B) is correct answer.

(GATE2006

29) Following is the segment of a 8085 assembly language program

LXI SP, EFFF H

CALL 3000 H

:

:

:

3000 H LXI H, 3CF4

PUSH PSW

SPHL

POP PSW

RET

On completion of RET execution, the contents of SP is

(A) 3CF0 H (B) 3CF8 H (C) EFFD H (D) EFFF H

ANS:B

SOL : LXI, EFFF H ; Load SP with data EFFH

CALL 3000 H ; Jump to location 3000 H

:

:

:

3000H LXI H, 3CF4 ; Load HL with data 3CF4H

Page 14: Digital Circuits.pdf

PUSH PSW ; Store contnets of PSW to Stack

POP PSW ; Restore contents of PSW from stack

PRE ; stop

Before instruction SPHL the contents of SP is 3CF4H.

After execution of POP PSW, SP + 2 →SP

After execution of RET, SP + 2→SP

Thus the contents of SP will be 3CF4H + 4 = 3CF8H

Hence (B) is correct answer.

(GATE2007)

30) An 8085 assembly language program is given below.

Line 1: MVI A, B5H

2: MVI B, OEH

3: XRI 69H

4: ADD B

5: ANI 9BH

6: CPI 9FH

7: STA 3010H

8: HLT

The contents of the accumulator just execution of the ADD instruction in line 4 will be

(A) C3H (B) EAH (C) DCH (D) 69H

ANS: B

SOL : Line 1 : MVI A, B5H ; Move B5H to A

2 : MVI B, 0EH ; Move 0EH to B

3 : XRI 69H ; [A] XOR 69H and store in A

; Contents of A is CDH

4 : ADDB ; Add the contents of A to contents of B and

; store in A, contents of A is EAH

5 : ANI 9BH ; [a] AND 9BH, and store in A,

; Contents of A is 8 AH

6 : CPI 9FH ; Compare 9FH with the contents of A

; Since 8 AH < 9BH, CY = 1

7 : STA 3010 H ; Store the contents of A to location 3010 H

8 : HLT ; Stop

Thus the contents of accumulator after execution of ADD instruction is EAH.

Hence (B) is correct answer.

(GATE 2007)

31) After execution of line 7 of the above program, the status of the CY and Z flags will be

(A) CY=0, Z=0 (B) CY=0, Z=1 (C ) CY=1, Z=0 (D) CY=1, Z=1

ANS:C

SOL : The CY = 1 and Z = 0

Hence (C) is correct answer.

Page 15: Digital Circuits.pdf

32) An 8085 executes the following instructions (GATE 2008)

2710 LXI H, 30A0 H

2713 DAD H

2414 PCHL

All address and constants are in Hex. Let PC be the contents of the program counter and HL be

the contents of the HL register pair just after executing PCHL.

Which of the following statements is correct ?

(A)PC= 2715H

HL =30A0H

(B)PC=30A0H

HL= 2715H

(C)PC= 6140H

HL =6140H

(D)PC =6140H

HL= 2715H

ANS:C

SOL:

2710H LXI H, 30A0H ; Load 16 bit data 30A0 in HL pair

2713H DAD H ; 6140H " HL

2714H PCHL Copy the contents 6140H of HL in PC

Thus after execution above instruction contests of PC and HL are same and that is 6140H

Hence (C) is correct answer.

(GATE 2009)

33) In a microprocessor, the service routine for a certain interrupt starts from a fixed location

of memory which cannot be externally set, but the interrupt can be delayed or rejected Such an

interrupt is

(A) non-maskable and non-vectored

(B) maskable and non-vectored

(C) non-maskable and vectored

(D) maskable and vectored

ANS:D

SOL: Vectored interrupts : Vectored interrupts are those interrupts in which program

control transferr to a fixed memory location.

Maskable interrupts : Maskable interrupts are those interrupts which can be rejected or

delayed by microprocessor if it is performing some critical task.

Hence (D) is correct answer.

Page 16: Digital Circuits.pdf

34) For the 8085 assembly language program given below, the content of the accumulator

after the execution of the program is

Ans: C

SOL:

(GATE 2011)

35) An 8085 assembly language program is given below. Assume that the carry flag is Initially

unset. The content of the accumulator after the execution of the program is

Page 17: Digital Circuits.pdf

(A) 8 CH (B) 64 H (C) 23 H (D) 15 H

ANS: C

SOL :

(GATE 2013)

36) For 8085 microprocessor, the following program is executed

MVI A, 05H;

MVIB, 05H;

PTR: ADD B;

DCR B;

JNZ PTR;

ADI 03H;

HLT;

At the end of program, accumulator contains

(A) 17 H (B) 20 H (C) 23 H (D) 05 H

Answer: (A)

Sol: Accumulator changes as follows (05 + 05 + 04 +03 +02 +01)H

At the end of Loop accumulator contains = 14H

Page 18: Digital Circuits.pdf

ADI O3H ®A=(14+03)=17H

37) The number of hardware interrupts (which require an external signal to interrupt)

Present in an a 8085 microprocessor are (GATE2000)

a)1 b)4 c) 5 d)13

Ans: C

Sol: 1) Trap

2) RST 7.5

3) RST 6.5

4)RST 5.5

5)INTR

38) In a microprocessor, the address of the next instruction to be execute, is stored in

(GATE1993)

a) Stack pointer b) address latch c) program counter d) general purpose register.

Answer:C

SOL: Program counter is one which stores the address of next instruction to be executed.

39) The contents of Register B and accumulator A of 8085 microprocessor are 49H and 3AH

respectively. The contensts of A nad the status of carry flag(cy) and sign flag(S) after

execting SUB B instructions are

a) A=F1,CY=1,S=1 B) A=0F,CY=1,S=1 (GATE 1993)

C) A=F0,CY=-0,S=0 D) A=1F,CY=1,S=1

ANS:A

SOL:

A→3AH=00111010

B→49H=01001001

Page 19: Digital Circuits.pdf

SUB A→11110001

CY=1,S=1,A=F1.

40) An instruction used to set the carry fag in a computer can be classified as

a) data transfer instruction

b) arithimetic

c) logical (GATE2000)

d) program control

Ans:B

SOL: After performing an arithmetic operations the status of the flags is changed.

41) In a microprocessor, the address the next instruction to be execute, is stored in (Gate1993)

b) Stack pointer b) address latch c) program counter d) general purpose register.

Answer:C

SOL: Program counter is one which stores the address of next instruction to be executed.

42) when a cpu Is interrupted it

a) stops execution of instructions (GATE 1995)

b) acknowledges interrupt and branches to subroutine

c) acknowledges interrupt and continues

d) acknowledges interrupt and wiats for the next instruction from the interrupting device

Answer:B

SOL: when ever an interrupt is executed it stops executing the current instruction and transfer to

the subroutine and after completing the subroutine it returns back to the main program where it has

been interrupted.

Page 20: Digital Circuits.pdf

43) A DMA transfer implies (GATE 1995)

a) Direct transfer of data between memory and accumulator

b) direct transfer of data between memory and i/o devices without the use of micorpocesor

c) Transfer of datsa exclusively within microprocessor register

d) a fast transfer of data between microprocessor and I/O devices

Answer:B

Sol: Direct memory access is used to transfer the data directly between memory and I/O devices

with out use of microprocessors.