Quiz Space

Database Management Systems Quiz 1: 7 July 2024 (May 2024 term)

Question 1

+3 marksOne correct option

Consider the table Champions_League for given subquestions

NameAgeTeamCountryGoals
De jong26BarcelonaNetherlands20
Bellingham20Real MadridEngland18
Haaland23Manchester CityNorway18
Araujo25BarcelonaUruguay20
Martinelli22ArsenalBrazil16
Mbappe25PSGFrance16
Kroos34Real MadridGermany18
Dembele26PSGFrance14
Saka22ArsenalEngland16
Cubarsi17BarcelonaSpain12

Table 1: Figure 1: Champions_League

Choose the correct SQL statement that will return the resultant table given in Figure 2.

GoalsTeamCount
20Barcelona2
18Real Madrid2
18Manchester City1
16Arsenal2
16PSG1
14PSG1
12Barcelona1

Table 2: Figure 2: Result

  1. A
  2. B
  3. C
  4. D

Question 2

+4 marksNumerical answer

Consider the table Champions_League for given subquestions

NameAgeTeamCountryGoals
De jong26BarcelonaNetherlands20
Bellingham20Real MadridEngland18
Haaland23Manchester CityNorway18
Araujo25BarcelonaUruguay20
Martinelli22ArsenalBrazil16
Mbappe25PSGFrance16
Kroos34Real MadridGermany18
Dembele26PSGFrance14
Saka22ArsenalEngland16
Cubarsi17BarcelonaSpain12

Table 1: Figure 1: Champions_League

Question 3

+3 marksOne correct option

Consider the following SQL statement:

sql
Create table Cars(
CarID varchar(8),
CarName varchar(20),
CarColour varchar(8),
YearOfPurchase integer,
Weight integer,
primary key (CarID),
check(YearOfPurchase in (1990, 2000, 2005, 2010)));

Which among the following will cause an integrity constraint violation in the Cars table?

Note: Insertions are done in the order of the options given.

  1. A
  2. B
  3. C
  4. D

12 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the DBMS Quiz 1 7 Jul 2024 paper

The IIT Madras BS Database Management Systems (DBMS) Quiz 1 paper sat on 7 Jul 2024, in the May 2024 term: 15 questions for 50 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureDBMS Quiz 1 7 Jul 2024 at a glance
TermMay 2024 term
SubjectDatabase Management Systems
Course codeBSCS2001
Questions15
Marks50
Duration120 min
MCQ7
Numerical2
MSQ6
Official paperIIT M DIPLOMA AN EXAM QDD2 7 July 2024
Negative markingNo negative marking.
Updated

Same Quiz 1, other subjects

More DBMS