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

GATE 2004

199 questions

MCQ 1991-mark 199

Questions 81–85 of 199

Q81Pipeline Processor1 markMCQ−0.33 if wrong
In an enhancement of a design of a CPU, the speed of a floating point unit has been increased by 20% and the speed of a fixed point unit has been increased by 10%. What is the overall speedup achieved if the ratio of the number of floating point operations to the number of fixed point operations is 2:3 and the floating point operation used to take twice the time taken by the fixed point operation in the original design?

Q82Pipeline Processor1 markMCQ−0.33 if wrong
Consider a pipeline processor with 4 stages S1 to S4. We want to execute the following loop:
 for (i = 1; i < = 1000; i++) 
    {I1, I2, I3, I4} 
where the time taken (in ns) by instructions I1 to I4 for stages S1 to S4 are given below:
S1S2S3S4 I11212I22121I31121I42121\begin{array}{|c|c|c|c|c|} \hline & \textbf {$S _1$} &\textbf {$S _2$} & \textbf {$S _3$} & \textbf{$S _4$ } \\\hline \textbf{I1}& \text{$1$} & \text{$2$} & \text{$1$} & \text{$2$} \\\hline \textbf{I2} & \text{$2$} & \text{$1$} & \text{$2$} & \text{$1$}\\\hline \textbf{I3}& \text{$1$} & \text{$1$} & \text{$2$} & \text{$1$} \\\hline \textbf{I4} & \text{$2$} & \text{$1$} & \text{$2$} & \text{$1$} \\\hline \end{array}
The output of I1 for i = 2 will be available after

Q83Pipeline Processor1 markMCQ−0.33 if wrong
A 4-stage pipeline has the stage delays as 150, 120, 160 and 140 nanoseconds respectively. Registers that are used between the stages have a delay of 5 nanoseconds each. Assuming constant clocking rate, the total time taken to process 1000 data items on this pipeline will be

Q84Pipeline Processor1 markMCQ−0.33 if wrong
Consider the following program segment for a hypothetical CPU having three user registers R1, R2 and R3.
Instruction Operation Instruction Size (in words) MOV R1,5000 ;R1 ← Memory[5000] 2 MOV R2(R1) ;R2 ← Memory[(R1)] 1 ADD R2, R3 ;R2 ← R2 + R3 1 MOV 6000, R2 ; Memory[6000] ← R2 2 HALT ;Machine halts 1
Let the clock cycles required for various operations be as follows:

Register to/from memory transfer : 3 clock cycles
ADD with both operands in register : 1 clock cycle
Instruction fetch and decode : 2 clock cycles per word

The total number of clock cycles required to execute the program is

Q85Conditional Statement1 markMCQ−0.33 if wrong
Let x be an integer which can take a value of 0 or 1. The statement
if (x == 0) x = 1; else x = 0; 
is equivalent to which one of the following ?