BSCS 4th (Database System)
BSCS 4th (Database System)
OBJECTIVE
Q.1 Circle the correct option. (0.5x40=20)
a) Dept_id should not be used in group by clause c) Avg(salary) should not be selected
b) Group by clause is not valid in this query d) None
32. The traditional storage of data organized by the customer, stored in separate folders in filing cabinets is
an example of ______________ type of ‘database’ management system.
a) Object-oriented database management system c) Network database management system
b) Relational database management system d) Hierarchical database management system
33. After groups have been established, SQL applies predicates in the ___________ clause, allowing aggregate
functions to be used.
a) Where c) Group by
b) Having d) With
34. Which of the following is not the utility of DBMS?
i) Backup ii) Loading iii) Process Organization iv) File organization
a) i, ii, and iv only c) i, iii and iv only
b) i, ii and iii only d) All i, ii, iii, and iv
35. What does a foreign key combined with a primary key create?
a) Network model between the tables that connect c) One to many relationship between the tables that
them connects them
b) Parent-Child relationship between the tables that d) All of the mentioned
connects them
36. Which of the following is correct according to the technology deployed by DBMS?
a) Pointers are used to maintain transactional c) Locks are used to maintain transactional integrity
integrity and consistency and consistency
b) Cursors are used to maintain transactional integrity d) Triggers are used to maintain transactional
and consistency integrity and consistency
37. Which of the following is correct regarding the file produced by a spreadsheet?
a) can be used as it is by the DBMS c) all of the mentioned
b) stored on disk in an ASCII text format d) none of the mentioned
38. What is the function of the following command? Delete from r where P;
Question no 2:
Question no 3:
What is Database Schemas? Write three level architecture in detail with diagram.
Question no 4:
A Salesperson may manage many other salespeople. A Salesperson is managed by only one
salesperson. A salesperson can be agent for many customers. A customer is manages by only one
salesperson. A customer can place many orders. An order can be placed by one customer. An order
lists many inventory items. An Inventory item may be listed on many orders. An inventory item is
assembled from many parts. A part may be assembled into many inventory items. Many employees
assemble an inventory item from many parts. A supplier supplies many parts. A part may be supplied
by many suppliers.
Question no 5: