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 51–55 of 64

Q52Trees2 marksMSQ
Let H,I,LH, I, L, and NN represent height, number of internal nodes, number of leaf nodes, and the total number of nodes respectively in a rooted binary tree.
Which of the following statements is/are always TRUE?

One or more options are correct.

Q53Classification2 marksMSQ
Consider the following figures representing datasets consisting of two-dimensional features with two classes denoted by circles and squares.

123321(i) 123321(ii) 123321(iii) 123321(iv)
Which of the following is/are TRUE?

One or more options are correct.

Q54Predicate Logic2 marksMSQ
Let game(ball, rugby) be true if the ball is used in rugby and false otherwise.
Let shape(ball, round) be true if the ball is round and false otherwise.

Consider the following logical sentences:
s1: ∀\forall ball ¬\neg game(ball, rugby) ⇒\Rightarrow shape(ball, round)
s2: ∀\forall ball ¬\neg shape(ball, round) ⇒\Rightarrow game(ball, rugby)
s3: ∀\forall ball game(ball, rugby) ⇒¬\Rightarrow \neg shape(ball, round)
s4: ∀\forall ball shape(ball, round) ⇒¬\Rightarrow \neg game(ball, rugby)

Which of the following choices is/are logical representations of the assertion, "All balls are round except balls used in rugby"?

One or more options are correct.

Q55File Organization and Indexing2 marksMSQ
An OTT company is maintaining a large disk-based relational database of differe nt movies with the following schema:

Movie(ID‾,CustomerRating)Movie(\underline{ID}, CustomerRating)
Genre(ID‾,Name)Genre (\underline{ID}, Name)
Movie_Genre(MovieID‾,GenreID‾)Movie\_Genre(\underline{MovieID}, \underline{GenreID})

Consider the following SQL query on the relation database above:

SELECT * 
FROM Movie, Genre, Movie_Genre 
WHERE  
 Movie.CustomerRating > 3.4 AND 
 Genre.Name = "Comedy" AND 
 Movie_Genre.MovieID = Movie.ID AND 
 Movie_Genre.GenreID = Genre.ID; 
This SQL query can be sped up using which of the following indexing options?

One or more options are correct.

Q56Random Variables and Distributions2 marksNAT
Let XX be a random variable uniformly distributed in the interval [1,3] and YY be a random variable uniformly distributed in the interval [2,4]. If XX and YY are independent of each other, the probability P(X≥Y)P(X \geq Y) is _________ (rounded off to three decimal places).