DataBase Management System Nptel Assignment 1 Answers

Are you looking for Data Base Management System Nptel Assignment 1 Answers ? You are here at right place for Week 1 assignment answers


Data Base Management System Nptel Assignment 1 Answers
Data Base Management System Nptel Assignment 1 Answers

Data Base Management System Nptel Assignment 1 Answers (July-Dec 2025)


Question 1. Which level of abstraction describes how data is physically stored in the database?
a) Physical level
b) Logical level
c) View level
d) Abstraction level

View Answers


Question 2. Consider the following SQL statement(s):

S1:

CREATE TABLE orders (
order_id NUMBER PRIMARY KEY,
product_id NUMBER,
quantity NUMBER,
order_date DATE
);

S2:

INSERT INTO orders(order_id, product_id, quantity, order_date) 
VALUES (1001, 45, 3, '15-JUN-2024');

Identify the correct statement.
a) S1 is a Data Definition (DDL) Query, and S2 is a Data Manipulation (DML) Query.
b) Both S1 and S2 are Data Definition (DDL) Queries.
c) S1 is a Data Control Query (DCL), and S2 is a Data Definition (DDL) Query.
d) Both S1 and S2 are Data Manipulation (DML) Queries.

View Answers


Question 3. Identify the correct statement(s) about database schemas and instances.
a) Student(roll no, name, dept) represents a database instance.
b) (101, ‘John’, ‘CS’) is an example of a relation schema.
c) Course(course_id, title) defines a logical schema.
d) (‘CS101’, ‘Databases’) is an instance of a physical schema.

View Answers


Question 4. Consider the following international university admissions data:

UniversityYearCourseCodeStudentNameCountryYear
University of Delhi2023CS101Riva SharmaIndia2023
ETH Zurich2022PH202Noah MillerSwitzerland2022
University of Delhi2023ME105Arjun PatelIndia2023
National University of Singapore2024EE110Li WeiSingapore2024
ETH Zurich2023CS101Riya SharmaSwitzerland2023

Identify the valid primary key for the relation university_admissions from the given instance.
a) university and country
b) student_id and admission_year
c) university and student_id
d) student name and admission_year

View Answers


Question 5. Consider the following relations:
Employee(eid, ename, salary); Department (did, eid)

Consider the following relational algebra expressions:
RA1: π employees. salary, ename (Employee ⋈ Department)
RA2: π employees. salary, ename (Employee × Department)

Which of the following is correct?
a) RA1 ⊂ RA2
b) RA2 ⊂ RA1
c) RA1 = RA2
d) RA1 ≠ RA2

View Answers


Question 6. Consider the relational schema StudentGrades (StudentID, CourseCode, Grade, Semester).
If the following tuple exists in an instance of StudentGrades:

(TT, CS, PN, TE)

Which of the following tuples can NOT be inserted into StudentGrades?
a)
b)
c)
d)

View Answers


Question 7. Consider the following table:

RiverNameLengthCountry
Ganges2626India
Yangtze6300China
Nile6650Egypt
Mississippi3738USA
Volga3645Russia
Danube2636Germany
Sao Francisco2014Brazil

Identify the correct operation(s) which produces the following output from the above relation:

See also  Data Base Management System | Week 1

| RiverName | Length | Country |

a) σ (Country = ‘Brazil’) ∨ (Length = 6500) (RiverDetails)
b) σ (Country = ‘Brazil’) ∧ (Length = 6500) (RiverDetails)
c) σ (Length > 5000) (RiverDetails)
d) σ (Country = ‘Egypt’) ∨ (Country = ‘Brazil’) (RiverDetails)

View Answers


Question 8. Consider the following tables:

RiverDetails1:

RiverNameLengthCountry
Mississippi3738USA
Volga3645Russia
Danube2626Germany
Sao Francisco2614Brazil

RiverDetails2:

RiverNameLengthCountry
Ganges2626India
Yangtze6300China
Amazon6676Brazil
Nile6650Egypt
Volga3645Russia

Identify the correct operation(s) which will produce the following output:

RiverNameLengthCountry
Ganges2626India
Volga3645Russia

a) RiverDetails2 − RiverDetails1
b) RiverDetails1 − RiverDetails2
c) (RiverDetails2 − RiverDetails1) ∪ (RiverDetails1 − RiverDetails2)
d) (RiverDetails1 ∪ RiverDetails2) ∩ (RiverDetails1 ∩ RiverDetails2)

View Answers


Question 9. Which of the following can be a candidate key for the following instance?

RiverNameLengthCountry
Ganges2626India
Yangtze6300China
Amazon6675Brazil
Nile6650Egypt
Volga3645Russia
Danube2626Germany
Sao Francisco2014Brazil
Parana2014Brazil

a) {Country}
b) {Length}
c) {RiverName}
d) {Country, Length}

View Answers


Question 10. Consider the following table:

RiverNameLengthCountry
Yangtze6300China
Amazon6675Brazil
Mississippi3734USA
Volga3645Russia
Danube2626Germany
Sao Francisco2914Brazil
Parana2014Brazil

Which relational algebra operation extracts only river names and their lengths?
a) σ Length > 3000 (RiverDetails)
b) π RiverName, Length (RiverDetails)
c) RiverDetails × RiverDetails
d) RiverDetails ▷ Country = ‘Brazil’ RiverDetails

View Answers


Data Base Management System Nptel Assignment 1 Answers (Jan-Apr 2025)

Course Link: Click Here


Que. 1: Which of the following statements is (are) incorrect?
a) Logical level abstraction defines the physical storage of data.
b) View level abstraction provides a user-friendly interface for end users.
c) Physical level abstraction focuses on the relationships among data.
d) Logical level abstraction focuses on the relationships among data.

View Answer


Que. 2: Consider the following SQL statements:

sqlCopyEditINSERT INTO emp_name, dept)  
VALUES (101, 'Alice', 'HR');  

ALTER TABLE employees ADD count salary number(8, 2);

Identify the correct statement.
a) Both S1 and S2 are Data Manipulation (DML) Queries.
b) S1 is a Data Manipulation (DML) Query, and S2 is a Data Definition (DDL) Query.
c) Both S1 and S2 are Data Definition (DDL) Queries.
d) S1 is a Data Control Query, and S2 is a Data Definition (DDL) Query.

View Answer

See also  Programming DSA using Python Nptel Week 1 Assignment Answers

Que. 3: Identify the valid primary key for the relation event_registration from the given instance:

participant_idevent_idregistration_datestatus
1001E0012024-01-10Confirmed
1002E0022024-01-11Pending
1003E0012024-01-10Confirmed
1004E0032024-01-12Confirmed
1001E0022024-01-14Pending

a) participant_id.
b) event_id, registration_date.
c) participant_id, event_id.
d) event_id, status.

View Answer


Que. 4: Identify the correct statement(s):
a) Employee(empID, empName) is an instance of a relation schema.
b) Employee(empID, empName) is an example of a physical schema.
c) (101, John) is an instance of a relation schema.
d) (101, John) is an example of a logical schema.

View Answer


Que. 5: Consider a relation CityDetails(CityName, Population, CountryName) where the superkeys are as follows:
{CityName}, {CityName, Population}, {CityName, CountryName}, {CityName, Population, CountryName}.

Select the possible candidate key(s).
a) {CityName, Population, CountryName}.
b) {CityName, Population}.
c) {CityName}.
d) {CityName, CountryName}.

View Answer


Que. 6: Consider the following relations:
Employee(eid, ename, salary), Department(dept_id, dept_name).

Consider the following Relational Algebras:
RA1: πEmployee.eid, ename(Employee ⨝ Department).
RA2: πEmployee.eid, ename(Employee × Department).

Which of the following is correct?
a) RA1 = RA2.
b) RA1 ⊂ RA2.
c) RA2 ⊂ RA1.
d) RA1 ≠ RA2.

View Answer


Que. 7: Consider the following instance of the CourseDetails (CourseID, CourseName) relation:

CourseIDCourseName
C101Mathematics
C102Physics

If CourseID is the foreign key in the relational schema StudentEnrollments (EnrollmentID, StudentName), which of the following is a valid instance of StudentEnrollments?

a)

EnrollmentIDCourseIDStudentName
E001C105Amit
E002C102Raj

b)

EnrollmentIDCourseIDStudentName
E001C102Amit
E001C102Raj

c)

EnrollmentIDCourseIDStudentName
NULLC102Amit
E003C102Raj

d)

EnrollmentIDCourseIDStudentName
E001C102Amit
E002C102Raj

View Answer


Que. 8: Identify the correct operation(s) to produce the following output:

Given table CityDetails:

CityNamePopulationStateName
Mumbai20000Maharashtra
Delhi19000Delhi
Bengaluru12000Karnataka

a) σ (CityDetails).
b) σ (Population > 10000) ∧ (StateName = ‘Maharashtra’) (CityDetails).
c) σ (StateName = ‘Delhi’) (CityDetails).
d) π (CityDetails).

View Answer


Que. 9)
Consider the following tables:

CityNamePopulationStateName
Delhi20000Maharashtra
Ahmedabad8000Gujarat
Pune6000Maharashtra
Bengaluru12000Karnataka
Chennai10000Tamil Nadu

From the above tables, identify the correct operation(s) that produce the following output:

CityNamePopulationStateName
Mumbai20000Maharashtra
Ahmedabad8000Gujarat

Options:
A) CityDetails1 ∩ CityDetails2
B) CityDetails1 - CityDetails2
C) CityDetails2 - CityDetails1
D) CityDetails1 ∪ CityDetails2

View Answer


Que. 10)
Consider the following table:

CityNamePopulationStateName
Mumbai20000Maharashtra
Delhi19000Delhi
Bengaluru12000Karnataka
Hyderabad10000Telangana
Ahmedabad8000Gujarat
Pune6000Maharashtra

Identify the correct operation(s) that produce the following output from the above relation:

See also  Nptel Database Management System Assignment 8 Answers
CityNameStateName
MumbaiMaharashtra
DelhiDelhi
BengaluruKarnataka

Options:
A) π(CityName, StateName)
B) σ(Population > 12000)
C) π(CityName, StateName) ⨝ σ(Population > 12000) (CityDetails)
D) σ(CityName, StateName) (CityDetails)

View Answer


Data Base Management System Nptel Assignment 1 Answers (Jul-Dec 2024)

Course Link: Click Here

For answers or latest updates join our telegram channel: Click here to join

These are Data Base Management System Nptel Assignment 1 Answers


Q1. Consider the SQL statement(s) below:
S1:
CREATE table students( student_id number(5), student_name varchar2(20), address varchar2(20), emailid varchar2(20));
S2:
DELETE FROM students WHERE student_id = 10005;
Identify the correct statement.

a) Both S1 and S2 are Data Definition (DDL) Queries
b) Both S1 and S2 are Data Manipulation (DML) Queries
c) S1 is a Data Definition (DDL) Query and S2 is a Data Manipulation Query (DML)
d) S1 is a Data Control Query and S2 is a Data Manipulation (DML) Query

View Answer


Q2. Identify the valid primary key for the relation students.
a) student_id
b) student_name
c) student_name, address
d) student_id, dept_name

View Answer


For answers or latest updates join our telegram channel: Click here to join

These are Data Base Management System Nptel Assignment 1 Answers


Q3. Identify the correct statement/s.
a) Logical schema defines the overall logical structure of the database.
b) Logical schema defines the overall physical structure of the database.
c) Physical schema defines the overall logical structure of the database.
d) View schema defines the interaction between end-user and database.

Answer: a) Logical schema defines the overall logical structure of the database.

d) View schema defines the interaction between end-user and database.


Q4. Consider a relation MountainDetails (MountainName, Altitude, StateName) where the su- perkeys are as follows: (MountainName}, {MountainName, Altitude}, {MountainName, StateName}, {MountainName, Altitude, StateName).
Select the possible candidate key(s).
a) {MountainName, Altitude, StateName}
b) {MountainName, StateName}
c) {MountainName, Altitude}
d) {MountainName}

Answer: {MountainName}


For answers or latest updates join our telegram channel: Click here to join

These are Data Base Management System Nptel Assignment 1 Answers


Q5. Let students (student_id, student name, address, emailid) and enrolment (student_id, dept name, enrolment_date) be two relations in a schema. The primary keys are shown underlined.
Let student_id be a foreign key in enrolment relation referring to students relation. Suppose, there is no violation of the above referential integrity constraint in the corresponding relation instances of students and enrolment.
Which one of the following relational algebra expressions would necessarily produce an empty relation?

a) Istudent_id (enrolment) Istudent_id (students)
b) Istudent_id (students) Istudent_id (enrolment)
c) Istudent_id(enrolment <> students)
d) Istudent_id (enrolment students)

Answer: a)


Q6.Which of the following statements is (are) correct?
a) View level abstraction describes how a record is stored.
b) View level abstraction hides details of data types and focuses on the interaction with the end-users.
c) Logical level abstraction describes what data is stored in a database and their relationships.
d) Physical level abstraction describes what data is stored in a database and their relationships.

Answer: b) View level abstraction hides details of data types and focuses on the interaction with the end-users.
c) Logical level abstraction describes what data is stored in a database and their relationships.


For answers or latest updates join our telegram channel: Click here to join

These are Data Base Management System Nptel Assignment 1 Answers


Q7. Consider the following instance of the Student Details (StudentID, Student name) relation:

image 3

Answer : d)


Q8. Consider the following tables:

a) ChatDetails ChatDetails
b) ChatDetails2 ChatDetailsı
c) (ChatDetails ChatDetails₂) U (ChatDetails2 ChatDetails1)
d) (ChatDetails₁ U ChatDetails₂) ∩ (ChatDetails ChatDetails2)

Answer: d)


For answers or latest updates join our telegram channel: Click here to join

These are Data Base Management System Nptel Assignment 1 Answers


Q9. Consider the following table:

a) (SenderID=1000) (ChatDetails)
b) (Total_Text>=1000) (ChatDetails)
c) II(SenderID=1000) (ChatDetails)
d) (Total_Text<=1400) (ChatDetails

Answer: b)


Q10. Consider the following table:

a) (SenderID, ReceivedID) (ChatDetails)
b) (Total Text>1000) (ChatDetails)
c) II(SenderID, ReceivedID) ((Total_Text>1000) (ChatDetails))
d) I(SenderID, ReceivedID) (ChatDetails)

Answer: c)


For answers or latest updates join our telegram channel: Click here to join

These are Data Base Management System Nptel Assignment 1 Answers


More Weeks of Data Base Management System: Click here

More Nptel Courses: https://progiez.com/nptel-assignment-answers


Data Base Management System Nptel Assignment 1 Answers