Time Left - 12:00 mins

GATE 2022 Toppers Quiz 30

Attempt now to get your rank among 116 students!

Question 1

Consider the following SDT (Syntax Directed Translation)
AA# B {. Val= 1. val2.val}
AB { A. val= B. val}
BB & C { B. val = B. val –C.val}
BC {B. val = C. val}
Cnum {C.val = num}
What will be the output of the following expression.
14 # 13 & 12 & 1 # 10 & 9 # 8 & 2 & 1 # 5.

Question 2

What is the output of the following C code? Assume integer requires 4 bytes of memory and address of A is 2000 (in decimal).

int main( )

{

int A[4] [4] = {{1,2, 3, 4}, {5, 6, 7, 8}, {9,10,11,12},{13,14,15, 16}};

int *p = A;

p++;

*p++;

++*p;

printf(“%d”, *p);

}

Question 3

Consider the following Boolean function

f(A, B, C, D) =

The simplified POS from the above function is

Question 4

If A = 2*2 matrix and A2 = 8A + KI2, then K is equal to ________.

Question 5

Consider the following statements:
S1 : Linear probing suffers from both primary clustering and secondary clustering.
S2 : Quadratic probing suffers from both primary clustering and secondary clustering.
S3 : Double hashing do not suffers from primary clustering but suffers from secondary clustering only to a small extent.
Which of the following is true?

Question 6

Consider the following floating point format:

The single precision normalized value BEC00000, has equivalent decimal number representation is ________. (Upto 3 decimal places).

Question 7

Consider GBN protocol in which sender window size (SWS) is 5 and receiver window size (RWS) is 5 . Suppose client sends data 0, 1, 2, 3, 4 and only data packet 2 is lost and all ACKs are lost.

What will be the contents in the receiver window and sender window before sender’s timeout value expires?

Question 8

Consider the tables below

Employee

City

Number of elements in the output of the following query?

A name,Age(R Place=’Mumbai’(Employee (Natural Join) City))

  • 116 attempts
  • 0 upvotes
  • 0 comments
Jun 16GATE & PSU CS