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

GATE 2023

65 questions

MCQ 34 · MSQ 15 · NAT 161-mark 30 · 2-mark 35

Questions 31–35 of 65

Q31Double and Triple Integrals1 markNAT
The value of the definite integral ∫−33∫−22∫−11(4x2y−z3)dzdydx\int_{-3}^{3} \int_{-2}^{2} \int_{-1}^{1} (4x^2y-z^3)dzdydx is _____. (Rounded off to the nearest integer)

Q32Number System1 markNAT
A particular number is written as 132 in radix-4 representation. The same number in radix-5 representation is _____.

Q33Pipeline Processor1 markNAT
Consider a 3-stage pipelined processor having a delay of 10 ns (nanoseconds), 20 ns, and 14 ns, for the first, second, and the third stages, respectively. Assume that there is no other delay and the processor does not suffer from any pipeline hazards. Also assume that one instruction is fetched every cycle.
The total execution time for executing 100 instructions on this processor is _______ ns

Q34Interrupt1 markNAT
A keyboard connected to a computer is used at a rate of 1 keystroke per second. The computer system polls the keyboard every 10 ms (milli seconds) to check for a keystroke and consumes 100 μs\mu s (micro seconds) for each poll. If it is determined after polling that a key has been pressed, the system consumes an additional 200 μs\mu s to process the keystroke. Let T1T_1 denote the fraction of a second spent in polling and processing a keystroke.
In an alternative implementation, the system uses interrupts instead of polling. An interrupt is raised for every keystroke. It takes a total of 1 ms for servicing an interrupt and processing a keystroke. Let T2T_2 denote the fraction of a second spent in servicing the interrupt and processing a keystroke. The ratio T1T2\frac{T_1}{T_2} is ______ . (Rounded off to one decimal place)

Q35Function1 markNAT
The integer value printed by the ANSI-C program given below is ______.
#include <stdio.h>
int funcp(){
   static int x = 1;
   x++;
   return x;
}
int main(){
   int x,y;
   x = funcp();
   y = funcp()+x;
   printf("%d\n", (x+y));
   return 0;
}