0% found this document useful (0 votes)
32 views

BCA DBMS Preboard

dbms qns

Uploaded by

shrestha11ajay
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

BCA DBMS Preboard

dbms qns

Uploaded by

shrestha11ajay
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Bachelor of Computer Application

Course Title : Database Management System


Code No: CACS 255
Term: Preboard-term
Group A

Attempt all questions. [10*1=10]


1. Who created the first DBMS?
a) Edgar Frank Codd. b) Charles Bachman
c) Charles Babbage d) Sharon B. Codd
2. Which of the following is not a type of database?
a) Hierarchical b) Network
c) Distributed d) Decentralized

3. What is information about data called?


a) Hyper data. b) Tera data
c) Meta data d) Relations

4. ______________ is a set of one or more attributes taken collectively to uniquely identify


a record.
a) Primary Key b) Foreign key
c) Super key d) Candidate key

5. In an Entity-Relationship Diagram Oval represents ?


a) Entity Sets b) Table
c) Attributes d) Database

6. Which one of the following is not function of DBA?


a) Network Maintenance b) Routine Maintenance
c) Schema Definition d) Authorization of data access

7. A major goal of the db system is to minimize the number of block transfers between the
disk and memory. Which of the following helps in achieving this goal?
a) Secondary storage b) Storage
c) Catalog d) Buffer

8. Why the following statement is erroneous?


SELECT dept_name, ID, avg (salary)
FROM instructor
GROUP BY dept_name;
a) Dept_id should not be used in group by clause
b) Group by clause is not valid in this query
c) Avg(salary) should not be selected
d) None

9. Which of the following protocols ensures conflict serializability and safety from
deadlocks?
a) Two-phase locking protocol b) Time-stamp ordering protocol
c) Graph based protocol d) None of the mentioned

10. Consider money is transferred from (1) account-A to account-B and (2) account-B to
account-A. Which of the following form a transaction?
a) Only 1 b) Only 2
c) Both 1 and 2 individually d) Either 1 or 2
Bachelor of Computer Application
Course Title : Database Management System
Code No: CACS 255
Term: Preboard-term
Group B

Attempt any SIX questions [6*5=20]

1. What is purpose of DBMS ? Explain application of DBMS.


2. Explain the three-level architecture of DBMS with the help of an example. Mention its advantage
also. What is difference between logical and physical data independence?
3. Define Boyce-Codd normal form. How does it differ from 3NF? Why is it considered a stronger form
of 3NF.
4. Consider the following relations and write RA statements for given queries. [10]
Police(Pid, Name, Post)
Thief(Tid, Name , age)
Catches(pid, tid , caught-date)
a) List the name of all inspectors.
b) List the name of all thieves who are below 20 years.
c) How many thieves are caught on 21 sept, 2020 ?
d) Remove all thieves who are above 55 years.
e) Remove record of police whose name is “Sahil”

5. Write DDL statements for the following Relation:

Table Name Attributes Types Constraints

EmpID Varchar Primary Key

Employees
EmpName Varchar Not Null

Gender Varchar Value must be


“M”,”F” or “O”

Age Number Age must be >16

6. Discuss about materialized and pipelined evaluation of Query expression in Query optimization.
7. How Time-stamp ordering protocol is used to ensure concurrency control ?

Group C
Attempt the Questions [2*10=20]

8. Consider following databases and draw ER diagram and convert entities and relationships to relation
table for a given scenario.

COLLEGE DATABASE:

STUDENT (USN, SName, Address, Phone, Gender)

SEMSEC (SSID, Sem, Sec)

CLASS (USN, SSID)

SUBJECT (Subcode, Title, Sem, Credits)

IAMARKS (USN, Subcode, SSID, Test1, Test2, Test3, FinalIA)

10. Consider Dept table

DEPTNO DNAME LOC

Write the SQL Query of the following:

a. Rename the table dept as department

b. Add a new column PINCODE and DST_DATE with not null constraints to the existing table
DEPT

c. All constraints and views that reference the column DST_DATE are dropped automatically,
along with column.

4. Rename the column DNAME to DEPT_NAME in dept table

5. Change the data type of column loc as CHAR with size 10

6. Delete table

You might also like