GATE 2024 (Session 1) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2024 (Session 1)

65 questions

MCQ 29 · MSQ 20 · NAT 161-mark 30 · 2-mark 35

Questions 41–45 of 65

Q41Heap Tree2 marksMCQ−0.67 if wrong
An array [82,101,90,11,111,75,33,131,44,93][82,101,90,11,111,75,33,131,44,93] is heapified. Which one of the following options represents the first three elements in the heapified array?

Q42Recurrence Relation2 marksMCQ−0.67 if wrong
Consider the following recurrence relation:
T(n)={nT(n)+n for n≥1,1 for n=1.T(n)=\left\{\begin{array}{c} \sqrt{n} T(\sqrt{n})+n \text { for } n \geq 1, \\ 1 \quad \text { for } n=1 . \end{array}\right.
Which one of the following options is CORRECT?

Q43Heap Tree2 marksMCQ−0.67 if wrong
Consider a binary min-heap containing 105 distinct elements. Let kk be the index (in the underlying array) of the maximum element stored in the heap. The number of possible values of kk is

Q44Relational Schema2 marksMSQ
The symbol →\rightarrow indicates functional dependency in the context of a relational database. Which of the following options is/are TRUE?

One or more options are correct.

Q45Graph Theory2 marksMSQ
Let GG be a directed graph and TT a depth first search (DFS) spanning tree in GG that is rooted at a vertex vv. Suppose TT is also a breadth first search (BFS) tree in GG, rooted at vv. Which of the following statements is/are TRUE for every such graph GG and tree TT ?

One or more options are correct.