Bca - 305 (Old)
Bca - 305 (Old)
Bca - 305 (Old)
Section A
Answer the following (Attempt any two) (20)
1. Explain Codd's rules for relational database system?
2. What is PL /SQL? Explain block of PL /SQL.
3. Discuss the process of implementing triggers?
4. Explain primary key, Foreeign key, Super key and Composite key.
Section B
Answer the following (Attempt any three) (15)
1. Write short notes on: - SQL*Plus.
2. .What is the function of Oracle?
3. Write short notes on: - Interactive SQL
4. What is a stored procedure? Explain how to create a stored procedure with suitable
example?
5. What is deadlock? Explain how deadlock is recoverd.
Section C
Part – A (Multiple Choice Questions) (10)
1 What is the full form of SQL?
A Structured Query Language B Structured Query List
C Simple Query Language D None of the Mentioned
2 A relational algebra operation annotated with instructions on how to evaluate it is
called _______
A Evaluation algebra B Evaluation plan
C Evaluation primitive D Evaluation engine
3 Which of the following data types does the SQL standard not support?
A char(n) B String(n)
C varchar(n) D float(n)
4 The term attribute refers to a ___________ of a table.
A Record B Tuple
C Column D Key
5 Address field of a person should not be part of primary key, since it is likely to
A Dependent B Changed
C Not changed D Too long
6 By using which clause, the mode is OUT, so you cannot specify a parameter mode
for output bind arguments?
A USING Clause B RETURNING INTO Clause
C Both A & B D None of the above
7 Triggers are supported in
A Delete B Update
C Views D All of the mentioned
8 Life cycle of typical cursor involves ______ steps in SQL Server
A 2 B 3
C 4 D 5
9 In the PL/SQL block below, how many rows will be inserted in the messages table?
DECLARE
v_start_sales NUMBER := 2;
v_end_sales NUMBER := 100;
BEGIN
FOR i IN v_start_sales..v_end_sales LOOP
INSERT INTO messages(msgid)
VALUES v_start_sales;
END LOOP;
END;
A 0 B 99
C 1 D 100
10 What is the maximum number of ELSE clauses that can be included in an IF clause
that is not nested?:
A 1 B 0
C 15 D Any number
*****