1
GATE CSE 2001
MCQ (Single Correct Answer)
+2
-0.6
Consider the following datapath of a simple non-pipelined $$CPU.$$ The registers $$A,B,$$ $${A_1},{A_2},$$ $$MDR,$$ the bus and the $$ALU$$ are $$8$$-bit wide. $$SP$$ and $$MAR$$ are $$16$$-bit registers. The $$MUX$$ is of size $$8 \times \left( {2:1} \right)$$ and the $$DEMUX$$ is of size $$8 \times \left( {1:2} \right)$$. Each memory operation takes $$2$$ $$CPU$$ clock cycles and uses $$MAR$$ (Memory Address Register) and $$MDR$$ (Memory Data register). $$SP$$ can be decremented locally. GATE CSE 2001 Computer Organization - Alu Data Path and Control Unit Question 9 English

The $$CPU$$ instruction $$''push$$ $$r'',$$ where $$r=A$$ or $$B,$$ has the specification
$$\eqalign{ & \,\,\,\,\,\,\,\,\,\,\,\,\,M\left[ {SP} \right] \leftarrow r \cr & \,\,\,\,\,\,\,\,\,\,\,\,\,SP \leftarrow SP - 1 \cr} $$
How many $$CPU$$ clock cycles are needed to execute the $$''push$$ $$r''$$ instruction?

A
$$2$$
B
$$3$$
C
$$4$$
D
$$5$$
2
GATE CSE 2001
MCQ (Single Correct Answer)
+1
-0.3
A processor needs software interrupt to
A
Test the interrupt system of the processor
B
Implement co-routines
C
Obtain system services which need execution of privileged instructions
D
Return from subroutine
3
GATE CSE 2001
MCQ (Single Correct Answer)
+2
-0.6
Consider an undirected unweighted graph G. Let a breadth-first traversal of G be done starting from a node r. Let d(r, u) and d(r, v) be the lengths of the shortest paths from r to u and v respectively in G. If u is visited before v during the breadth-first traversal, which of the following statements is correct?
A
d(r, u) < d(r, v)
B
d(r, u) > d(r, v)
C
d(r, u)$$ \le $$d(r, v)
D
None of the above
4
GATE CSE 2001
MCQ (Single Correct Answer)
+2
-0.6
How many undirected graphs (not necessarily connected) can be constructed out of a given set V = { v1,v2,........,vn } of n vertices?
A
$$\frac{n(n-1)} {2}$$
B
2n
C
n!
D
$$2^\frac{n(n-1)} {2}$$
EXAM MAP
Medical
NEETAIIMS
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
Civil Services
UPSC Civil Service
Defence
NDA
Staff Selection Commission
SSC CGL Tier I
CBSE
Class 12