Database Management and Warehousing questions — page 1 of 2

Q17

GATE DA 2026 DADatabase DesignMCQ1 mark−1/3 if wrong

Report a problem with Q17

What is wrong?
Let R(A,B,C,D,E)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?
Show answer without attempting

Loading the answer…

Q18

GATE DA 2026 DAData Warehouse ModellingMCQ1 mark−1/3 if wrong

Report a problem with Q18

What is wrong?
Consider that the visualization of a 3-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?
Show answer without attempting

Loading the answer…

Q26

GATE DA 2026 DADatabase DesignMSQ1 mark

Report a problem with Q26

What is wrong?
Consider two relations r and s defined on the relational schemas R(A,B) and S(E,C), respectively. A is the primary key of R and E is a foreign key of S referencing A in R.
Which of the following operations will NEVER violate the foreign key constraint?
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q32

GATE DA 2026 DAFile Organization and IndexingNAT1 mark

Report a problem with Q32

What is wrong?
In a relational database, a B+ Tree Index is to be constructed for a relation on a key field. In a B+ Tree, a Node Pointer points to a sub-tree and a Data Record Pointer points to a block of database records.
Let, Node size = 4096 bytes, Node Pointer size = 10 bytes, Search Key Field size = 11 bytes and Data Record Pointer size = 12 bytes.
The maximum number of Node Pointers that can be present in a non-leaf node of the B+ Tree is ________ . (Answer in integer)
Show answer without attempting

Loading the answer…

Q41

GATE DA 2026 DAFile Organization and IndexingMCQ2 marks−2/3 if wrong

Report a problem with Q41

What is wrong?
Consider a B+ Tree where the maximum number of key values in each leaf node is 2 and the maximum number of pointers in each non-leaf node is 3. Let the content of the B+ Tree be as shown in the figure.
Which of the following options denotes the key value(s) stored in the root node after inserting a key value 3 in the given B+ Tree?
Question figure
Show answer without attempting

Loading the answer…

Q42

GATE DA 2026 DARelational Query LanguagesMCQ2 marks−2/3 if wrong

Report a problem with Q42

What is wrong?
Consider the given relations XX, YY and ZZ. The relation XX has three columns PP, QQ and RR. The relation YY has three columns PP, QQ and SS. The relation ZZ has two columns PP and TT.

XX
PPQQRR
P1Q1R1
P2Q2R2
P3Q3R2
YY
PPQQSS
P1Q12
P1Q25
P2Q16
P3Q31
ZZ
PPTT
P1T1
P3T2
P4T3
P4NULL
Consider the relational algebra expression
ΠPRS[(σ(Q=Q3∨R=R2)[X⋈Y])⋈(σ(S>1)[Y⋈Z])]\Pi_{PRS}[(\sigma_{(Q = Q3 \lor R = R2)}[X \bowtie Y]) \bowtie (\sigma_{(S > 1)}[Y \bowtie Z])]
where ⋈\bowtie denotes natural join operation.
Which of the following options is the correct output for the given expression?
Show answer without attempting

Loading the answer…

Q43

GATE DA 2026 DAData Warehouse ModellingMCQ2 marks−2/3 if wrong

Report a problem with Q43

What is wrong?
Consider the concept hierarchies as shown in the figure.
Which of the following options denotes the total number of possible data cuboids from these concept hierarchies?
Question figure
Show answer without attempting

Loading the answer…

Q51

GATE DA 2026 DARelational Query LanguagesMSQ2 marks

Report a problem with Q51

What is wrong?
Consider a table Employee(EmpID, TeamID), where the column EmpID (ID of an employee) is the primary key. The column TeamID denotes the team ID of the team of which the employee is a member. TeamID is a NOT NULL column.
We want to display the size of the team (denoted as TeamSize) in which each employee is a member by using SQL. As an example, the desired output for the given Employee table is also shown in tabular form.
Which of the following is/are correct?

Employee
EmpIDTeamID
18
28
38
47
57
69
Output
EmpIDTeamSize
13
23
33
42
52
61
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q59

GATE DA 2026 DARelational Query LanguagesNAT2 marks

Report a problem with Q59

What is wrong?
Let there be two relations XX and YY as shown. XX has three columns PP, QQ and RR. YY has two columns PP and SS.

XX
PPQQRR
P1Q1R1
P2Q2R2
P3Q3R2
YY
PPSS
P110
P115
P220
P31
Consider that the following tuple relational calculus expression is evaluated.
{t∣t∈X⋀∃z∈X(t[P]=z[P])⋀∃m∈Y(m[P]=t[P]⋀m[S]>1)}\{t \mid t \in X \bigwedge \exists z \in X(t[P] = z[P]) \bigwedge \exists m \in Y (m[P] = t[P] \bigwedge m[S] > 1)\}
The number of tuples that will be returned is __________ . (Answer in integer)
Show answer without attempting

Loading the answer…

Q60

GATE DA 2026 DARelational Query LanguagesNAT2 marks

Report a problem with Q60

What is wrong?
Let Account be a relation as shown.

Account
AccNoBalance
A15000
A25000
A310000
A415000
A518000
Consider the given SQL query.
SELECT AccNo FROM Account AS A
WHERE (SELECT COUNT(*) FROM Account AS B
WHERE A.Balance < B.Balance) >= (SELECT COUNT(*)
FROM Account AS C WHERE A.Balance > C.Balance)
The number of rows returned by the SQL query is __________ . (Answer in integer)
Show answer without attempting

Loading the answer…

Q61

GATE DA 2026 DAData ModelsNAT2 marks

Report a problem with Q61

What is wrong?
Consider an ER model with the entities E1(A11,A12,A13A_{11}, A_{12}, A_{13}) and E2(A21,A22,A23A_{21}, A_{22}, A_{23}), where, A11,A12,A13A_{11}, A_{12}, A_{13} are the attributes of E1, and A21,A22,A23A_{21}, A_{22}, A_{23} are the attributes of E2. Let A22A_{22} be a multi-valued attribute. A11A_{11} and A21A_{21} are the primary keys of E1 and E2, respectively.
Let R12 be a many-to-many relationship between E1 and E2. Participation of both E1 and E2 in R12 is total.
The minimum number of relations required to convert the ER model into relational model (assuming there is no other functional dependency) where each relation is in third normal form (3NF) is __________ . (Answer in integer)
Show answer without attempting

Loading the answer…

Q16

GATE DA 2025 DADatabase DesignMCQ1 mark−1/3 if wrong

Report a problem with Q16

What is wrong?
If a relational decomposition is not dependency-preserving, which one of the following relational operators will be executed more frequently in order to maintain the dependencies?
Show answer without attempting

Loading the answer…

Q17

GATE DA 2025 DARelational Query LanguagesMCQ1 mark−1/3 if wrong

Report a problem with Q17

What is wrong?
Consider the following three relations:

Car(model,year,serial‾,color)\texttt{Car}(\texttt{model}, \texttt{year}, \underline{\texttt{serial}}, \texttt{color})
Make(maker,model‾)\texttt{Make}(\texttt{maker}, \underline{\texttt{model}})
Own(owner‾,serial‾)\texttt{Own}(\underline{\texttt{owner}}, \underline{\texttt{serial}})

A tuple in Car represents a specific car of a given model, made in a given year, with a serial number and a color. A tuple in Make specifies that a maker company makes cars of a certain model. A tuple in Own specifies that an owner owns the car with a given serial number. Keys are underlined; (owner‾,serial‾)(\underline{\texttt{owner}}, \underline{\texttt{serial}}) together form key for Own. (⋈\bowtie denotes natural join)

πowner(Own⋈(σcolor=“red”(Car⋈(σmaker=“ABC”Make))))\pi_{\text{owner}}(\text{Own} \bowtie (\sigma_{\text{color}=\text{“red”}}(\text{Car} \bowtie (\sigma_{\text{maker}=\text{“ABC”}}\text{Make}))))

Which one of the following options describes what the above expression computes?
Show answer without attempting

Loading the answer…

Q33

GATE DA 2025 DARelational Query LanguagesNAT1 mark

Report a problem with Q33

What is wrong?
On a relation named Loan of a bank:
loan_numberbranch_nameamount
L11Banjara Hills90000
L14Kondapur50000
L15SR Nagar40000
L22SR Nagar25000
L23Balanagar80000
L25Kondapur70000
L19SR Nagar65000
the following SQL query is executed:
SELECT L1.loan_number
FROM Loan L1
WHERE L1.amount > (SELECT MAX (L2.amount)
                   FROM Loan L2
                   WHERE L2.branch_name = 'SR Nagar');
The number of rows returned by the query is __________ (Answer in integer)
Show answer without attempting

Loading the answer…

Q46

GATE DA 2025 DAData Warehouse ModellingMCQ2 marks−2/3 if wrong

Report a problem with Q46

What is wrong?
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);
Show answer without attempting

Loading the answer…

Q56

GATE DA 2025 DADatabase DesignMSQ2 marks

Report a problem with Q56

What is wrong?
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?
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q57

GATE DA 2025 DADatabase DesignMSQ2 marks

Report a problem with Q57

What is wrong?
Consider a database relation R with attributes ABCDEFG, and having the following functional dependencies:
A→BCEF,E→DG,BC→AA \to BCEF, \quad E \to DG, \quad BC \to A
Which of the following statements is/are correct?
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q62

GATE DA 2025 DARelational Query LanguagesNAT2 marks

Report a problem with Q62

What is wrong?
Consider the following tables, Loan and Borrower, of a bank.

Loan
loan_numbranch_nameamount
L11Banjara Hills90000
L14Kondapur50000
L15SR Nagar40000
L22SR Nagar25000
L23Balanagar80000
L25Kondapur70000
L19SR Nagar65000
Borrower
customer_nameloan_num
AnandL11
KarteekL11
KarteekL14
AnkitaL15
GopalL19
KarteekL22
KarteekL23
SunilL23
SunilL25
Query: πbranch_name,customer_name(Loan⋈Borrower)÷πbranch_name(Loan)\pi_{\text{branch\_name}, \text{customer\_name}}(\text{Loan} \bowtie \text{Borrower}) \div \pi_{\text{branch\_name}}(\text{Loan})
where ⋈\bowtie denotes natural join. The number of tuples returned by the above relational algebra query is __________ (Answer in integer)
Show answer without attempting

Loading the answer…

Q26

GATE DA 2024 DARelational Query LanguagesMCQ1 mark−1/3 if wrong

Report a problem with Q26

What is wrong?
Consider a database that includes the following relations:

Defender(name, rating, side, goals)
Forward(name, rating, assists, goals)
Team(name, club, price)

Which ONE of the following relational algebra expressions checks that every name occurring in Team appears in either Defender or Forward, where ϕ\phi denotes the empty set?
Show answer without attempting

Loading the answer…

Q27

GATE DA 2024 DAData PreprocessingMCQ1 mark−1/3 if wrong

Report a problem with Q27

What is wrong?
Let the minimum, maximum, mean and standard deviation values for the attribute income of data scientists be ₹46000, ₹170000, ₹96000, and ₹21000, respectively.
The z-score normalized income value of ₹106000 is closest to which ONE of the following options?
Show answer without attempting

Loading the answer…

0/200 correct0 marks

Related topics in GATE DA