Sie sind auf Seite 1von 27

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


a)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 from


a)-20000 to -20999 **
b)20000 to 20999
c)any integer number
d)Only positive integer number

7. PGA is created
a) whenever Oracle instance is created
b) whenever a user is connected to the oracle database
c) at the mount stage of oracle database
d) none of the above
8. Each user has a separate SGA in the Oracle Server.
a)TRUE
b)FALSE
c)NA
d)NA

9. if checkpoint is not enabled which of the following process does the job of a checkpoint.
a)DBWR
b)LGWR
c)SMON
d)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 invalid
a)empno number(4),Photo LONG RAW, emp_descri CLOB
b)empno number(4),Photo LONG RAW, emp_descri LONG
c)empno number(4),Photo BLOB, emp_descri CLOB
d)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 equal
b) Both are unequal
c) Unknown result **
d) Oracle throws the error message –
ORA-02258 duplicate or conflicting NULL and/or NOT NULL specifications
12. Which of the following statement(s) is true about triggers
a) Trigger can be associated with a specific database table
b) Row level triggers have access to the :new and :old records
c) Triggers are fired automatically
d) 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 true
a) After step (vi), the table COUNTS will have only COL1 and the value will be NULL
b) After step (vi), the table COUNTS will have only COL1 and the value will be 5
c) After step (vi), the table COUNTS will have NULL in both COL1 and COL2
d) 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 day
b) Last day of the current week
c) Last day of the current month
d) Last day of the current year

15. Which one of the below list is not a SQL *plus command
a) SPOOL
b) STOP**
c) EXIT
d) SAVE
16. 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


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 8
b) 8 7 6
c) 1 2 3
d) 3 2 1 **
19. Maximum what size of binary data can be stored in BLOB datatype?
a) 1 GB
b) 2 MB
c) 4 MB
d) 4 GB **
20. The memory structure that does not constitute the ORACLE instance is
a) System global Area
b) Dictionary Cache
c) Redo Log Buffer
d) None Of these **
21. Primary key is implicitly indexed
a) TRUE **
b) FALSE
c) NA
d) NA
22. Indexing
a) Speedens Inserts
b) Speedens updates
c) Reduces space requirements
d) Increases space requirements **
23. PGA is created
a) whenever Oracle instance is created
b) whenever a user is connected to the oracle database
c) at the mount stage of oracle database
d) none of the above
24. if checkpoint is not enabled which of the following process does the job of a checkpoint.
a) DBWR
b) LGWR **
c) SMON
d) PMON
25. Which of the following statement is true?
a) An extent consists of contiguous data blocks
b) 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) Indexes
b) Clusters
c) Both a and b **
d) None of the above

27. Stored Procedure cannot be called from :


a) DatabaseTrigger
b) Stored procedure
c) Function
d) None of the above **

28. What kind of objects can you place in an Oracle package


a) Procedures
b) Functions
c) 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 read
b) phantom record
c) deadlock **
d) None of the above
30. The memory structure that does not constitute the ORACLE instance is
a) Database Buffer Cache
b) Dictionary Cache
c) Redo Log Buffer
d) None of the above **

31. Which of the following statement is true?


a) A table in Oracle 8i can have multiple LOB columns
b) A table in Oracle 8i can have only one LONG column
c) A table in Oracle 8i can have only one LOB column
d) 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 objects
a) True **
b) False
c) Not Applicable
d) Not Applicable

34. Which Static data dictionary view describes the columns of tables, views and clusters owned
by the current user?
a) COLS
b) USER_COLL_TYPES
c) 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 ANIL
b) DROP USER ANIL CASCADE
c) First drop all the objects/resources individually owned by ANIL and then use ‘DROP USER
ANIL’
d) Both options (b) and (c) **
36. A Join condition involving an operator other than the equivalency is called
a) Non EquiJoin **
b) EquiJoin
c) OuterJoin
d) 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) False
c) Not Applicable
d) 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 data


EMP_ID EMP_SALARY EMP_COMM
------- --------- --------
8723 1230 200
4357 2390 null
9823 2000 100
2737 2030 120
What is the result of the following expression
select sum(EMP_SALARY)+sum(EMP_COMM) from EMPLOYEE
a) NULL
b) 8070
c) 420
d) 7650

40. When a transaction reads an uncommitted data of other transaction, this will lead to
a) Phantom read
b) Dirty read **
c) Lost update
d) None of the above
41. A foreign key whose values are required to match the values of candidate key in the same
table are called
a) composite keys
b) self referencing keys **
c) overlapping keys
d) 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 < 3
c) 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 Oracle
a)True **
b)False
c)NA
d)NA

44. 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.

45.In Oracle One control file is associated with only one database.
a)true **
b)false
c)NA
d)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 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
47. Unique Index is implicitly created by oracle
a)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 from


a)-20000 to -20999 */*
b)20000 to 20999
c)any integer number
d)Only positive integer number

49. PGA is created


a) whenever Oracle instance is created
b) whenever a user is connected to the oracle database
c) at the mount stage of oracle database
d) none of the above

50. Each user has a separate SGA in the Oracle Server.


a)TRUE
b)FALSE **
c)NA
d)NA

51. Indexing
a)Speedens Inserts
b)Speedens updates
c)Reduces space requirements
d)Increases space requirements **

52. Can the function MAX be used on columns having DataType as Char?
a)TRUE **
b)FALSE
c)NA
d)NA
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)YES
b)No **
c)Not a valid option
d)Not a valid option

54. Indexes are mandatory to be created for every table.


a)True
b)False **
c)Not a valid option
d)Not a valid option

55. which of the following is an aggregate function


a)SUM **
b)ORDER BY
c)HAVING
d)ASC

56.Which of the following options is correct?


a)All types of views are updatable views
b)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 tables
d)Views are updatable even when it uses aggregate functions
57. RDBMS is based upon
a)Predicate logic
b)Relational Set theory **
c)Object Oriented paradigm
d)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 displayed
a) 1 and 2
b) A is blank and B is 2
c) A is 1 and B is blank
d) Gives Error **

59. The output of the following query is:


SELECT to_date('25-SEP-2002','mm/dd/yyyy')
FROM dual;
a) 09/25/2002
b) 9/25/2002
c) 25/9/2002
d) Gives Error

60. Why are smaller size database transactions preferred as a design?


a) Because it is easy to maintain
b) Because the performance is better
c) Because there are less chance of hangs because of shortage of rollback segments
d) 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) False
c) Ignore this option
d) Ignore this option
62. A table can contain more than one column having LONG data type
a) True
b) False **
c) Ignore this option
d) Ignore this option

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

64. If there is no exception handler for the raised exception in the current block then
1]The exception propagates to the enclosing block
2]If there is no enclosing block then it propagates to the environment
from where the PL/SQL block is invoked
a) only 1 is true
b) only 2 is true
c) both 1 & 2 are true **
d) both 1 & 2 are false
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 statement
b) Execution will resume from the next executable statement after the end of the inner block **
c) The entire program execution will terminate
d) Control is transferred to the exception section of the enclosing outer block
66. 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) 0
b) 3
c) true
d) false **
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 row
Which of the following statements is correct:
a) Transaction 2 will be asked to wait till Transaction 1 releases the lock on row1
b) Transaction 2 will be given an implicit Shared lock before it could SELECT row1
c) Transaction 2 will be allowed to SELECT row1 reflecting values which is a result of the
current update done by Transaction 1
d) Transaction 2 will be allowed to SELECT row1 reflecting values which is a
result 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_users
b) constraint_name
c) users_constraint
d) 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 error


b) 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 syntax
c) You can execute DDL with DYNAMIC EXECUTE syntax
d) You cannot use DDL in PL/SQL
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 execute
b) Only 1 record will be inserted with NULL stored in all the columns
c) Only 1 record is created and the system assigns some unique value to the EMPNO column
automatically
d) None of the above
72. Indexing is needed for
a) Faster insertion of data
b) Faster updation of data
c) Faster retrieval of data **
d) Both a & b
73.Consider the statements below
I] IMS conforms to the Hierarchical model
II] IDMS confirms to Network model
III] DB2 confirms to Relational Model
a) Only III is true
b) Only I and III are true
c) 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) ERROR
b) Displays Third highest Sal from emp table
c) Displays Third lowest Sal from emp table **
d) Displays Second highest Sal from emp table

76. Find the odd statement out


a) A table may or may not have a primary key
b) A table can have at-most one primary key
c) A table must have at-least one foreign key **
d) A table might have more then one foreign key
77. In a relational table which of the following is mandatory
a) Foreign Key
b) Primary Key **
c) Candidate Key
d) None of the above

78. Identify the correct statement


a) A relationship in 3NF can have partial dependencies in it
b) A relationship in 3NF can have transitive dependencies in it
c) 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) is
a) iTest := seqTest.NEXTVAL
b) 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 times
b) 25 times
c) Once
d) There is an error in the code

81. Choose the correct answer with respect to the statements given below
I] Functions cannot have out parameter as they already have a return type
II] Functions cannot return more than one value by any means

a) Only I is true
b) Both are false **
c) only II is true
d) Both are true
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 -20000
c) 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 datafile


b) Add a new table space to the database
c) Add more data files to a table space
d) 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 trigger
III] Triggers can be called from a another procedure

a) only II is true
b) I and II is true
c) only II and III are false
d) all the statements are false

85. PL/SQL is case sensitive

a) true
b) false----
c) ignore
d) ignore

86. Only implicit cursors can take arguments while declaring them

a) true
b) false-----
c) ignore
d) ignore
87. Which of the following statements is true?

a) Indexing mechanisms are used to speed up data access----


b) SQL is a procedural language
c) The third normal form is the ideal normal form
d) 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 Command
b) SQL*Plus Command----
c) PL/SQL Statement
d) Ignore this option

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

a) True
b) False--
c) Ignore this option
d) Ignore this option

91. A tablespace cannot belong to more than one database

a) True--
b) False
c) Ignore this option
d) Ignore this option

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

a) Redo log----
b) All Tables
c) Parameter file
d) All of the above
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) LONG
c) VARCHAR2
d) 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) VALUE
b) REF
c) 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.


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 procedure
b) In a stored function
c) In a package
d) 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:

DECLARE
kount 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) 4
b) 1--
c) 0
d) SQL is undefined, so the PL/SQL code will not execute
100. A stored function in PL/SQL need not always have a RETURN statement

a) True
b) False----
c) Ignore this option
d) Ignore this option

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

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

a) PRAGMA EXCEPTION_INIT
b) GET_ERRORCODE
c) 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) NVL
b) TO_CHAR
c) DECODE------*
d) CONVERT

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

4. Matl_mast is a table having matl_code as a primary key. Matl_inventory


is 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 rows
b) 100000 rows
c) Would give the error - " Single row subquery returns more than one row"------* -
d) None of the above-
5. Oracle always opens a cursor to execute any select statement
a) TRUE-----------*
b) FALSE
c) NA
d) NA

6. Can we create a SYNONYM of a TRIGGER


a) Yes
b) NO-------*
c) NA
d) 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 displayed
a) 1 and 2
b) A is blank and B is 2
c) A is 1 and B is blank
d) Gives Error---------*

8. In case an error occurs in the execution of a Oracle stored


procedure from a Java program
a) SQLException is thrown and the oracle error code returned
b) SQLException is thrown and the JDBC error code is returned*
c) IOException is generated as the database connection is lost
d) No exception is returned but the program hangs

9. Which of the following convert the sqlj file to java class file
a) sqlj runtime
b) sqlj translator=====*
c) loadjava utility
d) none of the above

10. If I want to convert a Java method into Oracle subprogram, Which


one of the following utility is used
a) loadoracle
b) dbms_lob
c) loadjava*
d) none of the above
11. Whenever an object referred by a REF column becomes unavailable, such
ref is called
a) dangling ref----
b) dereferencing ref
c) scoped ref
d) none of the above

12. Methods of an object type in Oracle can be


a) member, static and comparison------
b) member and comparison only
c) member and static only
d) member only

13. Which of the following data types in Oracle can be used to store
graphics in the database.
a) raw
b) long raw
c) blob
d) all the above-----

14. By default members declared in the package specification in Oracle are


a) private
b) public-----
c) local
d) 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) Query1
b) Query 2**
c) Both will be equally faster
d) 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 two
b) Days between the two----
c) Month between the two
d) Year between the two
17. Maximum what size of binary data can be stored in BLOB datatype?
a)1 GB
b)2 MB (CLOB 2GB)
c)4 MB
d)4 GB--------

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

19. Indexing
a)Speedens Inserts
b)Speedens updates
c)Reduces space requirements
d)Increases space requirements -----

20. Primary key is implicitly indexed


a)TRUE----
b)FALSE
c)NA
d)NA

21. The memory structure that does not constitute the ORACLE instance is
a)System global Area
b)Dictionary Cache
c)Redo Log Buffer
d)None Of these Option -----

22. Can creating a cluster for SelfJoin improve the performance?


b)true--
b)false--------------------
c)NA
d)NA

23. 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 8
b) 8 7 6
c) 1 2 3
d) 3 2 1---

24. A table can contain more than one column having long data type
a)TRUE
b)FALSE--
c)NA
d)NA

25. A view gets updated automatically when a table gets updated?


a) true--
b) false
c) Ignore this option
d) Ignore this option

26. In Oracle One control file is associated with only one database .
a)true------
b)false
c)NA
d)NA

27. In Oracle which one of the following information is not stored in control file.
a)database name
b)current log sequence number
c)checkpoint information
d)parameter file name------

28. A Synonym in oracle database


a)occupies storage space to store the data
b)doesnot occupy storage space
c)occupies storage space only to store the definition in the data dictionary------
d)none of the above
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 blocks


a)true----
b)false
c)NA
d)NA

31. the range of error numbers which we can use in raise_application_error is


a) -20000 to -20999*
b) 20000 to 20999
c)-20001 to -20999
d)-20001 to -20998

32. OTHERS Exception handler must be last among the exception handlers of a block
a)true*
b)false
c)NA
d)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)true
b)false*
c)NA
d)NA

35.”Instead of triggers” can be written


a)on the tables and views
b)only on the views*
c)only on tables
d)none of the above
36. Partioning is
a)splitting the single table data into different tablespaces
b)splitting the single table index data into different tablespaces
c)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)import
b)export
c)sql*loader
d) both a) and c) are correct--**

Das könnte Ihnen auch gefallen