GATE CS 2021 Set 1 | Question 33

Databases › File Organization & Indexing · NAT · 1 mark · Answer: 205 to 820

  1. Question 33Databasesnat1 mark
    A relation in a relational database has 1200 tuples. The attribute has integer values ranging from 6 to 20, and the attribute has integer values ranging from 1 to 20. Assume that the attributes and are independently distributed. The estimated number of tuples in the output of is ______.

    Answer: 205 to 820

    Solution

    With (15 values) and (20 values), and . Using inclusion–exclusion on the estimate gives about 819–820 tuples. (The official GATE key accepted either 819–820 or 205.)

More GATE PYQ on File Organization & Indexing

All GATE CS Databases PYQ →

Attempt GATE CS 2021 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →