You are on page 1of 4

Enroll. No.

_________

MARWADI UNIVERSITY
Faculty of Computer Applications

BCA SEM : 2 SUMMER : 2017


__________________________________________________________________________
Subject: - (DBMS) (05BC0205) Date:-17/05/2017
Total Marks:-100 Time: - 03:00 hours
Instructions:
1. All Questions are Compulsory.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.

Question: 1.

(a) Objective MCQ [10]

1) Which of the following symbol is used to show the relationship in E-R Diagram ?

a) b) c) d)

2) Which of the following normalization Partial Functional Dependencies shall be removed ?


a) 1NF b) 2NF c) 3NF d) 4NF

3) Which was the first Data Model which was produced ?


a) Hierarchical b) Network c) Relational d) Tabular

4) What will be the effect of following “update” command


UPDATE STUDENT SET STUDID=101, CITY=’MUMBAI’

a) Above command will update city to ‘Mumbai’ for student id 101


b) Above command will give error
c) Above command will update all student id to 101 and city to ‘Mumbai’
d) Above command will update student id 101 where city is ‘Mumbai’

5) Statement-1 : Drop table command will remove table data as well as structure
Statement-2 : Delete command will remove table data forever which can’t be rollbacked.
a) Only Statement-1 is true c) Both Statements are true
b) Only Statement-2 is true d) Both Statements are false

6) What will be the output of CEIL (-10.12) numeric function


a) -10 b) -11 c) -10.50 d) 11

7) Which of the following will return all the values by eliminating repeated values of connected
tables.
a) UNION b) INTERSECT c) MINUS d) UNIQUE

8) Which of the join will return only matching rows ? It will eliminate the entries which are not
matching.
a) Equi Join b) Non Equi Join c) Outer Join d) Self Join

9) Which of the following command is used to change the structure of a table


a) Create b) Alter c) Update d) Revoke

MARWADI UNIVERSITY 1|
10) What will be the effect of following command
SELECT * FROM STUDENT WHERE NAME LIKE ‘N%’
a) Above command will return all the students whose name starts with ‘N’
b) Above command will return all students whose name ends with ‘N’
c) Above command will return all students whose name contains ‘N’ anywhere
d) Above command will return all students whose name does not contain ‘N’

(b) Short Que. (answer in one sentence) [10]


1) Network Data Model 3)DDL 5) Composite Index
2) Internal Schema 4) Sub Query

Question: 2.
(a) Explain E-R Diagram and its symbols. Explain with an example [08]

(b) Differentiate between Hierarchical Model and Network Model [08]


OR
(b) What do you mean by Join ? Explain different types of joins [08]

Question: 3.
(a) What do you mean by Normalization ? Explain 1NF and 2NF [08]

(b) Explain IN and NOT IN with example which can be used in where clause [04]

(c) Explain alter table command with atleast 2 various options. [04]

OR

(a) What do you mean by View ? Explain advantages of using views [08]

(b) Differentiate between Union and Intersect operations. [04]

(c) What do you mean by Subquery ? Explain with suitable example [04]

Question: 4.
(a) Explain generic PL-SQL Block with a small example [08]

(b) Explain how to update the records of table with example. [04]

(c) Describe the use of “group by” clause in select command. [04]

OR

(a) Explain PL-SQL Data Types with example of how to create variable. [08]

(b) Describe various options to insert record(s) into table. [04]

(c) Explain TO_CHAR() function as far as date options are concerned. [04]

Question: 5.
(a) Mr. Bean is new to Database technology. He is trying to apply constraints on a table but doesn’t
know what are different types of Data Constraints ? Explain in detail. [08]

(b) Explain Pattern Searching in SQL with atleast 2 examples. [04]

(c) A programmer is willing to write PL-SQL Block. He is willing to go for condition in PL-SQL
block. What are the options for him ? Describe briefly. [04]

OR

MARWADI UNIVERSITY 2|
(a) Mr. Charlie is new to Database technology. He is willing to learn different types of delete
operations on table. Explain different ways of doing so. [08]

(b) Explain Range Searching in SQL with atleast 2 examples. [04]

(c) A programmer is willing to write some Repeating lines in PL-SQL Block. What various options
can be taken be him as far repeating lines are concerned. Describe briefly. [04]

Question: 6.
(a) Consider following tables and solve following query [08]
customer (custid, custname, address, city, contact, email)
order (orderid, odate, amount, custid)

1) Write command to create order table with suitable structure and constraints (3)
2) Write query to display customers from “Mumbai” city (1)
3) Write query to display name of customer who has given maximum order (2)
4) Write query to display customer id, customer name, order id, odate and amount (2)

(b) What do you mean by Unique Index ? Explain briefly. [04]

(c) Explain COUNT() and SUM() functions of SQL. [04]

OR

(a) Consider following tables and solve following query [08]


book (bookid, bookname, isbn, publisher, authorid)
author (authorid, authorname, specialization, contact, email)

1) Write command to create book table with suitable structure and constraints (3)
2) Write query to display all the books published by ‘PHI’ (1)
3) Write query to display all the books written by ‘Mr. Abc’ (2)
4) Write query to display list of book name, isbn and related author name. (2)

(b) Explain the difference between Column Level and Table Level Constraint [04]

(c) Explain SYSDATE and LAST_DAY in SQL. [04]

---Best of Luck---

MARWADI UNIVERSITY 3|
Recommended % Que. Paper weight-age as per Bloom’s Taxonomy
No. Que. Level % of weight-age
For UG First & For UG 3rd year onward &
Second Year PG Course all Sem.
1 Remember/Knowledge 20 10
2 Understand 30 20
3 Apply 25 25
4 Analyze 15 25
5 Evaluate 10 10
6 Higher order Thinking -- 10

Your Que. Paper weight-age as per Bloom’s Taxonomy


No. Que. Level % of weight-age
% of weight -age Que. No.

1 Remember/Knowledge 24 1,2
2 Understand 32 2,3
3 Apply 20 3,4
4 Analyze 13 5,6
5 Evaluate 11 5,6
6 Higher order Thinking -- --

MARWADI UNIVERSITY 4|

You might also like