GATE 2022 Toppers Quiz 8
Attempt now to get your rank among 107 students!
Question 1Multiple Correct Options
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
Question 3
Question 4
The number of clock cycles required to reach at 110 if initial stage is 110 ________.
Question 5Multiple Correct Options
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
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
Question 8
- 107 attempts
- 0 upvotes
- 0 comments
Tags :
GATE & PSU CSGeneral