GATE 2017 (Session 2) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2017 (Session 2)

65 questions

MCQ 45 · NAT 201-mark 30 · 2-mark 35

Questions 61–65 of 65

Q61CPU Scheduling2 marksNAT
Consider the set of processes with arrival time (in milliseconds). CPU burst time (in milliseconds), and priority (0 is the highest priority) shown below. None of the processes have I/O burst time.
Process Arrival Time Burst Time Priority P1 0 11 2 P2 5 28 0 P3 12 2 3 P4 2 10 1 P5 9 16 4
The average waiting time (in milliseconds) of all the processes using preemptive priority scheduling algorithm is __________

Q62Eigenvalues and Eigenvectors2 marksNAT
If the characteristics polynomial of 3x3 matrix M over R ( the set of real numbers) is λ3−4λ2+aλ+30,a∈R\lambda ^{3}-4\lambda ^{2}+a\lambda +30,a\in R, and one eigenvalue of M is 2, then the largest among the absolute values of the eigenvalues of M is ________.

Q63Cache Memory2 marksNAT
Consider a machine with a byte addressable main memory of 2322^{32} bytes divided into blocks of size 32 bytes. Assume that a direct mapped cache having 512 cache lines is used with this machine. The size of the tag field in bits is ______.

Q64Arithmetic Operation2 marksNAT
Consider the following C program.
 #include <stdio.h>
int main ( ) {
    int m = 10;
    int n, n1;
    n = ++m;
    n1 = m++;
    n--;
    --n1;
    n-=n1;
printf ("%d", n) ;
return 0;
}
The output of the program is ______________.

Q65Array and Pointer2 marksNAT
Consider the following C Program.
 #include <stdio.h>
#include <string.h>
int main ( ) {
char* c = "GATECSIT2017";
char* p = c;
printf("%d", (int) strlen (c+2[p]-6[p]-1));
return 0;
}
The output of the program is _______________.