Oracle 123

34
1. :new and :old cannot be used with statement level triggers in Oracle a )True** b)False c)NA d)NA 2. Whenever user issues insert, update or delete statement on the table Oracle implicitly locks the table in a)Row share mode b) Row Exclusive mode** c)share row exclusive mode d)No lock occurs implicitly. 3. Which one of the following is true with Object Types in Oracle? a) Once the object is created we cannot modify the attributes and methods of a type b) Once the object is created we cannot modify the attributes of a type but we can modify the methods of a type using alter type command. c)we can modify the attributes and methods of a type even if objects are created. . d)we can modify the attributes but we cannot modify the methods of a type once the object is created. 4. Which of the following situation in a PL/SQL block leads to too_many_rows exception. a)When any of the DML statement fetches more than one row from the table b) when select statement fetches more than one row from the table c) when select statement fetches more than one row from the table or cannot fetch any row from the table. d) a and c 5. Unique Index is implicitly created by oracle

Transcript of Oracle 123

Page 1: Oracle 123

1. :new and :old cannot be used with statement level triggers in Oraclea)True**b)Falsec)NAd)NA

2. Whenever user issues insert, update or delete statement on the table Oracle implicitly locks the table ina)Row share modeb)Row Exclusive mode**c)share row exclusive moded)No lock occurs implicitly. 3. Which one of the following is true with Object Types in Oracle?a) Once the object is created we cannot modify the attributes and methods of a typeb) Once the object is created we cannot modify the attributes of a type but we can modify the methods of a type using alter type command.c)we can modify the attributes and methods of a type even if objects are created. .d)we can modify the attributes but we cannot modify the methods of a type once the object is created.

4. Which of the following situation in a PL/SQL block leads to too_many_rows exception.a)When any of the DML statement fetches more than one row from the tableb) when select statement fetches more than one row from the tablec) when select statement fetches more than one row from the table or cannot fetch any row from the table.d) a and c

5. Unique Index is implicitly created by oraclea)whenever primary key constraint is imposed on a table column.*********b)whenever unique key constraint is imposed on a table column.c)both a) and b)d)Oracle does not create unique index implicitly.

6. Raise_application_error can have error code ranging froma)-20000 to -20999 **b)20000 to 20999c)any integer numberd)Only positive integer number

7. PGA is createda) whenever Oracle instance is createdb) whenever a user is connected to the oracle databasec) at the mount stage of oracle databased) none of the above

Page 2: Oracle 123

8. Each user has a separate SGA in the Oracle Server.a)TRUEb)FALSEc)NAd)NA

9. if checkpoint is not enabled which of the following process does the job of a checkpoint.a)DBWRb)LGWRc)SMONd)PMON

10. I want to store Employee number , Employee Photograph and Employee description (having data in MB's) in a table. Which of the following description is invalida)empno number(4),Photo LONG RAW, emp_descri CLOBb)empno number(4),Photo LONG RAW, emp_descri LONGc)empno number(4),Photo BLOB, emp_descri CLOBd)empno number(4),Photo BLOB, emp_descri LONG

11. What will be the output of the following program Set Serveroutput on; declare X number := NULL; Y number := NULL; begin if X=Y then dbms_output.put_line('Both are equal'); elsif X<>Y then dbms_output.put_line('Both are unequal'); else dbms_output.put_line('Unknown result'); end if; end;a) Both are equalb) Both are unequalc) Unknown result **d) Oracle throws the error message – ORA-02258 duplicate or conflicting NULL and/or NOT NULL specifications

Page 3: Oracle 123

12. Which of the following statement(s) is true about triggersa) Trigger can be associated with a specific database tableb) Row level triggers have access to the :new and :old recordsc) Triggers are fired automaticallyd) All of the above

13. Following is the sequence of queries executed via SQL PLUS on an ORACLE 8i database. (i) SET AUTOCOMMIT OFF; (ii) CREATE TABLE COUNTS (COL1 NUMBER); (iii) INSERT INTO COUNTS VALUES (5); (iv) ALTER TABLE COUNTS ADD (COL2 NUMBER); (v) ROLLBACK; (vi) COMMIT; After executing the above statements in order, which of the following statement is truea) After step (vi), the table COUNTS will have only COL1 and the value will be NULLb) After step (vi), the table COUNTS will have only COL1 and the value will be 5c) After step (vi), the table COUNTS will have NULL in both COL1 and COL2d) After step (vi), the table COUNTS will have value ‘5’ in COL1 and NULL in COL2

14. What will be the output of the following statement select last_day(sysdate) from dual;a) Current dayb) Last day of the current weekc) Last day of the current monthd) Last day of the current year

15. Which one of the below list is not a SQL *plus commanda) SPOOLb) STOP**c) EXITd) SAVE16. Which of the following statement is false a) PL/SQL table consists of homogeneous elements b) PL/SQL table is indexed by integers c) PL/SQL table is a multi-dimensional table ** d) None of the above

Page 4: Oracle 123

17. Which of the following stores character data a) CLOB ** b) BLOB c) BFILE d) None of the above

18.Consider table Temp1(B NUMBER(6),C NUMBER(6)) Values for B and C B C 6 6 7 7 8 8 What is the output of select rownum from Temp1 order by B desc; a) 6 7 8b) 8 7 6c) 1 2 3d) 3 2 1 **19. Maximum what size of binary data can be stored in BLOB datatype?a) 1 GBb) 2 MBc) 4 MBd) 4 GB **20. The memory structure that does not constitute the ORACLE instance isa) System global Areab) Dictionary Cachec) Redo Log Bufferd) None Of these **21. Primary key is implicitly indexeda) TRUE **b) FALSEc) NAd) NA22. Indexinga) Speedens Insertsb) Speedens updatesc) Reduces space requirementsd) Increases space requirements **

Page 5: Oracle 123

23. PGA is createda) whenever Oracle instance is created b) whenever a user is connected to the oracle databasec) at the mount stage of oracle databased) none of the above24. if checkpoint is not enabled which of the following process does the job of a checkpoint.a) DBWRb) LGWR **c) SMONd) PMON25. Which of the following statement is true?a) An extent consists of contiguous data blocksb) A segment may not consist of contiguous data blocks.c) A data block is the smallest unit of I/O used by the database.d) All of the above **

26. Oracle SELECT Query Performance can be enhanced by:a) Indexesb) Clustersc) Both a and b **d) None of the above

27. Stored Procedure cannot be called from :a) DatabaseTriggerb) Stored procedurec) Functiond) None of the above **

28. What kind of objects can you place in an Oracle packagea) Proceduresb) Functionsc) Both a and b **d) None of the above

29. When one user is waiting for data locked by another user, the situation is known as ___________.a) dirty readb) phantom recordc) deadlock **d) None of the above

Page 6: Oracle 123

30. The memory structure that does not constitute the ORACLE instance isa) Database Buffer Cacheb) Dictionary Cachec) Redo Log Bufferd) None of the above **

31. Which of the following statement is true?a) A table in Oracle 8i can have multiple LOB columnsb) A table in Oracle 8i can have only one LONG columnc) A table in Oracle 8i can have only one LOB columnd) Both a and b **

32. Which of the following query returns the current date a) select sysdate from dual where rownum = 0;b) select sysdate from dual where rownum = 1; **c) select sysdate from dual where rownum < 1;d) select sysdate from dual where rownum > 1;

33. An object table is a special kind of table that holds objects and provides a relational view of the attributes of those objectsa) True **b) Falsec) Not Applicabled) Not Applicable

34. Which Static data dictionary view describes the columns of tables, views and clusters owned by the current user?a) COLSb) USER_COLL_TYPESc) USER_CONS_COLUMNS d) USER_IND_COLUMNS

35. How do you drop a user (say Anil) from the database with all the objects/resources owned by him?a) DROP USER ANILb) DROP USER ANIL CASCADEc) First drop all the objects/resources individually owned by ANIL and then use ‘DROP USER ANIL’d) Both options (b) and (c) **

Page 7: Oracle 123

36. A Join condition involving an operator other than the equivalency is calleda) Non EquiJoin **b) EquiJoinc) OuterJoind) Inner Join

37. When an Oracle Database is started, memory is set aside and one or more processes are started in that memory, and that memory is called as System Global Area(SGA)a) True **b) Falsec) Not Applicabled) Not Applicable

38. Which of the following are background processes in an oracle instance?a) DataBase Writer(DBWR)b) Log Writer(LGWR)c) System Monitor(SMON)d) All the above **

39. EMPLOYEE table has the following dataEMP_ID EMP_SALARY EMP_COMM------- --------- --------8723 1230 2004357 2390 null9823 2000 1002737 2030 120What is the result of the following expressionselect sum(EMP_SALARY)+sum(EMP_COMM) from EMPLOYEEa) NULLb) 8070c) 420d) 7650

40. When a transaction reads an uncommitted data of other transaction, this will lead toa) Phantom readb) Dirty read **c) Lost updated) None of the above

Page 8: Oracle 123

41. A foreign key whose values are required to match the values of candidate key in the same table are calleda) composite keysb) self referencing keys **c) overlapping keysd) none of the above

42. Choose the correct answers to SELECT the list of values in column COL1 from 1 to 3 from a table X ( the table contains values like 1.2,2.3 etc.) a) select COL1 from X where COL1 between 1 and 3 **b) select COL1 from X where COL1 > 1 and COL1 < 3c) select COL1 from X where COL1 in (1,2,3)d) select COL1 from X where COL1 not <= 1 and not >= 3

43. :new and :old cannot be used with statement level triggers in Oraclea)True **b)Falsec)NAd)NA

44. Whenever user issues insert,update or delete statement on the table Oracle implicitly locks the table ina)Row share modeb)Row Exclusive mode **c)share row exclusive moded)No lock occurs implicitly. 45.In Oracle One control file is associated with only one database.a)true **b)falsec)NAd)NA

46. Which of the following situation in a PL/SQL block leads to too_many_rows exception.a)When any of the DML statement fetches more than one row from the tableb) when select statement fetches more than one row from the table **c) when select statement fetches more than one row from the table or cannot fetch any row from the table.d) a and c

Page 9: Oracle 123

47. Unique Index is implicitly created by oraclea)whenever primary key constraint is imposed on a table column. **b)whenever unique key constraint is imposed on a table column.c)both a) and b)d)Oracle does not create unique index implicitly.

48. Raise_application_error can have error code ranging froma)-20000 to -20999 */*b)20000 to 20999c)any integer numberd)Only positive integer number

49. PGA is createda) whenever Oracle instance is created b) whenever a user is connected to the oracle databasec) at the mount stage of oracle databased) none of the above

50. Each user has a separate SGA in the Oracle Server.a)TRUEb)FALSE **c)NAd)NA

51. Indexing a)Speedens Insertsb)Speedens updatesc)Reduces space requirementsd)Increases space requirements **

52. Can the function MAX be used on columns having DataType as Char? a)TRUE **b)FALSEc)NAd)NA

Page 10: Oracle 123

53. Assume you have a Database Table, which is used for storing historical Data. This table most of the time is used for reading data from it and generating reports. Will higher level of Normalization ( > 2 NF) would necessarily lead to better retrival of the data contained in the table?a)YESb)No **c)Not a valid optiond)Not a valid option

54. Indexes are mandatory to be created for every table.a)Trueb)False **c)Not a valid optiond)Not a valid option

55. which of the following is an aggregate functiona)SUM **b)ORDER BYc)HAVINGd)ASC

56.Which of the following options is correct?a)All types of views are updatable viewsb)A view is actually a stored query that is executed whenever it is referred in a SQL command. **c)A view cannot be created as a join on two or more tablesd)Views are updatable even when it uses aggregate functions

Page 11: Oracle 123

57. RDBMS is based upona)Predicate logicb)Relational Set theory **c)Object Oriented paradigmd)Graph theory

58. CREATE PROCEDURE TEMP ( A IN NUMBER, B OUT NUMBER) AS BEGIN BEGIN A:=1; B:=2; END; dbms_output.put_line('A'||'A'); dbms_output.put_line('B'||'B'); END; What are the values of A & B that will be displayeda) 1 and 2b) A is blank and B is 2c) A is 1 and B is blankd) Gives Error **

59. The output of the following query is: SELECT to_date('25-SEP-2002','mm/dd/yyyy') FROM dual; a) 09/25/2002b) 9/25/2002c) 25/9/2002d) Gives Error

60. Why are smaller size database transactions preferred as a design?a) Because it is easy to maintainb) Because the performance is betterc) Because there are less chance of hangs because of shortage of rollback segmentsd) Because partial failure in the longer ones would result in inconsistent results

61. A view gets updated automatically when a table gets updated in Oracle.a) True **b) Falsec) Ignore this optiond) Ignore this option

Page 12: Oracle 123

62. A table can contain more than one column having LONG data typea) Trueb) False **c) Ignore this optiond) Ignore this option

63. The database object that is used to provide improved performance in the retrieval of rows from a table isa) Synonymb) Index **c) Sequence d) Trigger

64. If there is no exception handler for the raised exception in the current block then1]The exception propagates to the enclosing block2]If there is no enclosing block then it propagates to the environmentfrom where the PL/SQL block is invokeda) only 1 is trueb) only 2 is truec) both 1 & 2 are true **d) both 1 & 2 are false

Page 13: Oracle 123

65. Consider the following PL/SQL block of code: DECLARE ex1 EXCEPTION; ... BEGIN ... DECLARE ... ... BEGIN ... RAISE ex1; ... EXCEPTION WHEN ex1 THEN ... END; ... ... EXCEPTION ... ... END;Supposed ex1 is raised, and handled. Then,a) Execution will resume in the inner block from the statement after the error-causing statementb) Execution will resume from the next executable statement after the end of the inner block **c) The entire program execution will terminated) Control is transferred to the exception section of the enclosing outer block66. declare v_result boolean; begin delete from sales where sales_id in(15,25,35); v_result:=SQL%ISOPEN; commit; end; what will be the the value of v_result if 3 rows are deleted ?a) 0b) 3c) trued) false **

Page 14: Oracle 123

67. Consider the following situation: Transaction1 has UPDATED row1 of table1 but has not committed as yet Transaction 2 wants to read(SELECT) the same rowWhich of the following statements is correct:a) Transaction 2 will be asked to wait till Transaction 1 releases the lock on row1b) Transaction 2 will be given an implicit Shared lock before it could SELECT row1c) Transaction 2 will be allowed to SELECT row1 reflecting values which is a result of the current update done by Transaction 1d) Transaction 2 will be allowed to SELECT row1 reflecting values which is aresult of some previous committed Transaction from the rollback segment. **

68. The data dictionary view which maintains the constraints imposed on the objects created by a user:a) constraints_usersb) constraint_namec) users_constraintd) user_constraints **

69. What is the error in the following code?DECLARE CURSOR empCursor IS SELECT Empno, Ename FROM Emp;BEGIN FOR empCurRec IN empCursor LOOP dbms_output.put_line(empCurRec.EmpNo); END LOOP;END;

a) Cursor is neither open nor closed, so there will be compilation errorb) There is no Fetching operation, so no record will be fetched, but the code will compile.c) NO_DATA_FOUND Exception will be raised.d) There is no error in the code. It will fetch all the records from the table and display the empnos. **

70. With respect to execution of the DDL commands in PL/SQL, which one of the following is true?a) You can execute DDL with EXECUTE IMMEDIATE syntax **b) You can execute DDL with EXECUTE DDL syntaxc) You can execute DDL with DYNAMIC EXECUTE syntaxd) You cannot use DDL in PL/SQL

Page 15: Oracle 123

71. Assume that there is a table called EMP with following columns - EMPNO, ENAME, ESAL without any primary key. What will be output if we execute the following SQL statement 5 times- Insert into EMP(EMPNO,ENAME,ESAL) values (NULL, NULL)a) The Query will return an error and won’t executeb) Only 1 record will be inserted with NULL stored in all the columnsc) Only 1 record is created and the system assigns some unique value to the EMPNO column automaticallyd) None of the above72. Indexing is needed fora) Faster insertion of datab) Faster updation of datac) Faster retrieval of data **d) Both a & b73.Consider the statements below I] IMS conforms to the Hierarchical model II] IDMS confirms to Network model III] DB2 confirms to Relational Modela) Only III is trueb) Only I and III are truec) Only II and III are true d) I, II,III are true **74. All candidate keys except primary key are foreign keys a) True b) False c) May be true in some cases **d) May be true if primary key is a composite key

75. Select Min(Sal) from emp where sal > (Select min(sal) from emp where sal > (select min(sal) from emp))a) ERRORb) Displays Third highest Sal from emp tablec) Displays Third lowest Sal from emp table **d) Displays Second highest Sal from emp table

76. Find the odd statement outa) A table may or may not have a primary key b) A table can have at-most one primary keyc) A table must have at-least one foreign key **d) A table might have more then one foreign key

Page 16: Oracle 123

77. In a relational table which of the following is mandatorya) Foreign Keyb) Primary Key **c) Candidate Keyd) None of the above

78. Identify the correct statementa) A relationship in 3NF can have partial dependencies in itb) A relationship in 3NF can have transitive dependencies in itc) A relationship in 2NF can have transitive dependencies in it **d) A relationship in 2NF can have partial dependencies in it

79. The correct way to get the next value of a sequence into a PL/SQL variable (assuming the sequence is already created) isa) iTest := seqTest.NEXTVALb) SELECT seqTest.NEXTVAL INTO iTest FROM DUAL **c) both (a) and (b)d) iTest := seqTest.CURRVAL

80. In the PL/SQL block given below, how many times will the loop be executed ?BEGIN FOR i in 1..50 LOOP i:=i+1; DBMS_OUTPUT.PUT_LINE(' Value of i is ' || i); END LOOP;END;a) 10 timesb) 25 timesc) Once d) There is an error in the code

81. Choose the correct answer with respect to the statements given belowI] Functions cannot have out parameter as they already have a return typeII] Functions cannot return more than one value by any means a) Only I is trueb) Both are false **c) only II is trued) Both are true

Page 17: Oracle 123

82. What will the following statement do? PRAGMA EXECEPTION_INIT(EX1,-20000)

a) will associate EX1 with -20000 **b) will raise the exception when encounters -20000c) can't assign -20000 as it is reserverd error code d) none of the above 83. To increase the size of the database, the following can be done

a) Increase the size of the datafileb) Add a new table space to the databasec) Add more data files to a table spaced) All of the above----

84. Choose the correct answer with respect to the statements given below

I] Non - Autonomous Triggers can have TCL statements II] :OLD and :NEW can be referenced only for row level triggerIII] Triggers can be called from a another procedure

a) only II is trueb) I and II is truec) only II and III are falsed) all the statements are false

85. PL/SQL is case sensitive

a) trueb) false----c) ignored) ignore

86. Only implicit cursors can take arguments while declaring them

a) trueb) false-----c) ignored) ignore

Page 18: Oracle 123

87. Which of the following statements is true?

a) Indexing mechanisms are used to speed up data access----b) SQL is a procedural languagec) The third normal form is the ideal normal formd) All of these

88. Identify the correct form of SELECT statement(s):

a) SELECT ... FROM ... WHERE ... GROUP BY ... HAVING ...ORDER BY---b) SELECT ... FROM ... WHERE ... GROUP BY ... ORDER BY ... HAVING c) SELECT ... FROM ... WHERE ... ORDER BY ... HAVING ...d) All of these

89. DESCRIBE <tablename> is a

a) SQL Commandb) SQL*Plus Command----c) PL/SQL Statementd) Ignore this option

90. A minimum 4 redo log files are required for an Oracle database

a) Trueb) False--c) Ignore this optiond) Ignore this option

91. A tablespace cannot belong to more than one database

a) True--b) Falsec) Ignore this optiond) Ignore this option

92. The structure(s) that will be used in database recovery is(are)

a) Redo log----b) All Tablesc) Parameter filed) All of the above

Page 19: Oracle 123

93. Which of the following is true?

a) The Oracle data dictionary resides in the SYSTEM tablespace.b) Part of the data dictionary will be held in the dictionary cache of SGA, when the instance is up and running.c) Users can write into the data dictionary directly.d) Both a and b options.-----

94. Following datatypes can store character data in Oracle:

a) CLOB b) LONGc) VARCHAR2d) All of the above-----

95. Consider:

CREATE TABLE t1 (n NUMBER,name VARCHAR2(20) CONSTRAINT c1 CHECK (name = UPPER(name)));

INSERT INTO t1 VALUES (1, 'Mary');

Which of the following is true?

a) The INSERT will happen. The INSERT converts Mary to upper case and stores b) The INSERT will fail due to constraint violation.------c) The INSERT will happen, but conversion of Mary will not happen. d) Ignore this option.

96. In Oracle, which operator is used to access the object referenced by a ref column?

a) VALUEb) REFc) DEREF-----d) None of the above

97. Consider two tables: Students(rollnum, name, age, sex) and MarksTab(rollnum, subject, marks). What is the problem with the following query:

SELECT name, rollnum, subject, marks FROM Students, MarksTab WHERE Students.rollnum = MarksTab.rollnum;

a) There is no problem, and the query runs fine.

Page 20: Oracle 123

b) This will result in an error because both the tables have rollnum field, and this will cause ambiguity.----c) The FROM clause in the query cannot have 2 tables.d) Both b and c options.

98. In Oracle, PRAGMA EXCEPTION_INIT can be used:

a) In a stored procedureb) In a stored functionc) In a packaged) All of the above----

99. Suppose the table emp contains the following data:

EMPNO SAL----- ---------- 10 1000 20 1200 30 1400 40 2000

Suppose you execute the following PL/SQL code:

DECLAREkount NUMBER; x NUMBER;BEGIN UPDATE empLOYEES SET sal=sal+100; SELECT COUNT(*) INTO kount FROM empLOYEES; x := SQL%ROWCOUNT; DBMS_OUTPUT.PUT_LINE('x='||x);END;

The value of x will be:

a) 4b) 1--c) 0d) SQL is undefined, so the PL/SQL code will not execute

Page 21: Oracle 123

100. A stored function in PL/SQL need not always have a RETURN statement

a) Trueb) False----c) Ignore this optiond) Ignore this option

-------------------------------------------------------------------------------------------------

1. The function that can be used to get the Oracle error code in PL/SQL is

a) PRAGMA EXCEPTION_INITb) GET_ERRORCODEc) SQLCODE*d) ORACLE_EXCEPTION

2. Consider the table emp(empno, name, emptype). The emptype column is a char field storing either 'T' or 'P'. ______________ is used in a query to give the output as 'Temporary' if the value is 'T' in table and 'Permanent' if the value in the table is 'P'.

a) NVLb) TO_CHARc) DECODE------*d) CONVERT

3. Consider the query "Select eno, ename from EMP where ename= null",what will be data fetched?a) 1, nullb) no rows fetched----*c) 1,"TOM"d) null, null

4. Matl_mast is a table having matl_code as a primary key. Matl_inventoryis another table which has matl_code and store_number as columns. Matl_mast has 100 rows and matl_inventory has 100000 rows out of which 100 rows contains the matl_code existing in the Matl_mast table.what would the following SQL return?"select store_number from matl_inventory where matl_code = (select matl_code from matl_mast);"

a) 100 rowsb) 100000 rowsc) Would give the error - " Single row subquery returns more than one row"------* -d) None of the above-

Page 22: Oracle 123

5. Oracle always opens a cursor to execute any select statementa) TRUE-----------*b) FALSEc) NAd) NA

6. Can we create a SYNONYM of a TRIGGERa) Yesb) NO-------*c) NAd) NA

7. CREATE PROCEDURE TEMP ( A IN NUMBER, B OUT NUMBER) AS BEGIN BEGIN A:=1; B:=2; END; dbms_output.put_line('A'||'A'); dbms_output.put_line('B'||'B'); END; What are the values of A & B will be displayeda) 1 and 2b) A is blank and B is 2c) A is 1 and B is blankd) Gives Error---------*

8. In case an error occurs in the execution of a Oracle stored procedure from a Java programa) SQLException is thrown and the oracle error code returnedb) SQLException is thrown and the JDBC error code is returned*c) IOException is generated as the database connection is lostd) No exception is returned but the program hangs

9. Which of the following convert the sqlj file to java class filea) sqlj runtimeb) sqlj translator=====*c) loadjava utilityd) none of the above

10. If I want to convert a Java method into Oracle subprogram, Which one of the following utility is useda) loadoracle b) dbms_lob c) loadjava*d) none of the above

Page 23: Oracle 123

11. Whenever an object referred by a REF column becomes unavailable, such ref is calleda) dangling ref----b) dereferencing refc) scoped refd) none of the above

12. Methods of an object type in Oracle can bea) member, static and comparison------b) member and comparison onlyc) member and static onlyd) member only

13. Which of the following data types in Oracle can be used to store graphics in the database.a) rawb) long rawc) blobd) all the above-----

14. By default members declared in the package specification in Oracle are a) privateb) public-----c) locald) depends on the type of declaration.

15. Assume a DB Table for maintaining Employee information with Employee Id as the primary key. Which of these queries will run faster?Query1 Select * from TBL_EMPLOYEE Where employee_name like '%xyz%' and employee_id > 10000; Query2 Select * from TBL_EMPLOYEE Where employee_id > 10000 and employee_name like '%xyz%'

a) Query1b) Query 2**c) Both will be equally fasterd) Depends on the indices that are created on this table.

16. What does sysdate - <Any other date in proper date format> give as output a) Hours between the twob) Days between the two----c) Month between the twod) Year between the two

Page 24: Oracle 123

17. Maximum what size of binary data can be stored in BLOB datatype?a)1 GBb)2 MB (CLOB 2GB)c)4 MBd)4 GB--------

18. Can the function MAX be used on columns having DataType as Char? a)TRUE---b)FALSEc)NAd)NA

19. Indexinga)Speedens Insertsb)Speedens updatesc)Reduces space requirementsd)Increases space requirements -----

20. Primary key is implicitly indexeda)TRUE----b)FALSEc)NAd)NA

21. The memory structure that does not constitute the ORACLE instance isa)System global Areab)Dictionary Cachec)Redo Log Bufferd)None Of these Option -----

22. Can creating a cluster for SelfJoin improve the performance?b)true--b)false--------------------c)NAd)NA

23. Consider table Temp1(B NUMBER(6),C NUMBER(6)) Values for B and C

B C6 6

Page 25: Oracle 123

7 7 8 8

What is the output of select rownum from Temp1 order by B desc;a) 6 7 8b) 8 7 6c) 1 2 3d) 3 2 1---

24. A table can contain more than one column having long data typea)TRUEb)FALSE--c)NAd)NA

25. A view gets updated automatically when a table gets updated?a) true--b) falsec) Ignore this optiond) Ignore this option

26. In Oracle One control file is associated with only one database .a)true------b)falsec)NAd)NA

27. In Oracle which one of the following information is not stored in control file.a)database nameb)current log sequence numberc)checkpoint informationd)parameter file name------

28. A Synonym in oracle databasea)occupies storage space to store the datab)doesnot occupy storage spacec)occupies storage space only to store the definition in the data dictionary------d)none of the above

Page 26: Oracle 123

29. A pl/sql variable can have following special character/s.a)$b)#c)_(underscore)d)all the above-----

30.A PL/SQL anonymous block can have nested blocksa)true----b)falsec)NAd)NA

31. the range of error numbers which we can use in raise_application_error isa) -20000 to -20999*b) 20000 to 20999c)-20001 to -20999d)-20001 to -20998

32. OTHERS Exception handler must be last among the exception handlers of a block a)true*b)falsec)NAd)NA

33. A member method in an oracle object can be invoked as a)typename.mehod()b)objectname.method()c)method()d)both a) and b) possible*

34. All the rows of a nested table are stored in a single table.a)trueb)false*c)NAd)NA

35.”Instead of triggers” can be writtena)on the tables and viewsb)only on the views*c)only on tablesd)none of the above

Page 27: Oracle 123

36. Partioning isa)splitting the single table data into different tablespacesb)splitting the single table index data into different tablespacesc)both a and b*d)none of the above

37. To transfer the data stored in a text file into Oracle Database which of the following utility is used.a)importb)exportc)sql*loaderd) both a) and c) are correct--**