Time Left - 12:00 mins

GATE 2022 Toppers Quiz 8

Attempt now to get your rank among 107 students!

Question 1Multiple Correct Options

Consider the following C function which adds a given node pointed by q at the tail of the linked list. (Note that the next pointer of the new node to be inserted is already initialized as NULL).
Struct node * add (struct node * head, struct node * q)

{

if (! head) return q;

struct node * p = head;

while (p   next! = NULL)

{

}

return head;

}

A person new to programming attempts to fill these boxes B1, B2, B3 in ways as given in options. Which of following is/are correct ways of filling the boxes so that the implementation works correctly?

Question 2

Which of the following is correct about self-relocating program?

Question 3

In a computer, the stack memory addressing uses?

Question 4

Consider the following digital circuit:

The number of clock cycles required to reach at 110 if initial stage is 110 ________.

Question 5Multiple Correct Options

REFERENCE DATABASE :

EMP( EID, EName, Salary, Start_Date, End_Date)

IN_DEPT (EID, DID, Percent_Time )

BUILDING (BID, BName, Address )

IN_BUILDING( EID ,BID )

DEPT(DID, DName, Annual_Budget )

MANAGES_DEPT(EID, DID )

This is the Reference Database referred to in the following question. There are six tables describing a company, describing employees, departments, buildings, which department(s) an employee works in (and a percentage of the time for each), department managers (possibly more than one per department), and in which building an employee works (an employee may have more than one office). The primary key of each table is the attribute(s) in capitals. Other attributes are not necessarily unique.

Assume that the tables have many rows.

Which of the following queries finds the name of the Department(s) where the highest paid employee works?

Question 6

Consider the description to solve for any problem ‘S’ using recursive tree method S1 below:

S1 : Recursion depth of tree is atmost log2 n.
S2 : Total number of nodes at level i is atmost 5i.
S3 : The maximum number of leaves is atmost 5log n.
S4 : The recurrence is bounded by summation.
Using all four statement if T(n) represents the time complexity to solve problem ‘S’ and gives T(n) = O(np).
Then the value of p is __________.

Question 7

Consider a new version of TCP header called TCP++. The header of TCP++ accommodates a round trip time of 200 ms, with bandwidth of 10 Mbps. The number of bits required for the advertised window (in bits) are ________.

Question 8

How many comparisons are needed to sort ' 5 ' elements by using any comparison-based sorting algorithm in worst case?
  • 107 attempts
  • 0 upvotes
  • 0 comments
Sep 27GATE & PSU CS