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

BSCS 4th (Database System)

Paper

Uploaded by

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

BSCS 4th (Database System)

Paper

Uploaded by

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

Pre-University BSCS 4thSemester

ASpire Time: 3:00 Hours Marks : 100


College,Pattoki
Subject:Database System

NAME:……………………………… Roll Number:……………………………

OBJECTIVE
Q.1 Circle the correct option. (0.5x40=20)

1. What is the full form of DBMS?


a) Data of Binary Management System c) Database Management Service
b) Database Management System d) Data Backup Management System
2. What is a database?
a) Organized collection of information that cannot be c) Organized collection of data or information that
accessed, updated, and managed can be accessed, updated, and managed
b) Collection of data or information without d) Organized collection of data that cannot be
organizing updated
3. What is DBMS?
a) DBMS is a collection of queries c) DBMS is a programming language
b) DBMS is a high-level language d) DBMS stores, modifies and retrieves data
4. Who created the first DBMS?
a) Edgar Frank Codd c) Charles Babbage
b) Charles Bachman d) Sharon B. Codd
5. Which type of data can be stored in the database?
a) Image oriented data c) Data in the form of audio or video
b) Text, files containing data d) All of the above
6. In which of the following formats data is stored in the database management system?
a) Image c) Table
b) Text d) Graph
7. Which of the following is not a type of database?
a) Hierarchical c) Distributed
b) Network d) Decentralized
8. Which of the following is not an example of DBMS?
a) MySQL c) IBM DB2
b) Microsoft Acess d) Google
9. Which of the following is a feature of DBMS?
a) Minimum Duplication and Redundancy of Data c) Single-user Access only
b) High Level of Security d) Support ACID Property
10. Which of the following is a feature of the database?
a) No-backup for the data stored c) Lack of Authentication
b) User interface provided d) Store data in multiple location
11. Which of the following is not a function of the database?
a) Managing stored data c) Security for stored data
b) Manipulating data d) Analysing code

12. Which of the following is a function of the DBMS?


a) Storing data c) Data Integrity
b) Providing multi-users access control d) All of the above
13. Which of the following is a component of the DBMS?
a) Data c) Data Manager
b) Data Languages d) All of the above
14. Which of the following is known as a set of entities of the same type that share same properties, or
attributes?
a) Relation set c) Entity set
b) Tuples d) Entity Relation model
15. What is information about data called?
a) Hyper data c) Meta data
b) Tera data d) Relations
16. What does an RDBMS consist of?
a) Collection of Records c) Collection of Tables
b) Collection of Keys d) Collection of Fields
17. The values appearing in given attributes of any tuple in the referencing relation must likewise occur in
specified attributes of at least one tuple in the referenced relation, according to _____________________
integrity constraint.
a) Referential c) Referencing
b) Primary d) Specific
18. _____________ is a hardware component that is most important for the operation of a database
management system.
a) Microphone c) High-resolution video display
b) High speed, large capacity disk to store data d) Printer
19. The DBMS acts as an interface between ________________ and ________________ of an enterprise-class
system.
a) Data and the DBMS c) Database application and the database
b) Application and SQL d) The user and the software
20. The ability to query data, as well as insert, delete, and alter tuples, is offered by ____________
a) TCL (Transaction Control Language) c) DDL (Data Definition Langauge)
b) DCL (Data Control Language) d) DML (Data Manipulation Langauge)
21. ______________ is a set of one or more attributes taken collectively to uniquely identify a record.
a) Primary Key c) Super key
b) Foreign key d) Candidate key
22. Which command is used to remove a relation from an SQL?
a) Drop table c) Purge
b) Delete d) Remove
23. Which of the following set should be associated with weak entity set for weak entity to be meaningful?
a) Neighbour set c) Owner set
b) Strong entity set d) Identifying set
24. Which of the following command is correct to delete the values in the relation teaches?
a) Delete from teaches; c) Remove table teaches;
b) Delete from teaches where Id =’Null’; d) Drop table teaches;
25. Procedural language among the following is __________
a) Domain relational calculus c) Relational algebra
b) Tuple relational calculus d) Query language
26. _________________ operations do not preserve non-matched tuples.
a) Left outer join c) Natural join
b) Inner join d) Right outer join
27. Which forms have a relation that contains information about a single entity?
a) 4NF c) 5NF
b) 2NF d) 3NF
28. The top level of the hierarchy consists of ______ each of which can contain _____.
a) Schemas, Catalogs c) Environment, Schemas
b) Schemas, Environment d) Catalogs, Schemas
29. _______ indicates the maximum number of entities that can be involved in a relationship.
a) Greater Entity Count c) Maximum cardinality
b) Minimum cardinality d) ERD
30. The user IDs can be added or removed using which of the following fixed roles?
a) db_sysadmin c) db_securityadmin
b) db_accessadmin d) db_setupadmin
31. 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 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;

a) Clears entries from relation c) Deletes particular tuple from relation


b) Deletes relation d) All of the mentioned
39. ______ resembles Create view.
a) Create table . . . as c) Create table . . .like
b) Create view as d) With data
40. The query specifying the SQL view is said to be updatable if it meets which of the following conditions?
a) select clause contains relation attribute names but b) from clause has 1 relation
not have expressions, aggregates, or distinct c) query does not have group by or having clause
specification d) All of the mentioned
SUBJECTIVE

Write detailed answers of the following questions: (4x20=80)

Question no 2:

Define Normalization. Normalize up to 3rd formal form.

Question no 3:

What is Database Schemas? Write three level architecture in detail with diagram.

Question no 4:

Identify Entities and Relationship and draw ERD

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:

Write queries for following statement

(A). Create table (EmpID, EmpName, EmpClass, Emp_ContactNo, Emp_Salary,Emp


Designation, Emp_Bonus, Department_Name)\
(B). Select Record of those employees who are taking more than 25000 salary
(C). Display Record of Students group by their department
(D). Display Record of those students who are from Lahore and belongs to CS department.
(E). Display name of Employees in ascending order
(F). Add 5% increment in salary and show results.
BEST OF LUCK FOR THIS PAPER AND OR YOUR FUTURE… I'LL REMEMBER YOU IN MY PRAYERS...

You might also like