Practice questions for dbms
Practice questions for dbms
Database Management System (DBMS) PRACTICE BOOK (SEM - II -EVEN_2025 _CE RELATED BRANCH)
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
Which of the following is the correct syntax for using the AVG() function in PostgreSQL? A 1 SELECT SELECT AVG FROM SELECT AVG(table_name) SELECT
AVG(column_name) FROM column_name FROM FROM column_name; AVG(column_name,
124 4 table_name; table_name; table_name) FROM
table_name;
What is the purpose of the MAX function in PostgreSQL? A 1 Retrieves the highest value Calculates the average Returns the number of rows Counts the occurrences
from a specified column. value of a numeric in a specified table or view. of a specific value in a
125 4 column. column.
126 4 Which is not a numeric/math function in SQL? D 1 ABS SQRT FLOOR COUNT
Which function is true in order to display current time and date with timezone. A 1 CURRENT_TIMESTAMP CURRENT_TIME CURRENT_DATE All of the above
127 4
What will be the output of following Query? B 1 Tom TOM tom None of above
128 4 select upper('Tom') from NAMES;
What is the output value of query given below? A 1 3.15 3.14 3.2 3
129 4 SELECT ROUND (3.14659, 2);
What is the output value of query given below, B 1 98 87523 987523412 987523415
130 4 SELECT SUBSTR ('98752341', 2,5);
What will be the output of following Query? D 1 How are you how are you H2w are y2w None of above
131 4 SELECT REPLACE ('How are you','o','2');
___________ and __________constraints form the core of the PRIMARY KEY constraint. D 1 NOT NULL , CHECK CHECK ,UNIQUE NOT NULL , FOREIGN KEY NOT NULL , UNIQUE
132 4
To modify the students table and to add a primary key on the student_id Column, Which statement must be used to D 1 alter table students add Alter table students Alter table students add A&C BOTH
accomplishes this task? primary key (student_id); add constraint primary constraint stud_id_pk primary
133 4 Note: The table is currently empty. key (student_id); key (student_id);
Which of the following is TRUE about UNIQUE constraint? D 1 In columns that are subject to Unique values will A single table can have more All of the above
the UNIQUE constraint, always be present in than one unique constraint,
duplicate values are not the column containing since it can be applied to
134 4 allowed. the unique constraint. more than one column.
Purpose of foreign key constraint in SQL Server is __________ A 1 FOREIGN KEY constraints A foreign key in one You cannot insert a row with None of the mentioned
identify and enforce the table points to a a foreign key value, except
relationships between tables candidate key in NULL, if there is no
135 4 another table candidate key with that value
What does the COUNT function in PostgreSQL do? D 1 Counts the occurrences of a Calculates the average Returns the highest value in a find the number of
specific value in a column. value of a numeric column. values in the specified
136 4 column. column excluding
NULL values
How can you use the MIN function to retrieve the lowest value from a column? C 1 MIN(value) WHERE MIN(value, MIN(column_name); MIN(column_name)
137 4 column_name; column_name); ORDER BY value;
What is the output value of query given below? C 1 3.141 3.15 3.14 3.2
138 4 SELECT ROUND(3.14159, 2);
Which Statement returns the current date and time both C 1 SELECT CURRENT_DATE; SELECT SELECT SELECT DATE;
139 4 CURRENT_TIME; CURRENT_TIMESTAMP;
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS) PRACTICE BOOK (SEM - II -EVEN_2025 _CE RELATED BRANCH)
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
140 4 The _______ function retrieves subfields such as year or hour from date/time values. D 1 JUSTIFY CURRENT_DATE CURRENT_TIME EXTRACT
How to Get a Day of Week From the Current Date? B 1 SELECT(DOW FROM SELECT SELECT SELECT
CURRENTDATE); EXTRACT(DOW EXTRACT(CURRENT_DAT EXTRACT(DOW
141 4 FROM E FROM DOW); FROM
CURRENT_DATE); CURRENTDATE);
What is the output value of query given below . C 1 6789 2345 456 456789
142 4 SELECT SUBSTR('123456789', 4,3);
The union operation automatically __________ unlike the select clause. D 1 Adds tuples Eliminates unique Adds common tuples Eliminates duplicate
143 4
tuples
144 4 The intersection operator is used to get the _____ tuples. B 1 Different Common All Repeating
What will be the output of following statement? B 1 2 4 8 16
145 4 SELECT POWER(2, 2);
What will be the output of following Query? B 1 7.536 7.53 7.53637 9.53635
146 4 SELECT TRUNCATE(7.53635, 2);
What is the output value of query given below. C 1 Database magement System Database management Database Management DATABASE
147 4 SELECT INITCAP('database management system'); system System MANAGEMENT
SYSTEM
What will be the output of following Query? D 1 ***Jagruti *******agr *******AGR ***JAGRUTI
148 4 SELECT LPAD(UPPER(SUBSTR('Lok Jagruti University', 5, 7)), 10, '*');
149 4 If we want to retain all duplicates, we must write ________ in place of union. A 1 Union all Union some Intersect all Intersect some
Write SQL statement to create following tables using suitable Primary Key, Foreign Key and Check Constraints. 3
Employee( eid, name, dob, age, doj,salary)
150 4 Payment( pid, pay_date, amount, eid)
Consider the "sales" table. Calculate the following statistics based on the sales data:
151 4
1.The average sales value.
2.The minimum sales value.
3.The maximum sales value.
4.The total number of sales records.
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
Consider the following schema and write postgresql queries for given statements: 3
Employee(E_id ,F_name ,L_name ,email_id )
Customer(C_id ,F_name ,L_name ,email_id ,product_purchased)
154 4 1) Display the first and last names of all employees who are also customers
2)Display distinct first names of all persons who are either employee or customer or both.
3)Display names of employees who are not customers
Create the tables Employee & Department with the following constraints and 3
attributes respectively.
Department
1. DeptId→ Primary Key
2. Name→ Unique
Employee
155 4 1. Id → Primary Key
2. Name
3. Salary→ Check Salary more than 22000
4. Insurance_opted→Not null
5. DeptId → Foreign Key
Consider the following schema and write postgresql queries for given statements: 3
Customer_January (customer_id, first_name, last_name, email_id, product_purchased)
Customer_December (customer_id, first_name, last_name, email_id, product_purchased)
1) Find all details of customers who shopped in December and January.
156 4
2) Display distinct first_name and last_name of all customers who have either shopped in January or December, or
both.
3) Find the details of customers who shopped only in December but not in January.
Consider the following schema and write postgresql queries for given statements: 5
158 4 1. Display distinct first name of person who are either Vendor or supplier or both.
2. Display first_name of Vendor who are also supplier and output column name must be “Common Person”.
3. Display last name of supplier but not Vendor
4. Write Query to find average Price of the Product supplied by Supplier.
5. Write a Query to Create table Vendor with Vendor_id as primary key.Name of the Primary key should be “ljiet”.
159 5 The number of tuples in a relation is known as D 1 degree relation attribute cardinality
160 5 A relational database consists of a collection of A 1 Tables Fields Records Keys
161 5 Which of the following is used to denote the selection operation in relational algebra? B 1 Pi (Greek) Sigma (Greek) Lambda (Greek) Omega (Greek)
162 5 A Set of Possible data value is called ______________________. D 1 Attribute Degree Tuple Domain
163 5 The minimal set of attributes that can uniquely identify a tuple is known as a ______. A 1 Candidate key Canon key Super key Superb key
164 5 The Statement that requests a retrieval of information from database is called as _____ B 1 Control Statement Query Manipulation Statement Both A & B
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS) PRACTICE BOOK (SEM - II -EVEN_2025 _CE RELATED BRANCH)
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
165 5 Key to represent relationship between tables is called? C 1 Primary key Secondary Key Foreign Key Alternate Key
A 1 Relational Algebra Tuple Relational Domain Relational Calculus Both A,B
166 5 Which of the following is/are procedural query language:
Calculus
167 5 The candidate key other than the primary key is called an ……………... A 1 Alternate key Temporary key Flash key Relational key
168 5 Which of the following is used to denote the projection operation in relational algebra? A 1 Pi (Greek) Sigma (Greek) Lambda (Greek) Omega (Greek)
D 1 Super key Composite key Alternate key Primary Key
169 5 _____________ is a candidate key choosen by database designer to identify tupples uniquely in a relation.
170 5 Which of the following are the logical operations in the relational algebra? A 1 Select,Project Union,Intersect Set Difference all of these
171 5 Which one of the following attribute can be taken as a primary key? C 1 Name Street ID Department
What will be the output of following query? B 1 Name of person who is either Name of student who Name of person who is Name of student
172 5 Π name (Student) ∩ Π name (Employee) student or employee is also employee employee but not student
173 5 A list of records that satisfies a particular condition is displayed using ___ operation. A 1 Select Project Union Cross Product
A 1 Names of the authors who Names of the authors Names of the authors who Name of Book and
What will be the output of following query? have either written a book or who have written a have written an article only Article
174 5
∏ author (Books) ∪ ∏ author (Articles) an article or both book only
If STUD_NO and STUD_PHONE both are candidate keys for relation STUDENT and STU_NO is Primary key D 1 Super key Foreign Key Primary key Alternate key
175 5 then STUD_PHONE will be ____________.
176 5 Set of tuples is called as_________. A 1 Relation Domain Attribute Relational Database
177 5 If we want to include attributes from two different relations, which of the following operation is needed? B 1 Set Difference Union Cartesian Product Projection
178 5 Which of the following is NOT a type of relational operation? D 1 Select Operator Projection Operator Set Difference Set Updates
179 5 Using the select operation, you can select ___ that satisfy certain criteria. A 1 Tuples Entity Attributes Operators
For select operation the ________ appear in the parenthesis after the sigma and the___________ argument appears D 1 Predicates,relation Operation,Predicates Relation,Operation Relation,Predicates
180 5 in the subscript.
181 5 From mentioned below operators which are the set operators of relational algebra? B 1 Projection Union Selection All of above
182 5 Which of the following aspects of data is the concern of a relational database model? D 1 data manipulation data integrity data structure all of these
For select operation the ________ appear in the subscript and the ___________ argument appears in the A 1
183 5 Predicates, relation Relation, Predicates Operation, Predicates Relation, Operation
paranthesis after the sigma.
B 1
184 5 The ___________ operation, denoted by −, allows us to find tuples that are in one relation but are not in another. Union Set-difference Difference Intersection
Consider the keys given below as Super key of a relation C 1 Name , Salary, Eid Name , Age , Eid Eid , Name Eid, Age , Balance
1) Name , Salary, Eid,
2) Name , Age , Eid
185 5 3) Name , Address , Eid, Salary
4) Eid, Age , Balance
5) Eid , Name
What is candidate key of this relation?
186 5 If there are 2 types of tuples, A & B, the ___ operation contains all the tuples that are in B but not in A. B 1 Union Set Difference Cartesian Product Projection
A 1 Projection Intersection Union Set Difference
187 5 The operation of a relation X, produces Y, such that Y contains only selected attributes of X. Such an operation is :
Given the relations: A 1 The sum of all employees' Department number All employees of a given Name of Employee
188 5 employee (name, salary, deptno) and department (deptno, deptname, address) salaries and department name department whose Salary is above
Which of the following queries cannot be expressed using the basic relational algebra operations (U, -, x, π, σ)? 20000
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS) PRACTICE BOOK (SEM - II -EVEN_2025 _CE RELATED BRANCH)
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
5
Consider the relational database given below. Give an expression in the relational algebra to express each of the
following statements:
Customer(Cust_name, Cust_street, Cust_city)
Branch(Branch_name, Branch_city, Assets)
Account (Branch_name, Account_number, Balance)
Loan(Branch_name, Loan_number, Amount)
Depositor(Cust_name, Account_number)
189 5 Borrower(Cust_name, Loan_number)
Player relation (Player Id, Team Id, Country, Age, Runs, Wickets)
1.Find the names of all the customers who have taken a loan from the bank and also have an account at the bank.
2. Find all tuples from player relation for which country is India.
3.Select all the tuples for which runs are greater than or equal to 15000.
4.Select all the players whose runs are greater than or equal to 6000 and age is less than 25.
5.List all the countries in Player relation.
Solve the queries for the following database using Relational Algebra. 7
branch (branch-name, branch-city, assets)
customer (customer-name, customer-street, customer-only)
account (account-number, branch-name, balance)
loan (loan-number, branch-name, amount)
depositor (customer-name, account-number)
borrower (customer-name, loan-number)
1) Find all loans of over $1200
190 5 2) Find the loan number for each loan of an amount greater than $1200
3) Find the names of all customers who have a loan, an account, or both, from the bank
4) Find the names of all customers who have a loan and an account at bank.
5) Find the names of all customers who have a loan at the Perryridge branch.
6) Find the names of all customers who have a loan at the Perryridge branch but do not have an account at any
branch of the bank.
7) Find the names of all customers who have a loan & an account at the Perryridge branch.
4
The relational database schema is given below.
employee (person-name, street, city)
works (person-name, company-name, salary)
company (company-name, city)
manages (person-name, manager-name)
191 5 Write the relational algebra expressions for the given queries.
1.Find the names of all employees who work for First Bank Corporation.
2.Find the names and cities of residence of all employees who work for First Bank Corporation.
3.Find the names, street address, and cities of residence of all employees who work for First Bank Corporation and
earn more than $10,000 per annum.
4. Find the names of all employees in this database who do not work for First Bank Corporation.
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS) PRACTICE BOOK (SEM - II -EVEN_2025 _CE RELATED BRANCH)
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
5
Solve the queries for the following database schema using Relational Algebra.
5
Consider the relations
City(city_name,state) , Hotel(hname,address) , City_Hotel(hname,city_name,owner)
Answer the following queries in relational algebra
i) Display all the record of hotel name,city name and owner of the Hotel.
193 5
ii) List the name of cities which have no Hotel.
iii) List the Name of hotels owned by ‘Taj Group’
iv) List the hname and owner who belongs to Gujarat State.
v) Find the name of city Whose state is either Gujarat or Rajasthan or both.
Write relational algebra syntax for the given queries using the following database: 3
Employee(eno, ename, salary, designation)
Customer (cno, cname, adress, city)
196 5
1) Find out name of employees who are also customers.
2) Find out name of person who are employees but not customers
3) Display all names who are either emplyees or customers.
Consider below schemas for writing relational algebra queries: 3
Reserves(sid,bid,day)
Sailors(sid,sname,rating,age)
Boats(bid,bname,color)
197 5
1. Find name of sailors who have a reserved boat 103.
2. Find the name of sailors who have reserved at least one boat.
3. Find the name of sailors who have reserved a red or green boat.
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS) PRACTICE BOOK (SEM - II -EVEN_2025 _CE RELATED BRANCH)
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
Consider the relational database given below. Give an expression in the relational algebra to express each of the 2
following queries:
Employee (person-name, street, city)
Works (person-name, company-name, salary)
Company (company-name, city)
Manages (person-name, manager-name)
198 5
1) Find the names of all employees in this database who live in the same city as the
company for which they work.
2) Find the names, street address, and cities of residence of all employees who work
for HCL and earn more than $10,000 per annum.
Consider the following relational database, where the primary keys are underlined. Give an expression in the 4
relational algebra to express each of the following queries:
1. List all pairs of employee names and the project numbers they work on.
2. List out department number, department name and department budget.
3. List all projects that Raj Yadav works on by project name.
4. List the names of employees who supervise themselves.
3
Write Relational algebra statement for following.
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
1
Consider following schema :
Instructor(I_id , I_name , I_dept , I_salary)
203 5 Course(C_id , C_name ,C_sem , C_year)
Teaches(I_id , C_id)
Write query using relation algebra to find the name of instructor along with the name of course they teach.
1
Consider both relation given below are compatible relation.
Employee (Name , Eid , Address , Age )
204 5
Customer ( Name , Cid , Address ,Age)
Write query using relation algebra to find the name and age of all who is either employee or customer or both.
Empdt1(empcode, name, street, city, state,pincode). For any pincode, there is only one city and state. Also, for B 1
given street, city and state, there is just one pincode. In normalization terms, empdt1 is a relation in 2 NF and hence also 3NF and hence also in 2NF BCNF and hence also
213 6 1 NF only
in 1 NF and 1NF in 3NF, 2NF and 1NF
A relation is in 2NF when it is in 1 NF and …...................... C 1 No Transitivity Partial functional No partial functional None of these
214 6
dependencies dependencies
In which normal form conversion of composite attribute to individual attribute happens, A 1 First NF Second NF Third NF None of these
215 6
Normalization is used to design ________________ D 1 Join dependencies Multi-valued Cyclic dependencies Relational database
216 6
dependencies
217 6 A functional dependency is a relationship between or among ……. D 1 Tables Rows Relations Attributes
218 6 Which of the following is not Armstrong’s Axiom? D 1 Reflexivity rule Transitivity rule Augmentation rule None of these
219 6 We can use the rules to find logically implied functional dependencies. This collection of rules is called B 1 Axioms Armstrong’s axioms Armstrong Closure
Which of the following is a trivial functional dependency? B 1 A→A A→B, if B is a subset B→B All of these
220 6 of A
For a relation R(X, Y, Z, W) with primary key(X, Y) a functional dependency XY→Z is said to be ___________. A 1 Full Dependency Partial Dependency Trivial Dependency None of these
221 6
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
If A→B, A→ C then which of the following is true? D 1 A→BC A→B A→C All of the mentioned
227 6
In a schema with attributes A, B, C, D and E following set of functional dependencies are given B 1 CD → AC BD → CD BC → CD AC → BC
228 6 {A → B, A → C, CD → E, B → D, E → A}
Which of the following functional dependencies is NOT implied by the above set?
AB→CD, AF→D, DE→F, C→G , F→E, G→A C 1 CF+ = {ACDEFG} BG+ = {ABCDG} AF+ = {ACDEFG} None of the above
229 6 Which one of the following options is false?
Given relation R with attributes A,B, C,D and set of FDs as C 1 {B → E , C → BD, {B → AF , C → BD, {B → A , C → BD, None of there
230 6 B → A , AD → C , C → ABD . Canonical cover for given FDs AD → C} AD → C} AD → C}
Functional Dependencies are the types of constraints that are based on______ A 1 Key Key revisited Superset key None of the mentioned
231 6
Third Normal Form is …......................... A 1 2NF and no transitive 2NF or no transitive BCNF or no transitive None of these
232 6 dependencies dependencies dependencies
F = {CH → G, A → BC, B → CFH, E → A, F → EG} is a set of functional dependencies The relation R is A 1 in 1NF, but not in 2NF. in BCNF in 3NF, but not in BCNF. in 2NF, but not in 3NF.
233 6
234 6 Which normal form is considered adequate for normal relational database design? B 1 1NF 3 NF 2 NF 4 NF
235 6 Every BCNF is in D 1 1 NF 2 NF 3 NF All of the above
A table has fields F1, F2, F3, F4, and F5, with the following functional dependencies: D 1 3 NF 2 NF 4 NF 1`NF
236 6 F1→F3 , F2→F4 , (F1,F2)→F5 in terms of normalization, this table is in
Which of the following is TRUE? B 1 Every relation in 2NF Every relation in No relation can be in A relation R is in 3NF
is also in BCNF BCNF both BCNF and 3NF if every non-prime
is also in 3NF attribute of R is fully
237 6 functionally dependent
on every key of R
For a database relation R(a,b,c,d), where the domains a, b, c, d include only atomic values, only the following A 1 in first normal form but not in in second normal in third normal form None of the above
functional dependencies and those that can be inferred from them hold: second normal form form but not in first
238 6 { a → c, b → d } normal form
This relation is
Match the following B 1 a-1 , b-2 , c-3 a -2, b-3 , c-1 a-3 , b-1 , c-2 a-1 , b-3 , c-2
Condition Normal form
a) No Partial dependencies 1) First normal form
239 6 b) No transitive dependencies 2) Second normal form
c) Atomic value 3) Third normal form
"The relation employee(ID,name,street,Credit,street,city,salary) is decomposed into B 1 Lossless decomposition Lossy decomposition Both A and B None of these
employee1 (ID, name)
240 6 employee2 (name, street, city, salary)
"The relation Account_Branch(Ano, Balance, Bname, Baddress) is decomposed into A 1 Lossless decomposition Lossy decomposition Both A and B None of these
Account (Ano, Balance, Bname)
241 6 Branch(Bname, Baddress)
Find Closure set of Attribute for a given relation R has following attribute EFGHIJKLMN, A 1 EFGHIJKLMN EFGHIJKLM EFGH EFIJ
242 6 FD: {EF→G, F→IJ, EH→KL, K→M, L→N}, (EFH)+=?
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS) PRACTICE BOOK (SEM - II -EVEN_2025 _CE RELATED BRANCH)
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
What is the Candidate Key for given FDs? B 1 {GI} {EFH} {EH} {IJ}
243 6 FD: {EF→G, F→IJ, EH→KL, K→M, L→N}
Match the following A 1 a -2, b-3, c-1 a -2, b-1, c-3 a-1, b-3, c-2 None of above
ConditionNormal form
244 6 a) No Partial dependencies 1) First normal form
b) No transitive dependencies 2) Second normal form
c) Atomic value 3) Third normal form
Find Closure set of Attribute for the following: R(A,B,C,D,E,F), FD: AB → C, BC → AD, D → E, CF → B, A 1 ABCDE ABC AB ABCDEF
245 6 (AB)+=?
What is the Candidate Key for given FDs? B 1 {GI} {EFH} {KL} {IJ}
246 6 FD : {EF→G ,F→IJ , EH→KL , K→M, L→N}
Suppose relation R(A,B,C,D,E) has the following functional dependencies: A →B ,B → C, BC→ A, A → D, E → B 1 A B,C E D
247 6 A, D → E. Which of the following is not a key?
Relation R has six attribute ABCDEF. F = { A → BC, B → CE, E → A, F → E} is a set of functional A 1 1 2 4 None of these
248 6 dependencies.How many candidate keys does the relation R have?
Relation R has following attribute ABCDEF. F = { A → B, B → CE, E → A, F → E} is a set of functional B 1 D DF A AF
249 6 dependencies. Which one is candidate key?
For a given relation R has following attribute EFGHIJKLMN. What are prime attribute? A 1 E,F,H G,I K,L I,J
250 6 FD : {EF→G ,F→IJ , EH→KL , K→M, L→N}
Consider the following functional dependencies in a database. D 1 in second normal form in third normal form in BCNF None of these
Date_of_Birth→Age Age→Eligibility but not in third normal form but not in BCNF
Name→Roll_number Roll_number→Name
251 6 Course_number→Course_name Course_number→Instructor
(Roll_number, Course_number)→Grade
The relation (Roll_number, Name, Date_of_birth, Age) is
S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNF. D 1 Both S1 and S2 are S1 is FALSE and Both S1 and S2 are S1 is TRUE and S2
S2: AB→C, D→E, E→C is a minimal cover for the set of functional dependencies FALSE. S2 is TRUE. TRUE. is FALSE.
252 6 AB→C, D→E, AB→E, E→C.
Which one of the following is CORRECT?
Relation R has eight attribute ABCEFGH. F = {CH → G, A → BC, B → CFH, E → A, F → EG} is a set of C 1 3 6 4 None of these
253 6 functional dependencies.How many candidate keys does the relation R have?
Prove the union rule: 2
254 6 If X → Y and X→ Z then X → YZ
Using only reflexivity, augmentation and transitivity.
258 6 For relation R(ABCD) Find the Irreducible set of FD from given FD. FD: {A→B, C→B, D→ABC, AC→D} 3
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS) PRACTICE BOOK (SEM - II -EVEN_2025 _CE RELATED BRANCH)
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
Identify the anomalies which affect the storing and retrieving data in relation school data and write down the 3
solution for identified anomalies. Sample data for schooldata relation:
259 6
The following functional dependencies hold true for the relational scheme R ( rollno , name , voterid , age ) 2
265 6 FDS={rollno→ name , rollno→ voterid , voterid → age , voterid r→ rollno }
Find the highest normal form of the given functional dependencies , check only upto BCNF.
Given a relation R (P, Q, R, S, T, U, V, W) and Functional Dependency set FD = {PQ → R, P → ST, Q → U, and 4
266 6 U → VW}, determine given R is in which normal form?
Compute the closure of the following set of functional dependencies for relation 4
267 6 schema R = (ABCDE),F = {A → C, E → D, B → C} List the candidate keys for R.
Suppose a relational schema R(A,B,C,D,E,F), and set of functional dependency as following: F:{ AB → C, DC → 2
268 6 AE, E → F }.Find the total no of candidate keys for a given relation.
Given relation R with attributes (P, Q, R, S, T, U) and set of FDs are: 3
269 6 {PQ → R , R → ST , T → U, S → P, R → Q }.
Find all the possible candidate keys.
Suppose a relational schema R(P, Q, R, S), and set of functional dependency as following 5
270 6 F : { P→ QR , Q →R, P→ Q , PQ →R }
Find the canonical cover Fc .
Suppose a relational schema R(w, x, y, z), and set of functional dependency as following 3
271 6 F : { x → w, wz → xy, y → wxz }
Find the canonical cover Fc
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS) PRACTICE BOOK (SEM - II -EVEN_2025 _CE RELATED BRANCH)
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
The following functional dependencies hold true for the relational scheme 5
R(A,B,X,Y )
X→A
272 6 AB → XY
Y → AXB
Find the canonical cover for the given functional dependencies.
273 6 Prove the statement “Every relation which is in BCNF is in 3NF but the converse is not true 4
Consider a relation R(A,B,C,D,E,F,G,H) with FDs as AB → C, A→DE and B→F ,F→GH, where candidate key is 2
274 6 AB. Find given relation is in which normal form? Justify your answer.
Normalize the relation customer to solve the problems of multivalued attributes and composite attributes and 3
redundancy. Sample data for customer relation:
275 6
276 6
277 6
L.J Institute of Engineering and Technology, Ahmedabad.
Database Management System (DBMS) PRACTICE BOOK (SEM - II -EVEN_2025 _CE RELATED BRANCH)
Note : This PRACTICE BOOK is only for reference purpose . L.J.U Test question paper may not be completely set from this PRACTICE BOOK.
Unit MCQ
Sr No Question_Text Marks Option A Option B Option C Option D
Number Answer
278 6
Consider the relation R(A,B,C) for functional dependency set ( A→B and B→C) which is decomposed into two 4
279 6 relations R1(A,C) and R2(B,C). Check this decomposition is dependency preserving or not.