0% found this document useful (0 votes)
39 views31 pages

RSM Question Bank - DMS 22319 RSD

The document outlines the syllabus and examination structure for a Database Management System course, detailing chapters, marks distribution, and course outcomes. It includes various question types, such as descriptive and multiple-choice questions, covering topics like Database System Concepts, Relational Data Models, SQL, PL/SQL programming, and Database Security. The course aims to equip students with skills in database design, management, and security practices.

Uploaded by

skiranwable948
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)
39 views31 pages

RSM Question Bank - DMS 22319 RSD

The document outlines the syllabus and examination structure for a Database Management System course, detailing chapters, marks distribution, and course outcomes. It includes various question types, such as descriptive and multiple-choice questions, covering topics like Database System Concepts, Relational Data Models, SQL, PL/SQL programming, and Database Security. The course aims to equip students with skills in database design, management, and security practices.

Uploaded by

skiranwable948
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/ 31

Subject: DATABASE

MANAGEMENT SYSTEM
(22319)

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 1 of 31


Marks With
Chapter No. Name of chapter
Option

1 Database System Concept 18

2 Relational Data Model 26

3 Interactive SQL and advanced SQL 20

4 PL/SQL programing 24

5 Database Security and Transaction Processing 14

Total Marks 102

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 2 of 31


Q.1 Attempt any FIVE 5*2=10
a) Database System Concept
b) Database System Concept
c) Relational Data Model
d) Relational Data Model
e) Relational Data Model
f) Interactive SQL and advanced SQL
g) PL/SQL programing

Q.2 Attempt any THREE 3*4=12


a) Database System Concept

b) Relational Data Model

c) Interactive SQL and advanced SQL

d) PL/SQL programing

Q.3 Attempt any THREE 3*4=12


a) Relational Data Model

b) Interactive SQL and advanced SQL

c) PL/SQL programing

d) Database Security and Transaction Processing

Q.4 Attempt any THREE 3*4=12

a) Database System Concept

b) Interactive SQL and advanced SQL

c) PL/SQL programing

d) PL/SQL programing

e) Database Security and Transaction Processing

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 3 of 31


Q.5 Attempt any TWO 2*6=12
a) Database System Concept
b) Relational Data Model
c) Interactive SQL and advanced SQL
Q.6 Attempt any TWO 2*6=12
a) Relational Data Model

b) PL/SQL programing

c) Database Security and Transaction Processing

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 4 of 31


COURSE: Database Management System (22319)
PROGRAMME: Computer Technology
Syllabus:
Unit Course Outcome
Name of the Unit
No. (CO)
1 Database System Concept CO-319.01
2 Relational Data Model CO-319.02
3 Interactive SQL and advanced SQL CO-337.03

Q.1 Attempt any FOUR 4*2=8Marks Course Outcome


(CO)
a) Database System Concept CO-319.01
b) Relational Data Model CO-319.02
c) Database System Concept CO-319.01
d) Interactive SQL and advanced SQL CO-319.03
e) Interactive SQL and advanced SQL CO-319.03
f) Relational Data Model CO-319.02
g) Relational Data Model CO-319.02
Q.2 Attempt any THREE 3*4= 12Marks
a) Database System Concept CO-319.01
b) Database System Concept CO-319.01
c) Relational Data Model CO-319.02
d) Interactive SQL and advanced SQL CO-319.03
e) Relational Data Model CO-319.02
f) Interactive SQL and advanced SQL CO-319.03
g) Relational Data Model CO-319.02

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 5 of 31


COURSE: Database Management System (22319)
PROGRAMME: Computer Technology
Syllabus:
Unit Name of the Unit Course Outcome
No. (CO)
4 PL/SQL programing CO-319.04
5 Database Security and Transaction Processing CO-319.05

Q.1 Attempt any FOUR 4*2= 8Marks Course Outcome


(CO)

a) PL/SQL programing CO-319.04

b) Database Security and Transaction Processing CO-319.05


c) PL/SQL programing CO-319.04

d) Database Security and Transaction Processing CO-319.05


e) PL/SQL programing CO-319.04

Q.2 Attempt any THREE 3*4= 12Marks

a) PL/SQL programing CO-319.04

b) Database Security and Transaction Processing CO-319.05


c) PL/SQL programing CO-319.04

d) Database Security and Transaction Processing CO-319.05


e) PL/SQL programing CO-319.04

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 6 of 31


COURSE: Database Management System (22319)

PROGRAMME: Computer Technology

CO.NO Course Outcome

CO-319.1 Design Normalized database on given data.

CO-319.2 Create and manage database using SQL command.

CO-319.3 Write PL/SQL code for given database.

CO-319.4 Apply triggers on database also create procedure and function according to
condition.

CO-319.5 Apply security and confidentiality on given database.

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 7 of 31


1) Database System Concept
-----------------------------------------------------------------------------------------------------------
Position in Question Paper Total Marks: 12
Q.1 a) 2-Marks.
Q.2 a) 4-Marks.
Q.5 a) 6-Marks.

Descriptive Question
1] Define the following terms:

a) Data b) Database c) DBMS

2] List application of DBMS.

3] State four advantages of DBMS over file processing system.

4] Describe data abstraction with neat label diagram.

5] Draw the overall structure of DBMS.

6] Explain E-R diagram entity and weak entity set.

7] Draw ER diagram for library management system.

MCQ Question:
1. What is a foreign key?
a) A foreign key is a primary key of a relation which is an attribute in another relation
b) A foreign key is a superkey of a relation which is an attribute in more than one other
relation
c) A foreign key is an attribute of a relation that is a primary key of another
relation
d) A foreign key is the primary key of a relation that does not occur anywhere else in
the schema
2. A relational database consists of a collection of
a) Tables c) Records
b) Fields d) Keys
3. A ________ in a table represents a relationship among a set of values.
a) Column c) Row
b) Key d) Entry
Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 8 of 31
4. Student(ID, name, dept name, tot_cred) In this query which attributes form the primary
key?
a) Name c) Tot_cred
b) Dept d) ID
5. The _______operation performs a set union of two “similarly structured” tables
a) Union c) Product
b) Join d) Intersect
6. To remove a relation from an SQL database, we use the ______ command.
a) Delete c) Remove
b) Purge d) Drop table
7. SELECT name ____ instructor name, course id FROM instructor, teaches WHERE
instructor.ID= teaches.ID; Which keyword must be used here to rename the field name?
a) From c) As
b) Rename d) Join
8. SELECT * FROM employee WHERE dept_name="Comp Sci";
In the SQL given above there is an error. Identify the error.
a) Dept_name c) “Comp Sci”
b) Employee d) From
9. By default, the order by clause lists items in ______ order.
a) Descending c) Same
b) Any d) Ascending
10. In SQL the spaces at the end of the string are removed by _______ function.
a) Upper c) Trim
b) String d) Lower
11. Using the _______ clause retains only one copy of identical tuples
a) distinct c) no repeat
b) is not null d) from
12. E-R model uses this symbol to represent weak entity set ?
a) Dotted rectangle. c) Doubly outlined rectangle
b) Diamond d) None of these
13. Key to represent relationship between tables is called
a) Primary key c) Foreign Key
b) Secondary Key d) None of these
14. DBMS helps achieve _____.
a) Data independence b) Neither (A) nor (B)
c) Centralized control of data d) both (A) and (B)

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 9 of 31


15. DBMS Stand for ______.
a) Data base marginal system c) Data Base Management System
b) Directory Based Memory Standard d) Dual Bus Mask Storage
16. The language which has recently become the defacto standard for interfacing
application programs with relational database system is _________.
a) Oracle c) Dbase
b) SQL d) 4GL
17. In an E-R diagram attributes are represented by ________.
a) rectangle c) ellipse
b) square d) triangle
18. The statement in SQL which allows changing the definition of a table is
a) Alter c) Create
b) Update d) select
19. The full form of DDL is
a) Dynamic Data Language c) Data Definition Language
b) Detailed Data Language d) Data Derivation Language
20. Which of the following is an advantage of view?
a) Data security c) Hiding of complex queries
b) Derived columns d) All of the above
21. Which clause is used to remove a foreign key constraint?
a) REMOVE c) DROP
b) DELETE d) EXCLUDE
22. The property of InnoDB that enforces foreign key relationships stay intact is called ___.
a) atomicity c) consistency
b) durability d) referential integrity
23. Which keyword is used to specify the foreign key after the table is created?
a) SETUP c) ALTER TABLE
b) SET d) SPECIFY
24. Foreign keys cannot handle deletes and updates.
a) True b) False
25. Which key declares that an index in one table is related to that in another?
a) primary c) foreign
b) Secondary d) cross
26. The term _______ is used to refer to a row.
a) Attribute c) Field
b) Tuple d) Instance

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 10 of 31


27. For each attribute of a relation, there is a set of permitted values, called the ________ of
that attribute.
a) Domain c) Set
b) Relation d) Schema
28. Database __________ which is the logical design of the database, and the database
_______ which is a snapshot of the data in the database at a given instant in time.
a) Instance, Schema c) Relation, Domain
b) Relation, Schema d) Schema, Instance
29. A domain is atomic if elements of the domain are considered to be ____________ units.
a) Different c) Constant
b) Indivisible d) Divisible
30. The tuples of the relations can be of ________ order.
a) Any c) Sorted
b) Same d) Constant
31. Using which language can a user request information from a database?
a) Query c) Structural
b) Relational d) Compiler
32. Which one of the following is a procedural language?
a) Domain relational calculus c) Relational algebra
b) Tuple relational calculus d) Query language
33. The_____ operation allows the combining of two relations by merging pairs of tuples,
one from each relation, into a single tuple.
a) Select c) Union
b) Join d) Intersection
34. CREATE TABLE employee (name VARCHAR, id INTEGER) What type of
statement is this?
a) DML c) View
b) DDL d) Integrity constraint
35. 24. Foreign keys can handle deletes and updates.
a) True b) False
36. Using which language can a user request information from a database?
a) Query c) Structural
b) Relational d) Compiler

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 11 of 31


2) Relational Data Model
-----------------------------------------------------------------------------------------------------------
Position in Question Paper Total Marks: 18
Q.1 b) 2-Marks.
Q.1 c) 2-Marks.
Q.2 b) 4-Marks.
Q.4 c) 4-Marks.
Q.5 a) 6-Marks.

Descriptive Question
1] Describe following key:

a) Primary key b) Foreign key

2] List DCL commands with its use.

3] Give syntax and example of CREATE command.

4] Explain any four integrity constraints.

5] Explain the set operators of constraints.

6] Explain pattern matching operator „LIKE‟.

7] Explain Range Searching operator „BETWEEN‟.

8] Explain pattern matching operator „LIKE‟.

9] List and explain DDL commands with its use.

MCQ Question:
1. The statement in SQL which allows changing the definition of a table is
a) Alter c) Create
b) Update d) select
2. _____ operator is used for appending two strings.
a) & c) ||
b) % d) _
3. _____ clause is an additional filter that is applied to the result.
a) Select c) Having
b) Group-by d) Order by
Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 12 of 31
4. Which of the following is the syntax for views where v is view name?
a) Create view v as “query name”; c) Create view v as “query expression”;
b) Create “query expression” as view; d) Create view “query expression”;
5. Which of the following creates a virtual relation for storing the query?
a) Function c) Procedure
b) View d) None of the mentioned
6. Updating the value of the view
a) Will affect the relation from which it is defined
b) Will not change the view definition
c) Will not affect the relation from which it is defined
d) Cannot determine
7. Which of the following makes the transaction permanent in the database?
a) View c) Rollback
b) Commit d) Flashback
8. In order to undo the work of transaction after last commit which one should be used?
a) View c) Rollback
b) Commit d) Flashback
9. TRANSACTION.....
Commit;
ROLLBACK;
What does Rollback do?
a) Undoes the transactions before commit c) Redoes the transactions before commit
b) Clears all transactions d) No action
10. In order to maintain the consistency during transactions, database provides
a) Commit c) Flashback
b) Atomicity d) Retain
11. To include integrity constraint in an existing relation use:
a) Create table c) Alter table
b) Modify table d) Drop table
12. Which of the following is not an integrity constraint?
a) Not null c) Unique
b) Positive d) Check „predicate‟
13. Foreign key is the one in which the ________ of one relation is referenced in another
relation.
a) Foreign key c) References
b) Primary key d) Check constraint

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 13 of 31


14. The database administrator who authorizes all the new users, modifies the database and
takes grants privilege is
a) Super user c) Operator of operating system
b) Administrator d) All of the mentioned
15. A Delete command operates on ______ relation.
a) One c) Several
b) Two d) Null
16. Which one of the following deletes all the entries but keeps the structure of the relation.
a) Delete from r where P;
b) Delete from instructor where dept name= ‟Finance‟;
c) Delete from instructor where salary between 13000 and 15000;
d) Delete from instructor;
17. Which of the following is not a part of PL/SQL
a) Triggers c) Functions
b) Packages d) None of the mentioned
18. Updates that violate __________ are disallowed.
a) Integrity constraints c) Authorization
b) Transaction control d) DDL constraints
19. INSERT INTO instructor VALUES (10211, ‟Smith‟, ‟Biology‟, 66000);
What type of statement is this?
a) Query c) Relational
b) DML d) DDL
20. Using which language can a user request information from a database?
a) Query c) Structural
b) Relational d) Compiler
21. The result which operation contains all pairs of tuples from the two relations, regardless
of whether their attribute values match.
a) Join c) Intersection
b) Cartesian product d) Set difference
22. Which one of the following is used to define the structure of the relation, deleting
relations and relating schemas?
a) DML (Data Manipulation Language) c) Query
b) DDL (Data Definition Language) d) Relational Schema
23. Which one of the following provides the ability to query information from the database
and to insert tuples into, delete tuples from, and modify tuples in the database?
a) DML (Data Manipulation Lang.) b) DDL (Data Definition Language)

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 14 of 31


c) Query d) Relational Schema
24. SELECT * FROM employee ---- What type of statement is this?
a) DML c) DQL
b) DDL d) Integrity constraint
25. DELETE FROM r; //r – relation
This command performs which of the following action?
a) Remove relation c) Delete fields
b) Clear relation entries d) Delete rows
26. Updates that violate __________ are disallowed.
a) Integrity constraints c) Authorization
b) Transaction control d) DDL constraints
27. Which of the following is/are the DDL statements?
a) Create c) Alter
b) Drop d) All of the Mentioned
28. In SQL, which command(s) is(are) used to change a table‟s storage characteristics?
a) ALTER TABLE c) CHANGE TABLE
b) MODIFY TABLE d) All of the Mentioned
29. ________clause is an additional filter that is applied to the result.
a) Select c) Having
b) Group-by d) Order by
30. ___________ defines rules regarding the values allowed in columns and is the standard
mechanism for enforcing database integrity.
a) Column c) Index
b) Constraint d) Trigger
31. SQL has how many main commands for DDL:
a) 1 c) 3
b) 2 d) 4
32. Which command defines its columns, integrity constraint in create table:
a) Create command c) Alter table command
b) Drop table command d) All of the Mentioned
33. Which command is used for removing a table and all its data from the database:
a) Create command c) Alter table command
b) Drop table command d) All of the Mentioned
34. 10. Which command allows the removal of all rows from a table but flushes a table
more efficiently since no rollback information is retained:
a) TRUNCATE command b) Create command

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 15 of 31


c) Drop table command d) Alter table command
35. Which is the subset of SQL commands used to manipulate Database structures,
including tables?
a) Data Definition Language(DDL) c) DML and DDL
b) Data Manipulation Language(DML) d) None of the Mentioned
36. The language used application programs to request data from the DBMS is referred to
as __________
a) DML c) Query language
b) DDL d) All of the Mentioned
37. In SQL, which of the following is not a data Manipulation Language Commands?
a) Delete c) Update
b) Truncate d) Create
38. Which of the following is not a type of SQL statement?
a) Data Manipulation Language (DML) c) Data Control Language (DCL)
b) Data Definition Language (DDL) d) Data Communication Lang. (DCL)
39. Which of the following is not included in DML (Data Manipulation Language)
a) INSERT c) DELETE
b) UPDATE d) CREATE
40. TRUNCATE statement in SQL is a –
a) DML statement c) DCL statement
b) DDL statement d) TCL statement
41. In SQL, which command is used to add new rows to a table?
a) Alter Table c) Insert
b) Add row d) Append
42. Stack is also called __________
a) First In First Out (LIFO) c) First In Last Out (FILO)
b) Last In First Out (FIFO) d) First Come First Served (FCFS)
43. A table that displays data redundancies yields ____________ anomalies.
a) Update c) Deletion
b) Insertion d) All of the Mentioned
44. Which of the following is not a class of constraint in SQL Server?
a) NOT NULL c) NULL
b) CHECK d) UNIQUE
45. Which of the following constraint does not enforce uniqueness?
a) UNIQUE c) Foreign key
b) Primary key d) None of the mentioned

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 16 of 31


46. Constraints can be applied on ___________
a) Column c) Field
b) Table d) All of the mentioned
47. Which operator is used to compare a value to a specified list of values?
a) BETWEEN c) IN
b) ANY d) ALL
48. Which of the following are TCL commands?
a) COMMIT and ROLLBACK c) SELECT and INSERT
b) UPDATE and TRUNCATE d) GRANT and REVOKE
49. How many Primary keys can have in a table?
a) Only 1 c) Depends on no of Columns
b) Only 2 d) Depends on DBA
50. Which SQL keyword is used to retrieve a maximum value?
a) MOST c) MAX
b) TOP d) UPPER
51. Which SQL function is used to count the number of rows in a SQL query?
a) COUNT() c) SUM()
b) NUMBER() d) COUNT(*)
52. Which SQL statement is used to return only different values?
a) SELECT DIFFERENT c) SELECT DISTINCT
b) SELECT UNIQUE d) SELECT ALL
53. Which SQL keyword is used to sort the result-set?
a) ORDER BY c) ORDER
b) SORT d) SORT BY
54. The UNION SQL clause can be used with _____________
a) SELECT clause only c) UPDATE clause only
b) DELETE and UPDATE clauses d) All of the mentioned

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 17 of 31


3) Interactive SQL and advanced SQL
-----------------------------------------------------------------------------------------------------------
Position in Question Paper Total Marks: 14
Q.1 d) 2-Marks.
Q.2 c) 4-Marks.
Q.4 d) 4-Marks.
Q.5 c) 6-Marks.

Descriptive Question
1] Explain any four string functions with examples.
2] Explain “Group by” clause with suitable example.
3] Explain “Order by” clause with suitable example.
4] List aggregate functions in SQL.
5] Explain different functions in SQL
6] Explain views with example.
7] What is sequence? Why it is used? Create sequence for student table.
8] Explain index and list their types.
9] What are synonyms? How to create and drop synonyms?

MCQ Question:
1. In SQL the spaces at the end of the string are removed by _______ function.
a) Upper c) Trim
b) String d) Lower
2. _______ specifies a search condition for a group or an aggregate.
a) GROUP BY Clause c) FROM Clause
b) HAVING Clause d) WHERE Clause
3. _______ keyword is used to find the number of values in a column.
a) TOTAL c) ADD
b) COUNT d) SUM
4. By default, the order by clause lists items in ______ order.
a) Descending c) Same
b) Any d) Ascending

5. In SQL the spaces at the end of the string are removed by _______ function.
Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 18 of 31
a) Upper c) Trim
b) String d) Lower
6. Using the _______ clause retains only one copy of identical tuples
a) distinct c) no repeat
b) is not null d) from
7. The _______operation performs a set union of two “similarly structured” tables
a) Union c) Product
b) Join d) Intersect
8. ______________ function returns current date and time.
a) SET DATEFIRST c) Cert_ID
b) SYSDATETIME d) GETDATE
9. Which of the following function checks whether the expression is a valid date or not?
a) ISDATE c) ISVALID
b) ISDAY d) ISYEAR
10. Which of the following is not a mathematical function?
a) ATN2 c) PI
b) POWER d) CEIL
11. Built in Functions in SQL Server is categorized into how many categories?
a) 4 c) 6
b) 5 d) 7
12. Which SQL function is used to count the number of rows in a SQL query?
a) COUNT() c) SUM()
b) NUMBER() d) COUNT(*)
13. Which SQL keyword is used to retrieve a maximum value?
a) MOST c) MAX
b) TOP d) UPPER
14. A_____ is a query that retrieves rows from more than one table or view:
a) Start c) Join
b) End d) All of the mentioned
15. A condition is referred to as __________
a) Join in SQL c) Join in SQL & Condition
b) Join condition d) None of the mentioned
16. How many join types in join condition:
a) 2 c) 4
b) 3 d) 5
17. Which are the join types in join condition:

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 19 of 31


a) Cross join c) Join with USING clause
b) Natural join d) All of the mentioned
18. Which join refers to join records from the write table that have no matching key in the
left table are include in the result set:
a) Left outer join c) Full outer join
b) Right outer join d) Half outer join
19. Which operation are allowed in a join view:
a) UPDATE c) DELETE
b) INSERT d) All of the mentioned
20. SQL Server has mainly how many types of views?
a) one c) three
b) two d) four
21. Dynamic Management View is a type of ___________
a) System Defined Views c) Simple View
b) User Defined View d) Complex View
22. Syntax for creating views is __________
a) CREATE VIEW AS SELECT c) DROP VIEW AS SELECT
b) CREATE VIEW AS UPDATE d) CREATE VIEW AS UPDATE
23. You can delete a view with ___________ command.
a) DROP VIEW c) REMOVE VIEW
b) DELETE VIEW d) TRUNCATE VIEW
24. ___________ is stored only in the Master database.
a) DB-scoped Dynamic Mgt. View c) Catalog View
b) Complex View d) None of the mentioned
25. Aggregate functions are functions that take a ___________ as input and return a single
value.
a) Collection of values c) Double value
b) Single value d) All of the mentioned
26. Which of the following is not an aggregate function?
a) Avg c) With
b) Sum d) Min
27. If we do want to eliminate duplicates, we use the keyword __________in the aggregate
expression.
a) Distinct c) Avg
b) Count d) Primary key
28. All aggregate functions except __________ ignore null values in their input collection.

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 20 of 31


a) Count(attribute) c) Avg
b) Count(*) d) Sum
29. A Boolean data type that can take values true, false, and ____________
a) 1 c) Null
b) 0 d) Unknown
30. The phrase “greater than at least one” is represented in SQL by ___________
a) < all c) > all
b) < some d) > some
31. We can test for the nonexistence of tuples in a sub query by using the ________
construct.
a) Not exist c) Exists
b) Not exists d) Exist
32. Which column attribute provides unique numbers for identification?
a) AUTO_INCREMENT c) IDENTIFY
b) UNSIGNED d) DESCRIBE
33. There can be only one column per table with the AUTO_INCREMENT attribute.
a) True b) False
34. The AUTO_INCREMENT sequences normally begin at __________
a) 0 c) -1
b) 1 d) 2
35. The number of rows in the table is 10. Suppose all rows are deleted. The new row starts
with sequence number _____________
a) 11 c) 100
b) 1 d) 101
36. The expression „2 BETWEEN 2 AND 5‟ results in ____________
a) True c) -1
b) False d) 2
37. If an index is _________________ the metadata and statistics continue to exists
a) Disabling c) Altering
b) Dropping d) Both Disabling and Dropping
38. A collection of data designed to be used by different people is called a/an
a) Organization c) Relationship
b) Database d) Schema

39. Which of the following is the oldest database model?

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 21 of 31


a) Relational c) Physical
b) Deductive d) Network
40. Which of the following is an attribute that can uniquely identify a row in a table?
a) Secondary key c) Foreign key
b) Candidate key d) Alternate key
41. Which of the following terms does refer to the correctness and completeness of the data
in a database?
a) Data security c) Data independence
b) Data constraint d) Data integrity
42. The relationship between DEPARTMENT and EMPLOYEE is a
a) One-to-one relationship c) Many-to-many relationship
b) One-to-many relationship d) Many-to-one relationship

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 22 of 31


4) PL/SQL Programming
-----------------------------------------------------------------------------------------------------------
Position in Question Paper Total Marks: 16
Q.1 e) 2-Marks.
Q.2 d) 4-Marks.
Q.4 e) 4-Marks.
Q.6 b) 6-Marks.

Descriptive Question
1] Explain PL/SQL block structure.
2] State 4 advantages of PL/SQL.
3] Explain while loop in PL/SQL with examples.
4] Write a PL/SQL program to print numbers from 1 to 10 using for loop.
5] Explain GOTO statement with example.
6] Describe exception handling with example.
7] Define cursor. List the two type of cursor
8] Explain following with syntax:
a) Function b) Procedure
9] What is database triggers? How to create trigger?
10] Write PL/SQL program to calculate factorial of given numbers.

MCQ Questions:
1. In SQL the spaces at the end of the string are removed by _______ function.
a) Upper c) Trim
b) String d) Lower
2. Which of the following is not a part of PL/SQL
a) Triggers c) Functions
b) Packages d) None of the mentioned
3. A _________ is a statement that the system executes whenever a database is modified
a) Trigger c) Package
b) Function d) Protocol
4. Foreign key is the one in which the ________ of one relation is referenced in another
relation.
a) Foreign key b) Primary key
Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 23 of 31
c) References d) Check constraint
5. The database administrator who authorizes all the new users, modifies the database and
takes grants privilege is
a) Super user c) Operator of operating system
b) Administrator d) All of the mentioned
6. A __________ is a special kind of a store procedure that executes in response to certain
action on the table like insertion, deletion or updating of data.
a) Procedures c) Functions
b) Triggers d) None of the mentioned
7. Triggers are not supported in
a) Delete c) Views
b) Update d) All of the mentioned
8. The CREATE TRIGGER statement is used to create the trigger. THE _____ clause
specifies the table name on which the trigger is to be attached. The ______ specifies that
this is an AFTER INSERT trigger.
a) for insert, on c) For, insert
b) On, for insert d) None of the mentioned
9. A Delete command operates on ______ relation.
a) One c) Several
b) Two d) Null
10. Which of the following is not a part of PL/SQL
a) Triggers c) Functions
b) Packages d) None of the mentioned
11. A _________ is a statement that the system executes whenever a database is modified
a) Trigger c) Package
b) Function d) Protocol
12. Which keyword is used instead of the assignment operator to initialize variables?
a) NOT NULL c) %TYPE
b) DEFAULT d) %ROWTYPE
13. Which statements execute a sequence of statements multiple times?
a) EXIT c) Both A & B
b) LOOP d) None of the above

14. Which of the following returns all distinct rows selected by either query?
a) INTERSECT c) UNION
b) MINUS d) UNION ALL

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 24 of 31


15. Which statements are used to control a cursor variable?
a) OPEN-FOR c) CLOSE
b) FETCH d) All mentioned above
16. What is the maximum number of triggers that can apply to a single table?
a) 14 c) 12
b) 10 d) 16
17. The variables or expressions passed from the calling subprogram are -
a) Actual Parameters c) Both A & B
b) Formal Parameters d) None of the above
18. Subprograms are named PL/SQL blocks that can be called with a set of parameters.
a) True b) False
19. You can pass parameters to procedures or functions in a package.
a) True b) False
20. PL/SQL is a completely portable, high-performance transaction processing language.
a) True b) False
21. PL/SQL stored procedures move application code from the server to the client.
a) True b) False
22. How many types of literals are available in PL/SQL?
a) 6 c) 5
b) 2 d) 4
23. Which operator tests set membership?
a) IN Operator c) LIKE Operator
b) BETWEEN Operator d) IS NULL Operator
24. “NO_DATA_FOUND” and “TOO_MANY_ROWS” are the two most common errors
found when executing a SELECT statement.
a) True b) False
25. Which of the following returns the current value in a specified sequence.
a) CURRVAL c) Both A & B
b) NEXTVAL d) None of the above
26. Which operators combine the results of two queries into one result?
a) Set operator c) Both A & B
b) Row Operator d) None of the above

27. A recursive subprogram is one that calls itself.


a) True b) False

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 25 of 31


28. Which of the following provides a way for your program to select multiple rows of data
from the database and then process each row individually?
a) PL/SQL Cursors c) PL/SQL Select
b) PL/SQL Trigger d) PL/SQL Process
29. PL/SQL Exception message consists of -
a) Type of Exception c) A message
b) An Error Code d) All mentioned above
30. Which Exception is also known as Oracle named exception handler?
a) Predefined Exception c) User defined Exception
b) Internal Exception d) None of the above
31. Which statement lets you create standalone functions that are stored in an Oracle
database?
a) SQL CREATE PROCEDURE c) Both A & B
b) SQL CREATE FUNCTION d) None of the above
32. Which parameter acts like a constant inside the subprogram?
a) IN c) Both A & B
b) OUT d) None of the above
33. Which of the following is used to define code that is executed / fired when certain
actions or event occur?
a) Replace c) Trigger
b) Keyword d) Cursor
34. Which Operator Returns TRUE if a subquery returns at least one row?
a) EXISTS c) IS NULL
b) IN d) LIKE
35. How many attributes does every explicit cursor and cursor variable have?
a) 3 c) 4
b) 2 d) 5
36. Collection is an ordered group of elements, all of the same type.
a) True b) False
37. Arrays in other languages become varrays in PL/SQL.
a) True b) False
38. How many nested IF clauses can be included within an IF clause?
a) 1 c) 15
b) 0 d) Any number
39. PL/SQL stands for ____
a) Programming Language/SQL b) Procedural Language/SQL

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 26 of 31


c) Portable Language/SQL d) None of the above
40. Which of the following is used to input the entry and give the result in a variable in a
procedure?
a) Put and get c) Out and In
b) Get and put d) In and out
41. Temporary stored procedures are stored in _________ database.
a) Master c) User specific
b) Model d) Tempdb
42. A line of PL/SQL text contains groups of characters known as
a) Lexical Units c) Textual Units
b) Literals d) Identifiers
43. We use ______________ name PL/SQL program objects and units.
a) Lexical Units c) Delimiters
b) Literals d) Identifiers
44. If no header is specified, the block is said to be an _______________ PL/SQL block.
a) Strong c) Empty
b) Weak d) Anonymous
45. Triggers are supported in
a) Delete c) Views
b) Update d) All of the mentioned
46. The default extension for an Oracle SQL*Plus file is:
a) .txt c) .ora
b) .pls d) .sql
47. Which of the following is NOT an Oracle-supported trigger?
a) BEFORE c) AFTER
b) DURING d) INSTEAD OF
48. Triggers ________ enabled or disabled
a) Can be c) Ought to be
b) Cannot be d) Always

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 27 of 31


5) Database Security and Transaction Processing
-----------------------------------------------------------------------------------------------------------
Position in Question Paper Total Marks: 10
Q.1 f) 2-Marks.
Q.3 d) 4-Marks.
Q.4 c) 4-Marks.
Q.6 c) 6-Marks.
-----------------------------------------------------------------------------------------------------------
Descriptive Question:
1] What is the use of GRANT and REVOKE?
2] List types of DBMS users.
3] Explain properties of transaction.
4] Draw transaction state diagram.
5] Explain the Database security.
6] a) create user “Rahul”.
b) Grant create, select, insert, update privilege to „Rahul‟.
c) Remove the select privilege from user „Rahul‟.

MCQ Questions:
1. In order to maintain the consistency during transactions, database provides
a) Commit c) Flashback
b) Atomicity d) Retain
2. Which of the following makes the transaction permanent in the database?
a) View c) Rollback
b) Commit d) Flashback
3. In order to undo the work of transaction after last commit which one should be used?
a) View c) Rollback
b) Commit d) Flashback
4. TRANSACTION.....
Commit;
ROLLBACK;
What does Rollback do?
a) Undoes the transactions before commit
Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 28 of 31
b) Clears all transactions
c) Redoes the transactions before commit
d) No action
5. Which of the following is used to provide privilege to only a particular attribute?
a) Grant select on employee to Amit
b) Grant update(budget) on department to Raj
c) Grant update(budget,salary,Rate) on department to Raj
d) Grant delete to Amit
6. Which of the following statement is used to remove the privilege from the user Amir?
a) Remove update on department from Amir
b) Revoke update on employee from Amir
c) Delete select on department from Raj
d) Grant update on employee from Amir
7. If we wish to grant a privilege and to allow the recipient to pass the privilege on to other
users, we append the __________ clause to the appropriate grant command.
a) With grant c) Grant pass privilege
b) Grant user d) With grant option
8. The granting and revoking of roles by the user may cause some confusion when that user
role is revoked. To overcome the above situation
a) The privilege must be granted only by roles
b) The privilege is granted by roles and users
c) The user role cannot be removed once given
d) By restricting the user access to the roles
9. The database administrator who authorizes all the new users, modifies the database and
takes grants privilege is
a) Super user c) Operator of operating system
b) Administrator d) All of the mentioned
10. What is used for database security?
a) data encryption c) finger print
b) a view d) all of the above
11. Data security threats include:
a) privacy invasion c) fraudulent manipulation of data
b) hardware protection d) all of the above
12. What are ACID properties of Transactions?
a. Atomicity, Consistency, Isolation, Database
b. Atomicity, Consistency, Isolation, Durability
c. Atomicity, Consistency, Inconsistent, Durability
Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 29 of 31
d. Automatically, Concurrency, Isolation, Durability
13. Database locking concept is used to solve the problem of
a. Lost Update c. Inconsistent Data
b. Uncommitted Dependency d. All of the above
14. Which of the following is a property of transactions?
a) Atomicity c) Isolation
b) Durability d) All of the mentioned
15. Execution of translation in isolation preserves the _________ of a database
a) Atomicity c) Durability
b) Consistency d) All of the mentioned
16. Which of the following is not a property of a transaction?
a) Atomicity c) Isolation
b) Simplicity d) Durability
17. Which of the following systems is responsible for ensuring durability?
a) Recovery system c) Concurrency control system
b) Atomic system d) Compiler system
18. Which of the following systems is responsible for ensuring isolation?
a) Recovery system c) Concurrency control system
b) Atomic system d) Compiler system
19. Backing up your SQL Server database is essential for _______ your data.
a) Protecting c) Replication
b) Preventing d) None of the mentioned
20. Backup can occur while the database is in ___________ state.
a) Online c) Restoring
b) Offline d) All of the mentioned
21. Which of the following is not a type of backup?
a) Database backup c) Table backup
b) Data backup d) all of the mentioned
22. _________ backups represent the whole database at the time the backup finished.
a) copy-only backup c) Data backup
b) Database backup d) all of the mentioned
23. Which of the following backups contain transaction logs?
a) copy-only backup c) Data backup
b) Database backup d) None of the mentioned
24. A _________ consists of a sequence of query and/or update statements.
a) Transaction b) Commit

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 30 of 31


c) Rollback d) Flashback
25. Which of the following makes the transaction permanent in the database?
a) View c) Rollback
b) Commit d) Flashback
26. In order to undo the work of transaction after last commit which one should be used?
a) View c) Rollback
b) Commit d) Flashback
27. The recovery scheme must also provide
a) High availability c) High reliability
b) Low availability d) High durability
28. Which of the following is used to avoid cascading of authorizations from the user ?
a. Granted by current role
b. Revoke select on department from Amit, Satoshi restrict;
c. Revoke grant option for select on department from Amit;
d. Revoke select on department from Amit, Satoshi cascade;
29. If we wish to grant a privilege and to allow the recipient to pass the privilege on to other
users, we append the __________ clause to the appropriate grant command.
a) With grant c) Grant pass privelege
b) Grant user d) With grant option
30. Which of the following is used to avoid cascading of authorizations from the user?
a) Granted by current role
b) Revoke select on department from Amit, Satoshi restrict;
c) Revoke grant option for select on department from Amit;
d) Revoke select on department from Amit, Satoshi cascade;

Prepared By: Prof. R. S. Derle (Department of Computer Technology) Page 31 of 31

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy