GATE 2024 Data Science and Artificial Intelligence (DA) Questions with Solutions

GATE 2024

64 questions

MCQ 36 · MSQ 12 · NAT 161-mark 29 · 2-mark 35

Questions 26–30 of 64

Q27Data Types and Data Transformation1 markMCQ−0.33 if wrong
Let the minimum, maximum, mean and standard deviation values for the attribute income of data scientists be Rs. 46000, Rs. 170000, Rs. 96000, and Rs. 21000, respectively. The zz-score normalized income value of Rs. 106000 is closest to which ONE of the following options?

Q28Trees1 markMSQ
Consider the following tree traversals on a full binary tree:

(i) Preorder
(ii) Inorder
(iii) Postorder

Which of the following traversal options is/are sufficient to uniquely reconstruct the full binary tree?

One or more options are correct.

Q29Propositional Logic1 markMSQ
Let xx and yy be two propositions. Which of the following statements is a tautology /are tautologies?

One or more options are correct.

Q30Sorting and Divide and Conquer1 markNAT
Consider sorting the following array of integers in ascending order using an in-place Quicksort algorithm that uses the last element as the pivot.

60708090100\begin{array}{|c|c|c|c|c|} \hline 60&70&80&90&100 \\ \hline \end{array}

The minimum number of swaps performed during this Quicksort is ____

Q31SQL1 markNAT
Consider the following two tables named Raider and Team in a relational database maintained by a Kabaddi league. The attribute ID in table Team references the primary key of the Raider table, ID.

RaiderIDNameRaidsRaidPoints1Arjun2002502Ankush1902193Sunil1502004Reza1501905Pratham1752206Gopal193215\begin{array}{c} \textbf{Raider} \\ \begin{array}{|l|l|l|l|} \hline ID & Name & Raids & RaidPoints \\ \hline 1 & Arjun & 200 & 250 \\ \hline 2 & Ankush & 190 & 219 \\ \hline 3 & Sunil & 150 & 200 \\ \hline 4 & Reza & 150 & 190 \\ \hline 5 & Pratham & 175 & 220\\ \hline 6 & Gopal & 193 & 215 \\ \hline\end{array} \end{array}

TeamCityIDBidPointsJaipur2200Patna3195Hyderabad5175Jaipur1250Patna4200Jaipur6200\begin{array}{c} \textbf{Team} \\ \begin{array}{|l|l|l|} \hline City & ID & BidPoints\\ \hline Jaipur & 2 & 200 \\ \hline Patna & 3 & 195 \\ \hline Hyderabad & 5 & 175 \\ \hline Jaipur & 1 & 250 \\ \hline Patna & 4 & 200 \\ \hline Jaipur & 6 & 200 \\ \hline \end{array}\end{array}

The SQL query described below is executed on this database:
SELECT * 
FROM Raider, Team 
WHERE Raider.ID=Team.ID AND City=“Jaipur” AND 
RaidPoints > 200; 
The number of rows returned by this query is _________ .