1
GATE AI 2025
MCQ (Single Correct Answer)
+2
-0

Consider a fact table in an OLAP application: Facts (D1, D2, val), where D1 and D2 are its dimension attributes and val is a dependent attribute. Suppose

attribute D1 takes 3 values and D2 takes 2 values, and all combinations of these values are present in the table Facts. How many tuples are there in the result of the following query?

SELECT D1, D2, sum(val)

FROM Facts

GROUP BY CUBE (D1, D2);

A
1
B
6
C
9
D
12
2
GATE AI 2025
MCQ (More than One Correct Answer)
+2
-0

Consider the following two relations, named Customer and Person, in a

database:

Person (

aadhaar CHAR(12) PRIMARY KEY, name VARCHAR(32));

Customer (

name VARCHAR(32), email VARCHAR(32) PRIMARY KEY, phone CHAR(10), aadhaar CHAR(12), FOREIGN KEY (aadhaar) REFERENCES Person(aadhaar)); Which of the following statements is/are correct?

A
aadhaar is a candidate key in the Customer relation
B
phone can be NULL in the Customer relation
C
aadhaar is a candidate key in the Person relation
D
aadhaar can be NULL in the Person relation
3
GATE AI 2025
MCQ (More than One Correct Answer)
+2
-0

Consider a database relation $R$ with attributes ABCDEFG , and having the following functional dependencies:

$$ \mathrm{A} \rightarrow \mathrm{BCEF} \quad \mathrm{E} \rightarrow \mathrm{DG} \quad \mathrm{BC} \rightarrow \mathrm{~A} $$

Which of the following statements is/are correct?

A
A is the only candidate key of R
B
A, BC are the candidate keys of R
C
A, BC, E are the candidate keys of R
D
Relation R is not in Boyce-Codd Normal Form (BCNF)
4
GATE AI 2025
Numerical
+2
-0

Consider the following tables, Loan and Borrower, of a bank.

Loan
loan_num branch_name amount
L11 Banjara Hills 90000
L14 Kondapur 50000
L15 SR Nagar 40000
L22 SR Nagar 25000
L23 Balanagar 80000
L25 Kondapur 70000
L19 SR Nagar 65000
Borrower
customer_name loan_num
Anand L11
Karteek L11
Karteek L14
Ankita L15
Gopal L19
Karteek L22
Karteek L23
Sunil L23
Sunil L25

Query: $\quad \pi_{\text {branch_name, customer_name }}$ (Loan $\triangleright \triangleleft$

Borrower) $\div \pi_{\text {branch_name }}$ (Loan)

where $\triangleright \triangleleft$ denotes natural join.

The number of tuples returned by the above relational algebra query is

__________

Your input ____

GATE Data Science and Artificial Intelligence Papers

All year-wise previous year question papers