Sunteți pe pagina 1din 3

|| Swami Shreeji || SHREE M. & N. VIRANI SCIENCE COLLEGE B.C.A - (Sem.

-4) (CBCS) PRILIM EXAM RDBMS USING ORACLE Date:- 31/03/2012 Marks:-70 Section A Q.1 Multiple Choice Questions 1. To Export/Import data of specific table, which mode should be used? (a) User mode (c) Dull Database Mode (b) Table mode (d) None of above 2. Which file is not created by SQL*Loader? (a) Bad file (c) Discard file (b) Tmp file (d) Log file 3. :OLD and :NEW are (a) Records in the table (c) Variables in the PL/SQL Block (b) Pseudo records for row level Trigger (d) None of above 4. All user Objects information can be displayed using: (a) Select * from USER_Objects; (c) Select * from USER_Information; (b) Select * from TAB; (d) select * from USER_CONSTRAINTS; 5. The Data Type that is not supported by oracle Table but PL/SQL is: (a) Boolean (c) varchar2 (b) Date (d) number 6. Which part of PL/SQL block is mandatory? (a) Declaration section (c) Execution section (b) Exception section (d) all of above. 7. When Index is not created, oracle retrieves rows: (a) By full table scan (c) By ROWID (b) By Heuristic Search Method (d) None of above 8. Synonym is an: (a) Alternative definition of object (c) Alternative copy of object (b) Alternative query of object (d) alternative name of object 9. SAVEPOINTS are useless after: (a) ROLLBACK (c) COMMIT (b) Both of above (d) none of the above 10.The Subquery may have nested subqueries inside it. (a) True (c) false (b) Nesting is illegal in subqueries (d) cannot say 11.The SQL statement select * from emp where exists(select * from emp where sal>1000 and sal<=1000) will return : (a) No rows (c) exactly one row (b) Multiple row (d) cannot say 12.Inner join returns: (a) Common Rows (c) Different Rows (b) Duplicate Rows (d) NULL rows 13.Two copies of the same table is created in memory if the join is: (a) Cross Join (c) Left Outer Join (b) Self Join (d) Full Outer Join 14.The GROUP BY clause is must when SELECT has: (a) Only aggregate columns (c) only non-aggregate columns (b) Aggregate & non-aggregate columns (d) none of above. 15.SQL%ISOPEN always Returns:

(a) TRUE (c) FALSE (b) NULL (d) Cannot say 16.Which loop can be written as either ENTRY CONTROL or EXIT CONTROL in oracle? (a) LOOP (c) WHILELOOP (b) FORLOOP (d) None of the above. 17.The default parameter mode is: (a) IN type (c) OUT type (b) IN OUT type (d) All of above 18.DISTINCE operator used to: (a) Remove duplicate columns (c) Remove duplicate rows (b) Remove duplicate tables (d) Remove duplicate constraints\ 19.In Explicit cursor, which statement is used to retrieve multiple records. (a) Select into statement (c) fetch into statement (b) Both of above (d) cannot say 20.Exception can be raised using: (a) RAISE statement (c) Raise_Application_Error() statement (b) Both of above (d) none of above SECTION II Q.2(a) Explain the following in Detail: (Any three) Marks] 1. 2. 3. 4. 5. 6. Data types in SQL. Difference between Row-level Trigger and Statement-level Trigger What is Snapshot? Explain oracle as an RDBMS. Explain substr() built in function Explain TO_DATE() function [9 [6

Q.2(b) Attempt the following in Detail: (Any three) Marks] 1. 2. 3. 4. 5. 6. Explain Set Operators in Oracle. Discuss VIEW. Discuss %TYPE and %ROWTYPE with example Explain Group by clause and Having clause Explain VARRAY with suitable example. Define blocks, segments and extents.

Q.2(c) Attempt the following in Detail: (Any two) [10 Marks] 1. Explain Trigger. 2. Define the term Cursor justify the need and use of explicit cursor in PL/SQL taking suitable example. 3. Explain Package with suitable example. 4. List and explain various TCL/DCL in Oracle. 5. What is JOIN? Explain its type with appropriate example.

Q.3(a) Attempt the following. (Any three) [6 Marks] 1. 2. 3. 4. 5. 6. Explain INSTR() What is Backup? List out the different strategies to backup the data. Explain cluster. Explain IN and NOT IN operator What is Synonyms? What is Normalization?

Q.3(b) Attempt the following (Any three) [ 9 Marks] 1. 2. 3. 4. 5. 6. Write a short note on NET8. Differentiate: Join Vs. Subquery Differentiate: SQL Vs. PL/SQL Write a short note on Database Link. Write a short note on Index. Explain Redo Logs in detail.

Q.3(c)Attempt the following(Any Two) [10 marks] 1. Explain SQL*LOADER. 2. What is stored procedure? Explain with example how stored procedure can be created and executed. 3. Explain Oracle Instance Architecture. 4. What is Data Constraint? State the available data constraint in SQL. 5. Write a PL/SQL Block to check whether the employee number is exist or not. If it is exist then update their salary with 5% of increment.

_____________

S-ar putea să vă placă și