GATE 2001 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2001

60 questions

MCQ 601-mark 60

Questions 21–25 of 60

Q21Sequential Circuit1 markMCQ−0.33 if wrong
Consider the following circuit with initial state Q0 = Q1 = 0. The D flip-flops are positive edged triggered and have set up times 20 nanosecond and hold times 0.
X Y D0 D1 Q1 Clock Clock Q0 C Consider the following timing diagrams of X and C; the clock period of C≥40 nanosecond. Which one is the correct plot of Y? C X
(a) (b) (c) (d)

Q22Number System1 markMCQ−0.33 if wrong
The 2's complement representation of (−539)10(-539)_{10} is hexadecimal is

Q23Machine Instruction1 markMCQ−0.33 if wrong
Suppose a processor does not have any stack pointer register. Which of the following statements is true ?

Q24Addressing Modes1 markMCQ−0.33 if wrong
Which is the most appropriate match for the items in the first column with the items in the second column
X. Indirect AddressingI. Array implementation Y. Indexed AddressingII. Writing re-locatable code Z. Base Register AddressingIII. Passing array as parameter

Q25ALU Data Path and Control Unit1 markMCQ−0.33 if wrong
Consider the following data path of a simple non-pipelined CPU. The registers A, B, A1, A2, MDR, the bus and the ALU are 8-bit wide. SP and MAR are 16- bit registers. The MUX is of size 8x(2:1) and the DEMUX is of size 8x(1:2). Each memory operation takes 2 CPU clock cycles and uses MAR (Memory Address Register) and MDR (Memory Data Register). SP can be decremented locally.
A2 A1 B A MUX 1:2 DEMUX 1:2 SP MAR MDR dcr
The CPU instruction "push r", where r = A or B, has the specification

M[SP] ←\leftarrow r
SP ←\leftarrow SP - 1

How many CPU clock cycles are needed to execute the "push r" instruction ?