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

GATE 2026

65 questions

MCQ 33 · MSQ 14 · NAT 181-mark 30 · 2-mark 35

Questions 16–20 of 65

Q16Programming in Python1 markMCQ−0.33 if wrong
Consider the given Python program.
def append_to_lst(val, lst=[]):
       lst.append(val)
       return lst
print(append_to_lst(1))
print(append_to_lst(2))
print(append_to_lst(3, [])) 
Which of the following is the correct output of this program?

Q17Functional Dependencies and Normal Forms1 markMCQ−0.33 if wrong
Let R(A, B, C, D, E)\text{R(A, B, C, D, E)} be a relational schema with functional dependency set F={A→BC,CD→E,E→A}{F}=\{{A} \rightarrow {BC}, {CD} \rightarrow {E}, {E} \rightarrow {A}\}.

Which of the following statements is correct?

Q18Data Warehouse Modelling1 markMCQ−0.33 if wrong
Consider that the visualization of a 33-dimensional data cube is showing Sales Quantity for each combination of the attributes Product Type, Month and Country.

From this, if we want to further visualize the Sales Quantity for each combination of Product Type, Month and State, which of the following OLAP operations should be performed?

Q19Counting1 markMCQ−0.33 if wrong
Let MM be a randomly chosen non-empty subset of S={1,2,3,…,2026}S=\{1,2,3, \ldots, 2026\}.

Which of the following is the probability that the product of all the elements of MM is even?

Q20Counting1 markMCQ−0.33 if wrong
Suppose that a computer program provides a non-negative and integer-valued random solution to the equation n1+n2+n3+n4=20n_{1}+n_{2}+n_{3}+n_{4}=20.

Which of the following is the probability that all of n1,n2,n3,n4n_{1}, n_{2}, n_{3}, n_{4} in the provided solution are positive?