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 31–35 of 64

Q32Stacks, Queues and Linked Lists1 markNAT
The fundamental operations in a double-ended queue D are:

insertFirst(e) - Insert a new element ee at the beginning of DD.
insertLast(e) - Insert a new element ee at the end of D .
removeFirst()-Remove and return the first element of D.
removeLast () - Remove and return the last element of D.

In an empty double-ended queue, the following operations are performed:

insertFirst (10)
insertLast (32)
a←a \leftarrow removeFirst ()
insertLast (28)
insertLast(17)
a←a \leftarrow removeFirst ()
a←{a} \leftarrow removeLast ()

The value of a{a} is _________ .

Q33Limits, Continuity and Differentiability1 markNAT
Let f:R→Rf: \mathbb{R} \rightarrow \mathbb{R} be the function f(x)=11+e−xf(x)=\frac{1}{1+e^{-x}}.
The value of the derivative of ff at xx where f(x)=0.4f(x)=0.4 is _________ (rounded off to two decimal places).
Note: R\mathbb{R} denotes the set of real numbers.

Q34Descriptive Statistics1 markNAT
The sample average of 50 data points is 40. The updated sample average after including a new data point taking the value of 142 is

Q35Matrices and Determinants1 markNAT
Consider the 3×33 \times 3 matrix M=[123313436]\boldsymbol{M}=\left[\begin{array}{lll}1 & 2 & 3 \\ 3 & 1 & 3 \\ 4 & 3 & 6\end{array}\right].

The determinant of ( M2+12M\boldsymbol{M}^{\mathbf{2}}+\mathbf{1 2 M} ) is _________ .

Q36Expectation, Variance and Covariance2 marksMCQ−0.67 if wrong
A fair six-sided die (with faces numbered 1,2,3,4,5,61,2,3,4,5,6 ) is repeatedly thrown independently.
What is the expected number of times the die is thrown until two consecutive throws of even numbers are seen?