1
GATE CSE 2000
MCQ (Single Correct Answer)
+1
-0.3
The number of tokens in the following C statement is:
printf("i = %d, &i = %x",i, &i);
A
3
B
26
C
10
D
21
2
GATE CSE 2000
MCQ (Single Correct Answer)
+1
-0.3
Comparing the time $$T1$$ taken for a single instruction on a pipelined $$CPU$$ with time $$T2$$ taken on a non-pipelined but identical $$CPU,$$ we can say that
A
$$T1 \le T2$$
B
$$T1 \ge T2$$
C
$$T1 < T2$$
D
$$T1$$ is $$T2$$ plus the time taken for one instruction fetch cycle
3
GATE CSE 2000
Subjective
+5
-0
An instruction pipeline has five stages where each stage takes $$2$$ nanoseconds and all instructions use all five stages. Branch instructions are not overlapped, i.e., the instruction after the branch is not fetched till the branch instruction is completed. Under ideal conditions.

(a) Calculate the average instruction execution time assuming that $$20$$% of all instruction executed are branch instructions. Ignore the fact that some branch instructions may be conditional.

(b) If a branch instruction is a conditional branch instruction, the branch need not be taken. If the branch is not taken, the following instructions can be overlapped. When $$80$$% of all branch instructions are conditional branch instructions, and $$50$$% of the conditional branch instructions are such that the branch is taken, calculate the average instruction execution time.

4
GATE CSE 2000
MCQ (Single Correct Answer)
+1
-0.3
The most appropriate matching for the following pairs
$$X:$$ Indirect addressing
$$Y:$$ Immediate addressing
$$Z:$$ Auto decrement addressing is

$$1:$$ Loops
$$2:$$ Pointers
$$3.$$ Constants

A
$$X - 3,\,Y - 2,\,Z - 1$$
B
$$X - 1,\,Y - 3,\,Z - 2$$
C
$$X - 2,\,Y - 3,\,Z - 1$$
D
$$X - 3,\,Y - 1,\,Z - 2$$
EXAM MAP
Medical
NEET
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
CBSE
Class 12