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

GATE 2022

65 questions

MCQ 32 · MSQ 15 · NAT 181-mark 30 · 2-mark 35

Questions 16–20 of 65

Q16Hashing1 markMCQ−0.33 if wrong
Suppose we are given nn keys, mm hash table slots, and two simple uniform hash functions h1h_1 and h2h_2. Further suppose our hashing scheme uses h1h_1 for the odd keys and h2h_2 for the even keys. What is the expected number of keys in a slot?

Q17IO Interface1 markMCQ−0.33 if wrong
Which one of the following facilitates transfer of bulk data from hard disk to main memory with the highest throughput?

Q18Number System1 markMCQ−0.33 if wrong
Let R1 and R2 be two 4-bit registers that store numbers in 2's complement form. For the operation R1+R2, which one of the following values of R1 and R2 gives an arithmetic overflow?

Q19Process Synchronization1 markMCQ−0.33 if wrong
Consider the following threads, T1,T2, and T3T_1, T_2, \text{ and }T_3 executing on a single processor, synchronized using three binary semaphore variables, S1,S2, and S3S_1, S_2, \text{ and }S_3, operated upon using standard wait()wait() and signal()signal(). The threads can be context switched in any order and at any time.
T1T2T3
while(true){
  wait(S3);
  print(“C”);
  signal(S2); }
while(true){
  wait(S1);
  print(“B”);
  signal(S3); }
while(true){
  wait(S2);
  print(“A”);
  signal(S1); }

Which initialization of the semaphores would print the sequence BCABCABCA ...?

Q20Matrix Algebra1 markMCQ−0.33 if wrong
Consider the following two statements with respect to the matrices Am×n,Bn×m,Cn×n and Dn×n,A_{m \times n},B_{n \times m},C_{n \times n} \text{ and }D_{n \times n},

Statement 1: tr(AB)=tr(BA)tr(AB) = tr(BA)
Statement 2: tr(CD)=tr(DC)tr(CD) = tr(DC)

wheretr()tr() represents the trace of a matrix. Which one of the following holds?