0% found this document useful (0 votes)
276 views13 pages

Shivaji University, Kolhapur: Question Bank For Mar 2022 (Summer) Examination

This document contains a question bank for the Database Management System subject. It has 40 multiple choice questions and 20 long answer questions related to concepts like data models, relational algebra, normalization, transactions, joins, and SQL queries.

Uploaded by

Siddhant Wadkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
276 views13 pages

Shivaji University, Kolhapur: Question Bank For Mar 2022 (Summer) Examination

This document contains a question bank for the Database Management System subject. It has 40 multiple choice questions and 20 long answer questions related to concepts like data models, relational algebra, normalization, transactions, joins, and SQL queries.

Uploaded by

Siddhant Wadkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Shivaji University , Kolhapur

Question Bank For Mar 2022 ( Summer ) Examination

Master Of Science ( New CBCS )

Subject Code: 83416 Subject Name: Database Management System

MCQ Question

1. Which of the following provides the ability to query information from the database and insert
tuples into, delete tuples from, and modify tuples in the database?

A. DML(Data Manipulation Language)

B. DDL(Data Definition Language)

C. Query

D. Relational Schema

2. In case of any shut down during transaction before commit which of the following statement is
done automatically?

A. Commit

B. View

C. Rollback

D. All of the above

3. The term "TCL" stands for_____.

A. Ternary Control Language

B. Transmission Control Language

C. Transaction Central Language

D. Transaction Control Language


4 .A __________ is a special kind of a store procedure that executes in response to certain action
on the table like insertion, deletion or updation of data.

A. Procedures

B. Triggers

C. Functions

D. None of the mentioned

5 . Which of the following is not a type of database?

A. Hierarchical

B. Network

C. Distributed

D. Decentralized

6. Which of the following is used to denote the selection operation in relational algebra?

A. Pi (Greek)

B. Sigma (Greek)

C. Lambda (Greek)

D. Omega (Greek)

7. The ___________ operation, denoted by " − ", allows us to find tuples that are in one relation
but are not in another.

A. Union

B. Set-difference

C. Difference

D. Intersection
8. Find the ID, name, dept name, salary for instructors whose salary is greater than $80,000 .

A. {t | t ε instructor ∧ t[salary] > 80000}

B. Э t ∈ r (Q(t))

C. {t | Э s ε instructor (t[ID] = s[ID]∧ s[salary] > 80000)}

D. None of the mentioned

9. Weak entity set is represented as………

A. Underline

B. Double line

C. Double diamond

D. Double rectangle

10. The attribute AGE is?

A. Single valued

B. Derived

C. Composite

D. Multi-valued

11. Which of the following has “all-or-none” property?

A. Atomicity

B. Durability

C. Isolation

D. All of the mentioned

12. Which of the following belongs to transaction failure


A. Read error

B. Boot error

C. Logical error

D. All of the mentioned

13. A_____ is a query that retrieves rows from more than one table or view:

A. Start

B. End

C. Join

D. All of the mentioned

14. Which of the following is not a valid aggregate function?

A. COUNT

B. COMPUTE

C. SUM

D. MAX

15. ___________ always returns FALSE for implicit cursors, because the SQL cursor is
automatically closed after executing its associated SQL statements.

A. %FOUND

B. %NOTFOUND

C. %ROWCOUNT

D. %ISOPEN

16. Which statement is used to get all data from the student table whose name starts with "k"?
A. SELECT * FROM student WHERE name LIKE '%k%';

B. SELECT * FROM student WHERE name LIKE 'k%';

C. SELECT * FROM student WHERE name LIKE '_k%';

D. SELECT * FROM student WHERE name LIKE '%k';

17. Which of the following is not a level of data abstraction?

A. Physical Level

B. Critical Level

C. Logical Level

D. View Level

18. Which of the following is a lowest level data model?

A. logical data model

B. physical data model

C. network data model

D. none of these

19. If a schedule S can be transformed into a schedule S’ by a series of swaps of non-conflicting


instructions, then S and S’ are

A. Non conflict equivalent

B. Equal

C. Conflict equivalent

D. Isolation equivalent

20. There exists no cycle in the _____________. Therefore, the given schedule S is conflict
serializable.
A. Direction Graph

B. Scheduling Graph

C. Precedence Graph

D. none of these

21. Select the definition of the correct key which is used to represent relation between two
tables?

A. Foreign key
B. Primary key
C. Super key
D. Candidate Key

22. Which of the following is true about the HAVING clause?

A. Similar to the WHERE clause but is used for columns rather than groups.
B. Similar to WHERE clause but is used for rows rather than columns.
C. Similar to WHERE clause but is used for groups rather than rows.
D. Acts exactly like a WHERE clause.

23. Which command is used to remove a stored Procedure / function from the database?
A. Delete
B. Remove
C. Drop
D. Clear

24. Which of the following makes the transaction permanent in the database?

A. View
B. Commit
C. Rollback
D. Flashback

25. TRUNCATE statement in SQL is a –


A. DML statement
B. DDL statement
C. DCL statement
D. TCL statement

26. In SQL, which command is used to add new rows to a table?

A. Alter Table
B. Add row
C. Insert
D. Append

27. Which of the following can be a multivalued attribute?

A. Phone_number
B. Name
C. Date_of_birth
D. All of the mentioned

28. In data abstraction which is lowest level of abstraction ?

A. Conceptual Level B. View Level

C. Physical Level D. None of these

29. Create table employee (name varchar ,id integer) What type of statement is this ?
A. DDL B. DML
C. DCL D. None of these

30. The basic data type char(n) is a _____ length character string and varchar2(n) is
_____ length character.
A. Fixed, equal B. Equal, variable
C. Fixed, variable D. variable, Equal

31. Tables in second normal form (2NF):


A. Remove duplicate records
B. Lossless dependency
C. Eliminate all hidden dependencies
D. None of these

32. SQL provides five built-in functions: COUNT, SUM, AVG, MAX, MIN.
A. False B. True

33. Properties that describe the characteristics of entities are called:


A. entities. B. attributes.
C. identifiers. D. relationships.

34. A relation is in this form if it is in BCNF and has no multivalued dpendencies:


A. second normal form.
B. third normal form.
C. fourth normal form.
D. domain/key normal form.

35. A relation is in this form if it is in BCNF and has no multivalued dependencies:


A. second normal form.
B. third normal form.
C. fourth normal form.
D. domain/key normal form.

36. A query in the tuple relational calculus is expressed as:


A. {t | P() | t} B. {P(t) | t }
C. {t | P(t)} D. All of the mentioned

37. A subquery in an SQL SELECT statement is enclosed in:


A. braces -- {...}. B. CAPITAL LETTERS.
C. parenthesis -- (...) . D. brackets -- [...].

38. Which of the following is used to denote the selection operation in relational algebra
?
A. Pi (π) B. Sigma (σ)
C. Lambda (λ) D. Omega (ω)
39. How to select all data from studentinfo table starting the name from letter 'r'?
A) SELECT * FROM studentinfo WHERE sname LIKE 'r%';
B) SELECT * FROM studentinfo WHERE sname LIKE '%r%';
C) SELECT * FROM studentinfo WHERE sname LIKE '%r';
D) SELECT * FROM studentinfo WHERE sname LIKE '_r%';

40. A functional dependency is a relationship between or among:


A. tables. B. attributes.
C. relations. D. None of these.
Long Answer Questions:

1. Explain the Database System Architecture with neat diagram.

2. Describe the Hierarchical Data Model and Network Data Model.

3. Describe the Levels of Abstraction in detail.

4. Explain The Relational Data Model in detail.

5. What is Relational Algebra? Describe the operators in Relational Algebra.

6. Explain with an example entities, attributes of an entity and relationship in


ER Diagram.

7. Describe the concept of Functional Dependencies

8. What is normalization? Explain with an example BCNF.

9. What is normalization? Explain with an example 1NF and 2 NF.

10.What is normalization? Explain with an example 2NF and 3 NF

11.Explain the various types of join with help of example in Database


Management System.

12.Explain the ‘Group By’ clause and explain the difference between ‘where
clause’ and ‘having clause’ with an example of each.

13.Explain the Left Join and Right Join with help of example in Database
Management System.
14.Create a table of student given below and solve the following queries.

STUDENT(RNo, Sname, Class, Deptname , City ,Marks)


i. Write a query to display the students details whose Marks are more than
70.
ii. Write a query to display the students details whose City is ‘Pune’.
iii. Write a query to display the students details whose Class is "TECH II"
and Dept. name is "Math's".
iv. Find the list of students who’s Marks is between 60 and 75.
(Assume suitable data)
15. Write a note on PL/SQL.
16. Describe the ACID properties of transaction

17.Create a table of student given below and solve the following queries.

STUDENT(RNo, Sname, Class, Deptname , City ,Marks)


i. Write a query to get Name from STUDENT table in lower case.
ii. Write a query to display the students details whose City is start from
‘P’.
iii. Write a query to display the students details whose Class is "TECH II"
and marks is lower than average marks.
iv. Find the list of students who’s Marks is between 60 and 75.
(Assume suitable data)
18. Write the PL/SQL program to print min number between two numbers.\
19. Describe the Role of DBA.
20.Consider two tables STUDENT(rno, sname, did, course) and
DEPT(did, dname, course)
apply all types of join on above tables to display rno, did, course.

21.Create a table of Product given below and solve the following queries.
8
PRODUCT(PNo, Pname, QTY, Rate)
i. Write a query to get Name from PRODUCT table in Upper case.
ii. Write a query to display the PRODUCT details whose Rate is above
100.
iii. Write a query to display the PRODUCT details whose QTY is greater
than 10 and rate is lower than average rate.
iv. Write a query to display the PRODUCT details with 18% GST.
(Assume suitable data)
22. Explain DDL commands With help of example.
23. Explain DML commands With help of example.
24. Explain Primary key and foreign key in SQL with help of example.
25. Explain loops in PL/SQL with help of example.
26. Write the PL/SQL program to Calculate Factorial of given number.
27. What is trigger? Explain with the help of example?
28. Explain Database Recovery System
29. Write a note on log-based recovery
30. Explain the Characteristics of RDBMS
31. Describe the difference between DBMS and RDBMS
32. Write a note on Data constraint
33.Explain unique key, null, not null, default key
34.Describe GRANT and REVOKE
35.Write a note on Commit, Rollback, Savepoint
36. Explain with the help of example SQL Functions
37.Describe MAX, MIN SORT, COUNT, AVERAGE,
38.Explain SQL aggregation function
39.Explain SQL Sub Query
40.Describe SQL Clauses
41.Describe difference between SQL AND PL/SQL?
42.Explain Looping statements in PL/SQL?
43.Describe sequential statement in PL/SQL?
44.What is a procedure? Explain with the help of example?
45.Describe Function in PL/SQL?
46.Explain how to define function and call function?
47.Describe the concept of B-Tree?
48.Explain the concept of Hash table?
49. Describe 3-tier architecture of DBMS. and its advantages?
50.Write a note on ACID properties
51.Describe the concept of Data Dictionary Management.
52.Describe the concept of Backup and Recovery system.
53.Explain group by clause?
54.What is normalization? Explain various Normal Forms .
55.Explain Exception handling in PL/SQL
56. Explain The three great Data Model in detail.
57. What is join? Explain types of joins?
58. Describe Reference key in DBMS?
59. Explain Serializabilty in DBMS?
60. Describe View Serializabilty?

You might also like