Interview Fairy Home - good luck with your interviews Interview Fairy - Helping job applicants with their corporate interviews

Oracle

Industry:

From Yahoo! Finance:

Oracle Corporation is an enterprise software company that develops, manufactures, markets, distributes and services database software and infrastructure software, including application server, collaborative software and development tools that help its customers manage and grow their businesses and operations. The Company also offers a suite of business applications software. It is organized into two businesses, which are further organized into five operating segments. The software business consists of two operating segments: new software licenses and software license and product support. Oracle’s services business consists of three operating segments: consulting, advanced product services and education.

36 Responses to “Oracle”

munir went through a job interview and said:

pls. send me mail on interview question and answer

Shivani Shrivastava went through a job interview and said:

Shivani Shrivastava
Email: shrivastava.shivani@rediffmail.com
Tel: (952)935-2367

OBJECTIVE:

I am seeking an environment that offers challenging career and professional growth in Bio-informatics, to work for the concern and to grow with it.

SKILL SET:

Languages : C, C++, Java, Visual basic
Database : Oracle, MS Access, SQL server
Operating Systems : Windows 95/98/2000/XP, UNIX, MS-Dos

EDUCATION:
Bachelor in Computer Application (BCA) from Jiwaji University in India.
Pursuing Master of Computer Application (MCA) from SMU India.

PROJECT EXPERIENCE:

I have done projects on following as part of my academic requirements:

1st Project name: WCM (World Class Manufacturing), Hindalco
Location: Hindalco, India
Duration: 3 Months

2nd Project name: Asset Management, Hindalco
Location: Hindalco, India
Duration: 2 Months
About the Project:

Shivani Shrivastava went through a job interview and said:

I didn’t interview at Oracle.I am fresher n searching job in software field.I want to database field..

Shivani

Vasu went through a job interview and said:

1 Will service all doget , dopost or the reverse?
2 Why jsp is used if we have sevlets
3 Why cocoon? why not struts? what is cocoon?
4 Which loads driver classloader or JVM?
5 Which JDBC dirver are u using?
6 When the server is multi processor server?
7 What is webapplication?
8 What is web.xml?
9 What is translation unit in jsp?
10 What is TLD?
11 What is the use of having finally?
12 what is the superclass of an exception?
13 What is the diffrenence between AWT and Swing?
14 What is the difference between vector and Array?
15 What is the difference between static binding and dynamic binding?
16 What is the difference between SAX and DOM?
17 What is the difference between RequestDispatcher.forward(request req,response res)
And response.sencRedirect(”url”);?
18 What is the difference between JradioButton and Jradiobuttongroup.
19 What is the difference between HashTable and HashMap?
20 What is the difference between getActionCommand() And getSource() on event object?
21 What is the difference between checked exception an runtime exception?
22 What is synchronization?
23 What is synchronization? Why is it used? What are its disadvantages?
24 What is static variable? What is static method?
25 What is servlet chaining?
26 What is serialization? What are the methods in implementing serialization?
27 What is serialization? Any methods in serialization? What is externalization?
28 What is SAX?
29 What is ResultSetMetaData?
30 What is pooling of sevlets?
31 What is polymorphism? Types of polymorphism ? how will u achieve all types of polymorphism?
32 What is object ? what is instance? What is the difference between object and instance?
33 What is multithreading? What Is synchronized?
34 What is GridBagLayout?
35 What is event delegation model?describe it with an example?
36 What is encapsulation?
37 What is dynamic typing, static typing ?
38 What is dynamic binding? Can u explain with an example?
39 What is controller in your project?
40 What is context?

Praveen went through a job interview and said:

1. Tech + Aptitude written
2. Programming written ( main theme is to test our data structure knowledge, proficiency sorting searching
algorithms will clear this round )
3. Technical interview
4. Puzzle solving

Friends if u clear all this four rounds u are ready for ORACLE.

SQL AND SQL Plus

1. Which of the following statements contains an error?
a.. SELECT * FROM emp WHERE empid = 493945;
b. SELECT empid FROM emp WHERE empid= 493945;
c. SELECT empid FROM emp;
d. SELECT empid WHERE empid = 56949 AND lastname = ‘SMITH’;

2. Which of the following correctly describes how to specify a column alias?
a. Place the alias at the beginning of the statement to describe the table.
b. Place the alias after each column, separated by white space, to describe the column.
c. Place the alias after each column, separated by a comma, to describe the column.
d. Place the alias at the end of the statement to describe the table.

3. The NVL function
a. Assists in the distribution of output across multiple columns.
b. Allows the user to specify alternate output for non-null column values.
c. Allows the user to specify alternate output for null column values.
d Nullifies the value of the column output

4. Output from a table called PLAYS with two columns, PLAY_NAME and AUTHOR,is shown below.
Which of the following SQL statements produced it?

PLAY_TABLE
“Midsummer Night’s Dream”, SHAKESPEARE
“Waiting For Godot”, BECKETT
“The Glass Menagerie”, WILLIAMS

a SELECT play_name || author FROM plays;
b SELECT play_name, author FROM plays;
c SELECT play_name||’, ‘ || author FROM plays;
d SELECT play_name||’, ‘ || author PLAY_TABLE FROM plays;

5. Issuing the DEFINE_EDITOR=”emacs” will produce which outcome?
a. The emacs editor will become the SQL*Plus default text editor.
b. The emacs editor will start running immediately.
c. The emacs editor will no longer be used by SQL*Plus as the default text editor.
d. The emacs editor will be deleted from the system.

6. The user issues the following statement. What will be displayed if the EMPID selected is 60494?
SELECT DECODE(empid,38475, “Terminated”,60494, “LOA”, “ACTIVE”)FROM emp;
a. 60494
b. LOA
c. Terminatedd. ACTIVE

7. SELECT (TO_CHAR(NVL(SQRT(59483), “INVALID”)) FROM DUAL is a valid SQL statement.
a. TRUE
b. FALSE

8. The appropriate table to use when performing arithmetic calculations on values defined within the
SELECT statement (not pulled from a table column) is
a. EMP
b. The table containing the column values
c. DUALD. An Oracle-defined table

9. Which of the following is not a group function?
a. avg( )
c. sqrt( )
c. sum( )
d. max( )

10. Once defined, how long will a variable remain so in SQL*Plus?
a. Until the database is shut down
b. Until the instance is shut down
c. Until the statement completes
d. Until the session completes

11. The default character for specifying runtime variables in SELECT statements is
a. Ampersand
b. Ellipses
c. Quotation marks
d. Asterisk

12. A user is setting up a join operation between tables EMP and DEPT. There are some employees in the EMP table
that the user wants returned by the query, but the employees are not assigned to departments yet. Which SELECT
statement is most appropriate for this user?
a. select e.empid, d.head from emp e, dept d;
b. select e.empid, d.head from emp e, dept d where e.dept# = d.dept#;
c. select e.empid, d.head from emp e, dept d where e.dept# = d.dept# (+);
d. select e.empid, d.head from emp e, dept d where e.dept# (+) = d.dept#;

13. Developer ANJU executes the following statement: CREATE TABLE animals AS SELECT * from
MASTER.ANIMALS; What is the effect of this statement?
a. A table named ANIMALS will be created in the MASTER schema with the same data as the ANIMALS
table owned by ANJU
b. A table named ANJU will be created in the ANIMALS schema with the same data as the ANIMALS
table owned by MASTER
c. A table named ANIMALS will be created in the ANJU schema with the same data as the ANIMALS
table owned by MASTER.
d. A table named MASTER will be created in the ANIMALS schema with the same data as the ANJU
table owned by ANIMALS.

14. User JANKO would like to insert a row into the EMPLOYEE table, which has three columns: EMPID,
LASTNAME, and SALARY. The user would like to enter data for EMPID 59694, LASTNAME Harris,
but no salary. Which statement would work best?
a. INSERT INTO employee VALUES (59694,’HARRIS’, NULL);
b. INSERT INTO employee VALUES (59694,’HARRIS’);
c. INSERT INTO employee (EMPID, LASTNAME, SALARY) VALUES (59694,’HARRIS’);
d. INSERT INTO employee (SELECT 59694 FROM ‘HARRIS’);

15. Which three of the following are valid database datatypes in Oracle? (Choose three.)
a. CHAR
b. VARCHAR2
c. BOOLEAN
d. NUMBER

16. Omitting the WHERE clause from a DELETE statement has which of the following effects?
a. The delete statement will fail because there are no records to delete.
b. The delete statement will prompt the user to enter criteria for the deletion
c. The delete statement will fail because of syntax error.
d. The delete statement will remove all records from the table.

17. Creating a foreign-key constraint between columns of two tables defined with two different datatypes will
produce an error.
a. TRUE
b. FALSE

18. Dropping a table has which of the following effects on a nonunique index created for the table?
a. No effect.
b. The index will be dropped.
c. The index will be rendered invalid.
d. The index will contain NULL values.

19. To increase the number of nullable columns for a table,
a. Use the alter table statement.
b. Ensure that all column values are NULL for all rows.
c. First increase the size of adjacent column datatypes, then add the column.
d. Add the column, populate the column, then add the NOT NULL constraint.

20. Which line of the following statement will produce an error?
a. CREATE TABLE goods
b. (good_no NUMBER,
c. good_name VARCHAR2 check(good_name in (SELECT name FROM avail_goods)),
d. CONSTRAINT pk_goods_01
e. PRIMARY KEY (goodno));
f. There are no errors in this statement.

21. MAXVALUE is a valid parameter for sequence creation.
a. TRUE
b. FALSE

22. Which of the following lines in the SELECT statement below contain an error?
a SELECT DECODE(empid, 58385, “INACTIVE”, “ACTIVE”) empid
b. FROM emp
c. WHERE SUBSTR(lastname,1,1) > TO_NUMBER(’S')
d. AND empid > 02000
e. ORDER BY empid DESC, lastname ASC;
f. There are no errors in this statement.

23. Which function below can best be categorized as similar in function to an IF-THEN-ELSE statement?
a. SQRT
b. DECODE
c. NEW_TIME
d. ROWIDTOCHAR

24. Which two of the following orders are used in ORDER BY clauses? (choose two)
a. ABS
b. ASC
c. DESC
d. DISC

26. Which of the following statements is true about implicit cursors?
a. Implicit cursors are used for SQL statements that are not named.
b. Developers should use implicit cursors with great care.
c. Implicit cursors are used in cursor for loops to handle data processing.
d. Implicit cursors are no longer a feature in Oracle.

27. Which of the following is not a feature of a cursor FOR loop?
a. Record type declaration.
b. Opening and parsing of SQL statements.
c. Fetches records from cursor.
d. Requires exit condition to be defined.

28. A developer would like to use referential datatype declaration on a variable. The variable name is
EMPLOYEE_LASTNAME, and the corresponding table and column is EMPLOYEE, and LNAME,
respectively. How would the developer define this variable using referential datatypes?
a. Use employee.lname%type.
b. Use employee.lname%rowtype.
c. Look up datatype for EMPLOYEE column on LASTNAME table and use that.
d. Declare it to be type LONG.

29. Which three of the following are implicit cursor attributes?
a. %found
b. %too_many_rows
c. %notfound
d. %rowcount
e. %rowtype

30. If left out, which of the following would cause an infinite loop to occur in a simple loop?
a. LOOP
b. END LOOP
c. IF-THEN
d. EXIT

31. Which line in the following statement will produce an error?
a. cursor action_cursor is
b. select name, rate, action
c. into action_record
d. from action_table;
e. There are no errors in this statement.

32. The command used to open a CURSOR FOR loop is
a. open
b. fetch
c. parse
d. None, cursor for loops handle cursor opening implicitly.

33. What happens when rows are found using a FETCH statement
a. It causes the cursor to close
b. It causes the cursor to open
c. It loads the current row values into variables
d. It creates the variables to hold the current row values

34. CREATE OR REPLACE PROCEDURE find_cpt (v_movie_id {ArgumentMode}NUMBER,
v_cost_per_ticket {argument mode} NUMBER)IS
BEGIN
IF v_cost_per_ticket > 8.5 THEN
SELECT cost_per_ticket
INTO v_cost_per_ticket
FROM gross_receipt
WHERE movie_id = v_movie_id;
END IF;
END;
Which mode should be used for V_COST_PER_TICKET?
a. IN
b. OUT
c. RETURN
d. IN OUT

35. CREATE OR REPLACE TRIGGER update_show_gross {trigger information}
BEGIN
{additional code}
END;
The trigger code should only execute when the column, COST_PER_TICKET, is greater than $3.75. Which
trigger information will you add?
a. WHEN (new.cost_per_ticket > 3.75)
b. WHEN (:new.cost_per_ticket > 3.75
c. WHERE (new.cost_per_ticket > 3.75)
d. WHERE (:new.cost_per_ticket > 3.75)

36. What is the maximum number of handlers processed before the PL/SQL block is exited when an exception
occurs?
a. Only one
b. All that apply
c. All referenced
d. None

37. For which trigger timing can you reference the NEW and OLD qualifiers?
a. Statement and Row
b. Statement only
c. Row only
d. Oracle Forms trigger

38. CREATE OR REPLACE FUNCTION get_budget(v_studio_id IN NUMBER) RETURN number
ISv_yearly_budget NUMBER;
BEGIN
SELECT yearly_budget
INTO v_yearly_budget
FROM studio
WHERE id = v_studio_id;
RETURN v_yearly_budget;
END;
Which set of statements will successfully invoke this function within SQL*Plus?
a VARIABLE g_yearly_budget NUMBER EXECUTE g_yearly_budget := GET_BUDGET(11);
b. VARIABLE g_yearly_budget NUMBER EXECUTE :g_yearly_budget := GET_BUDGET(11);
c. VARIABLE :g_yearly_budget NUMBER EXECUTE :g_yearly_budget := GET_BUDGET(11);
d. VARIABLE g_yearly_budget NUMBER :g_yearly_budget := GET_BUDGET(11);

39.CREATE OR REPLACE PROCEDURE update_theater (v_name IN VARCHAR2, v_theater_id IN
NUMBER) IS
BEGIN
UPDATE theater
SET name = v_name
WHERE id = v_theater_id;
END update_theater;
When invoking this procedure, you encounter the error: ORA-00001: Unique constraint
(SCOTT.THEATER_NAME_UK) violated.How should you modify the function to handle this error?
a. An user defined exception must be declared and associated with the error code and handled in the
EXCEPTION section.
b. Handle the error in EXCEPTION section by referencing the error code directly.
c. Handle the error in the EXCEPTION section by referencing the UNIQUE_ERROR predefined
exception.
d. Check for success by checking the value of SQL%FOUND immediately after the UPDATE statement.

40.CREATE OR REPLACE PROCEDURE calculate_budget IS v_budget studio.yearly_budget%TYPE;
BEGIN
v_budget := get_budget(11);
IF v_budget

Adjit went through a job interview and said:

1. How compiler treats variables of recursive functions
2. What is orthogonal matrix?
3. Given two tables and asked 2 qns on those table ,
4 One is on join and another is on NOT IN
5. Given some qns on pointers( pretty easy)
6. Given five qns on data structures like , lifo, fifo
7. Qtn on primary key
8. How NULL in sql is treated?
9. Given a doubly linked list and asked r->left->right->data ans: r->data
10: Explain const char *ptr and char *const ptr
11 Remaining i didn`t remember

Technical

1. What is the output of the following program?
#include
void main( )
{
int a=5,b=7;
printf
A. 1.4
B. 1.0
C. 1
D. 0

2. What is the output of the following program listing?
#include
void main ( )
{
int x,y:
y=5;
x=func(y++);
(x==5)true false);
}
int func(int z)
{ if (z== 6)
return 5;
else
return 6;}
A True
B false
C either a or b
D neither a nor b

3. What is the output of the following progarm?
#include
main( )
{ int x,y=10;
x=4;
y=fact(x);
printf(?%d\n?,y);
}
unsigned int fact(int x)
{ return(x*fact(x-1));}
A. 24
B. 10
C. 4
D. none

4. Consider the following C program and chose collect answer
#include
void main( )
{
inta[10],k;
for(k=0;k
void main ( )
{
int k=4,j=0:
switch (k)
{ case 3: j=300;
case 4: j=400:
case 5: j=500;
}
printf (?%d\n?,j);
}
A. 300
B. 400
C. 500
D. 0

6. Consider the following statements:
Statement 1 A union is an object consisting of a sequence of named members of various types
Statement 2 A structure is a object that contains at different times, any one of the several members of
various types
Statement 3: C is a compiled as well as an interpretted language
Statement 4: It is impossible to declare a structure or union containing an instance of itself
A. all the statements are correct
B. except 4 all are correct
C. statemnt 3 is only correct
D. statement 1,3 are incorrect either 2 or 4 is correct

7. consider the following program listing and select the output
#include
main ( )
{
int a=010,sum=0,tracker:
for(tracker=0;tracker
Line 2: void main()
Line 3: {
4 : int *pia,ia;
5 :float *pafa,fa;
6 :ia=100;
7 :fa=12.05;
8 :*pfa=&ia;
9 :pfa=&ia;
10 :pia=pfa;
11 :fa=(float)*pia;
12 :fa=ia;
13 :}
a. 8 and 9
b. 9 and 10
c. 8 and 10
d. 10 and 11

8. What is the o/p of the follow pgm?
#include
main()
{
char char_arr[5]=?ORACL?;
char c=?E?;
prinf(?%s\n?,strcat(char_arr,c));
}
a:oracle
b. oracl
c.e
d.none
9. consider the following pgm listing
#include
main()
{
int a[3];
int *I;
a[0]=100;a[1]=200;a[2]=300;
I=a;
}
what is the o/p
a. 101,200,200,199
b. 200,201,201,100
c. 101,200,199,199
d. 200,300,200,100
10. which of the following correctly declares ?My_var? as a pointer to a function that returns an integer
a. int*My_Var();
b. int*(My_Var());
c. int(*)My_Var();
d. int(*My_Var)();

11. what is the memory structure employed by recursive functions in a C pgm?
a. B tree
b. Hash table
c. Circular list
d. Stack

12. Consider the follow pgm listing?
Line 1: #include
2: void main()
3: {
4: int a=1;
5: const int c=2;
6: const int *p1=&c;
7: const int*p2=&a;
8: int *p3=&c;
9: int*p4=&a;
10:}what are the lines that cause compilation errors?
a.7
b.8
c.6 and 7
d.no errors
13. what will be the o/p
#include
main()
{
inta[3];
int *x;
int*y;
a[0]=0;a[1]=1;a[2]=2;
x=a++;
y=a;
printf(?%d %d\n?, x,(++y));
}
a. 0,1
b. 1,1
c. error
d. 1,2
what is the procedure for swapping a,b(assume that a,b and tmp are of the same type?
a. tmp=a; a=b;b=temp;
b. a=a+b;b=a-b;a=a-b;
c. a=a-b;b=a+b;a=b-a;
d. all of the above

Campus Interview Conducted in Surathkal on 11th July -2003

Test was of 1 hour 30 questions. g aptitude and 30 of technical…….some questions. of g aptitude were very
lengthy so don’t end up in solving them…..time was less……some 15 questions. from arithmetic……and rest 15
logical,statement interpretation,arrangement,tense correction……and like that……

1. Given a square matrix which consists only of 1 and 0……find which rows,which cols and which diagonals
consist entirely of 1’s.

2. Given an array of integers find all possible combinations of the numbers whose sum equal to 90…..
ans : knapsack problem (in data structures - aho ullman)

Note : for them solution was not the criteria…….but the approach was important……the solution should
be generalised and optimized……..optimization was given the top priority……..

Techincal paper

1. const int MAX=10;
main()
{
enum a {a,b,MAX};
print MAX;
}
ans. 2

2. enum variable is a const variable which can only be assigned a value at initialization or a non const variable which
can be assigned any value in the middle of the program?
ans. const variable

3. void *p; what operation cannot be performed on p?
ans : arithmetic operation unless it is properly typecasted
4. char **p=”Hello”;
print p,*p,**p
ans. Hello (null)
warning: suspicious pointer conversion

5. main()
{
char str[]=”Geneius”;
print (str);
}
print(char *s)
{ if(*s)
print(++s);
printf(”%c”,*s);
}
ans. suiene

6. what does the function fcloseall() does ?
ans. fcloseall() closes all open streams except stdin,stdout,stderr,stdprn and stdaux

7. main()
{
printf(”Genius %d”,fun(123));
}
fun(int n)
{
return (printf(”%d”,n));
}
ans. 123genius3

8. difference between definition and declaration. ans. definition once while declaration more than once

9. find the error?
main()
{ void fun();
fun();
}
void fun()
{
int i=10;
if(i

Ajay went through a job interview and said:

Oracle DBA Questions

1. SNAPSHOT is used for [DBA]
a. Synonym, b. Table space, c System server, d Dynamic data replication

Ans : D

2. We can create SNAPSHOTLOG for[DBA]
a. Simple snapshots, b. Complex snapshots, c. Both A & B, d Neither A nor B
Ans : A
3. Transactions per rollback segment is derived from[DBA]
a. Db_Block_Buffers, b. Processes, c. Shared_Pool_Size, d. None of the above

Ans : B

4. ENQUEUE resources parameter information is derived from[DBA]
a. Processes or DDL_LOCKS and DML_LOCKS, b. LOG_BUFFER,
c. DB__BLOCK_SIZE..

Ans : A

5. LGWR process writes information into
a Database files, b Control files, c Redolog files, d All the above.

Ans : C

6. SET TRANSACTION USE ROLLBACK SEGMENT is used to create user
objects in a particular Tablespace
a True, b False
Ans : False

7. Databases overall structure is maintained in a file called
a Redolog file, b Data file, c Control file, d All of the above.

Ans : C

8. These following parameters are optional in init.ora parameter file DB_BLOCK_SIZE, PROCESSES
a True, b False
Ans : False

9. Constraints cannot be exported through EXPORT command
a True, b False
Ans : False

10. It is very difficult to grant and manage common privileges needed by different groups of database users
using the roles
a True, b False
Ans : False

11. What is difference between a DIALOG WINDOW and a DOCUMENT WINDOW regarding
moving the window with respect to the application window
a Both windows behave the same way as far as moving the window is concerned.
b A document window can be moved outside the application window while a dialog window
cannot be moved
c A dialog window can be moved outside the application window while a document window
cannot be moved

Ans : C

12 . What is the difference between a MESSAGEBOX and an ALERT
a A messagebox can be used only by the system and cannot be used in user application while an
alert can be used in user application also.
b A alert can be used only by the system and cannot be use din user application while an messagebox
can be used in user application also.
c An alert requires an response from the userwhile a messagebox just flashes a message
and only requires an acknowledment from the user
d An message box requires an response from the userwhile a alert just flashes a message an only
requires an acknowledment from the user

Ans : C

13. Which of the following is not an reason for the fact that most of the processing is done at the server ?

a To reduce network traffic. b For application sharing, c To implement business rules centrally,
d None of the above

Ans : D

14. Can a DIALOG WINDOW have scroll bar attached to it ?

a Yes, b No
Ans : B

15. Which of the following is not an advantage of GUI systems ?

a. Intuitive and easy to use., b. GUI’s can display multiple applications in multiple windows
c. GUI’s provide more user interface objects for a developer d. None of the above

Ans :D

16. What is the difference between a LIST BOX and a COMBO BOX ?

a In the list box, the user is restricted to selecting a value from a list but in a combo box the user can
type in value which is not in the list
b A list box is a data entry area while a combo box can be used only for control purposes
c In a combo box, the user is restricted to selecting a value from a list but in a list box the
user can type in a value which is not in the list
d None of the above

Ans : A

17. In a CLIENT/SERVER environment , which of the following would not be done at the client ?

a User interface part, b Data validation at entry line,
c Responding to user events,
d None of the above

Ans : D

18. Why is it better to use an INTEGRITY CONSTRAINT to validate data in a table than to use a STORED
PROCEDURE ?

a Because an integrity constraint is automatically checked while data is inserted into or updated in a table
while a stored procedure has to be specifically invoked
b Because the stored procedure occupies more space in the database than a integrity constraint definition
c Because a stored procedure creates more network traffic than a integrity constraint definition

Ans : A

19. Which of the following is not an advantage of a client/server model ?

a. A client/server model allows centralised control of data and centralised implementation of business rules.
b A client/server model increases developer;s productivity
c A client/server model is suitable for all applications
d None of the above.

Ans : C

20. What does DLL stands for ?

a Dynamic Language Library
b Dynamic Link Library
c Dynamic Load Library
d None of the above

Ans : B

21. POST-BLOCK trigger is a
a Navigational trigger
b Key trigger
c Transactional trigger
d None of the above

Ans : A

22. The system variable that records the select statement that SQL * FORMS most recently used
to populate a block is
a SYSTEM.LAST_RECORD
b SYSTEM.CURSOR_RECORD
c SYSTEM.CURSOR_FIELD
d SYSTEM.LAST_QUERY

Ans : D

23. Which of the following is TRUE for the ENFORCE KEY field
a ENFORCE KEY field characterstic indicates the source of the value that SQL*FORMS uses
to populate the field
b A field with the ENFORCE KEY characterstic should have the INPUT ALLOWED
charaterstic turned off
a Only 1 is TRUE
b Only 2 is TRUE
c Both 1 and 2 are TRUE
d Both 1 and 2 are FALSE

Ans : A

24. What is the maximum size of the page ?

a Characters wide & 265 characters length
b Characters wide & 265 characters length
c Characters wide & 80 characters length
d None of the above

Ans : B

25. A FORM is madeup of which of the following objects
a block, fields only,
b blocks, fields, pages only,
c blocks, fields, pages, triggers and form level procedures,
d Only blocks.

Ans : C

26. For the following statements which is true
1 Page is an object owned by a form
2 Pages are a collection of display information such as constant text and graphics.
a Only 1 is TRUE
b Only 2 is TRUE
c Both 1 & 2 are TRUE
d Both are FALSE

Ans : B

27. The packaged procedure that makes data in form permanent in the Database is
a Post
b Post form
c Commit form
d None of the above

Ans : C

28. Which of the following is TRUE for the SYSTEM VARIABLE $$date$$
a Can be assigned to a global variable
b Can be assigned to any field only during design time
c Can be assigned to any variable or field during run time
d None of the above

Ans : B

9. Which of the following packaged procedure is UNRESTRICTED ?

a CALL_INPUT, b CLEAR_BLOCK, c EXECUTE_QUERY, d USER_EXIT

Ans : D

30. Identify the RESTRICTED packaged procedure from the following
a USER_EXIT, b MESSAGE, c BREAK, d EXIT_FORM

Ans : D

31. What is SQL*FORMS
a SQL*FORMS is a 4GL tool for developing & executing Oracle based interactive applications.
b SQL*FORMS is a 3GL tool for connecting to the Database.
c SQL*FORMS is a reporting tool
d None of the above.

Ans : A

32. Name the two files that are created when you generate a form using Forms 3.0
a FMB & FMX, b FMR & FDX, c INP & FRM, d None of the above

Ans : C

33. What is a trigger
a A piece of logic written in PL/SQL
b Executed at the arrival of a SQL*FORMS event
c Both A & B
d None of the above

Ans : C

34. Which of the folowing is TRUE for a ERASE packaged procedure
1 ERASE removes an indicated Global variable & releases the memory associated with it
2 ERASE is used to remove a field from a page
1 Only 1 is TRUE
2 Only 2 is TRUE
3 Both 1 & 2 are TRUE
4 Both 1 & 2 are FALSE

Ans : 1

35. All datafiles related to a Tablespace are removed when the Tablespace is dropped
a TRUE
b FALSE

Ans : B

36. Size of Tablespace can be increased by
a Increasing the size of one of the Datafiles
b Adding one or more Datafiles
c Cannot be increased
d None of the above

Ans : B

37 . Multiple Tablespaces can share a single datafile
a TRUE
b FALSE

Ans : B

38 . A set of Dictionary tables are created
a Once for the Entire Database
b Every time a user is created
c Every time a Tablespace is created
d None of the above

Ans : A

39. Datadictionary can span across multiple Tablespaces
a TRUE
b FALSE

Ans : B

40. What is a DATABLOCK
a Set of Extents
b Set of Segments
c Smallest Database storage unit
d None of the above

Ans : C

41. Can an Integrity Constraint be enforced on a table if some existing table data does not satisfy the constraint
a Yes
b No

Ans : B

42. A column defined as PRIMARY KEY can have NULL’s
a TRUE
b FALSE

Ans : B

43. A Transaction ends
a Only when it is Committed
b Only when it is Rolledback
c When it is Committed or Rolledback
d None of the above

Ans : C

44. A Database Procedure is stored in the Database
a In compiled form
b As source code
c Both A & B
d Not stored

Ans : C

45. A database trigger doesnot apply to data loaded before the definition of the trigger
a TRUE
b FALSE

Ans : A

46. Dedicated server configuration is
a One server process - Many user processes
b Many server processes - One user process
c One server process - One user process
d Many server processes - Many user processes

Ans : C

47. Which of the following does not affect the size of the SGA
a Database buffer
b Redolog buffer
c Stored procedure
d Shared pool

Ans : C

48. What does a COMMIT statement do to a CURSOR
a Open the Cursor
b Fetch the Cursor
c Close the Cursor
d None of the above

Ans : D

49. Which of the following is TRUE
1 Host variables are declared anywhere in the program
2 Host variables are declared in the DECLARE section
a Only 1 is TRUE
b Only 2 is TRUE
c Both 1 & 2are TRUE
d Both are FALSE

Ans : B

50. Which of the following is NOT VALID is PL/SQL
a Bool boolean;
b NUM1, NUM2 number;
c deptname dept.dname%type;
d date1 date := sysdate

Ans : B

51. Declare
fvar number := null; svar number := 5
Begin
goto >
if fvar is null then
>
svar := svar + 5
end if;
End;

What will be the value of svar after the execution ?

a Error
b 10
c 5
d None of the above

Ans : A

52. Which of the following is not correct about an Exception ?

a Raised automatically / Explicitly in response to an ORACLE_ERROR
b An exception will be raised when an error occurs in that block
c Process terminates after completion of error sequence.
d A Procedure or Sequence of statements may be processed.

Ans : C

53. Which of the following is not correct about User_Defined Exceptions ?

a Must be declared
b Must be raised explicitly
c Raised automatically in response to an Oracle error
d None of the above

Ans : C

54. A Stored Procedure is a
a Sequence of SQL or PL/SQL statements to perform specific function
b Stored in compiled form in the database
c Can be called from all client environmets
d All of the above

Ans : D

55. Which of the following statement is false
a Any procedure can raise an error and return an user message and error number
b Error number ranging from 20000 to 20999 are reserved for user defined messages
c Oracle checks Uniqueness of User defined errors
d Raise_Application_error is used for raising an user defined error.

Ans : C

56. Is it possible to open a cursor which is in a Package in another procedure ?

a Yes
b No

Ans : A

57. Is it possible to use Transactional control statements in Database Triggers?

a Yes
b No

Ans : B

58. Is it possible to Enable or Disable a Database trigger ?

a Yes
b No

Ans : A

59. PL/SQL supports datatype(s)
a Scalar datatype
b Composite datatype
c All of the above
d None of the above
Ans C

60. Find the ODD datatype out
a VARCHAR2
b RECORD
c BOOLEAN
d RAW

Ans : B

61. Which of the following is not correct about the “TABLE” datatype ?

a Can contain any no of columns
b Simulates a One-dimensional array of unlimited size
c Column datatype of any Scalar type
d None of the above

Ans : A

62. Find the ODD one out of the following
a OPEN
b CLOSE
c INSERT
d FETCH
Ans C

63. Which of the following is not correct about Cursor ?

a Cursor is a named Private SQL area
b Cursor holds temporary results
c Cursor is used for retrieving multiple rows
d SQL uses implicit Cursors to retrieve rows

Ans : B

64. Which of the following is NOT VALID in PL/SQL ?

a Select … into
b Update
c Create
d Delete

Ans : C

65. What is the Result of the following ‘VIK’||NULL||’RAM’ ?

a Error
b VIK RAM
c VIKRAM
d NULL

Ans : C

66. Declare
a number := 5; b number := null; c number := 10;
Begin
if a > b AND a ( Select count(*) from Emp E2 where E1.SAL > E2.SAL ) will retrieve
a 3500,5000,2500
b 5000,2850
c 2850,5750
d 5000,5750

Ans : A

72. Is it possible to modify a Datatype of a column when column contains data ?

a Yes
b No
Ans B

73. Which of the following is not correct about a View ?

a To protect some of the columns of a table from other users
b Ocuupies data storage space
c To hide complexity of a query
d To hide complexity of a calculations

Ans : B

74. Which is not part of the Data Definiton Language ?

a CREATE
b ALTER
c ALTER SESSION

Ans : C

75. The Data Manipulation Language statements are
a INSERT
b UPDATE
c SELECT
d All of the above

Ans : D

76. EMPNO ENAME SAL
A822 RAMASWAMY 3500
A812 NARAYAN 5000
A973 UMESH
A500 BALAJI 5750
Using the above data
Select count(sal) from Emp will retrieve
a 1
b 0
c 3
d None of the above

Ans : C

77. If an UNIQUE KEY constraint on DATE column is created, will it accept the rows that are inserted with
SYSDATE ?

a Will
b Won’t

Ans : B

78. What are the different events in Triggers ?

a Define, Create
b Drop, Comment
c Insert, Update, Delete
d All of the above

Ans : C

79. What built-in subprogram is used to manipulate images in image items ?

a Zoom_out
b Zoom_in’
c Image_zoom
d Zoom_image

Ans : C

80. Can we pass RECORD GROUP between FORMS ?

a Yes
b No

Ans : A

81. SHOW_ALERT function returns
a Boolean
b Number
c Character
d None of the above

Ans : B

82. What SYSTEM VARIABLE is used to refer DATABASE TIME ?

a $$dbtime$$
b $$time$$
c $$datetime$$
d None of the above

Ans : A

83. :SYSTEM.EFFECTIVE.DATE varaible is
a Read only
b Read & Write
c Write only
d None of the above

Ans : C

84. How can you CALL Reports from Forms4.0 ?

a Run_Report built_in
b Call_Report built_in
c Run_Product built_in
d Call_Product built_in

Ans : C

85. When do you get a .PLL extension ?

a Save Library file
b Generate Library file
c Run Library file
d None of the above

Ans : A

86. What is built_in Subprogram ?

a Stored procedure & Function
b Collection of Subprogram
c Collection of Packages
d None of the above

Ans : D

87. GET_BLOCK property is a
a Restricted procedure
b Unrestricted procedure
c Library function
d None of the above

Ans : D

88. A CONTROL BLOCK can sometimes refer to a BASETABLE ?

a TRUE
b FALSE

Ans : B

89. What do you mean by CHECK BOX ?

a Two state control
b One state control
c Three state control
d none of the above

Ans : C - Please check the Correcness of this Answer ( The correct answeris 2 )

90. List of Values (LOV) supports
a Single column
b Multi column
c Single or Multi column
d None of the above

Ans : C

91. What is Library in Forms 4.0 ?

a Collection of External field
b Collection of built_in packages
c Collection of PL/SQl functions, procedures and packages
d Collection of PL/SQL procedures & triggers

Ans : C

92. Can we use a RESTRICTED packaged procedure in WHEN_TEXT_ITEM trigger ?

a Yes
b No

Ans : B

93. Can we use GO_BLOCK package in a PRE_TEXT_ITEM trigger ?

a Yes
b No

Ans : B

94. What type of file is used for porting Forms 4.5 applications to various platforms ?

a . FMB file
b . FMX file
c . FMT file
d . EXE file

Ans : C

95. What built_in procedure is used to get IMAGES in Forms 4.5 ?

a READ_IMAGE_FILE
b GET_IMAGE_FILE
c READ_FILE
d GET_FILE
Ans A

96. When a form is invoked with CALL_FORM does Oracle forms issues SAVEPOINT ?

a Yes
b No

Ans : A

97. Can we attach the same LOV to different fields in Design time ?

a Yes
b No

Ans : A

98. How do you pass values from one form to another form ?

a LOV
b Parameters
c Local variables
d None of the above

Ans : B

99. Can you copy the PROGRAM UNIT into an Object group ?

a Yes
b No

Ans : B

100. Can MULTIPLE DOCUMENT INTERFACE (MDI) be used in Forms 4.5 ?

a Yes
b No

Ans : A

101. When is a .FMB file extension is created in Forms 4.5 ?

a Generating form
b Executing form
c Save form
d Run form

Ans : C

102. What is a Built_in subprogram ?

a Library
b Stored procedure & Function
c Collection of Subprograms
d None of the above

Ans : D

103. What is a RADIO GROUP ?

a Mutually exclusive
b Select more than one column
c Above all TRUE
d Above all FALSE

Ans : A

104. Identify the Odd one of the following statements ?

a Poplist
b Tlist
c List of values
d Combo box

Ans : C

105. What is an ALERT ?

a Modeless window
b Modal window
c Both are TRUE
d None of the above

Ans : B

106. Can an Alert message be changed at runtime ?

a Yes
b No

Ans : A

107. Can we create an LOV without an RECORD GROUP ?

a Yes
b No

Ans : B

108. How many no of columns can a RECORD GROUP have ?

a 10
b 20
c 50
d None of the above
Ans D

109. Oracle precompiler translates the EMBEDDED SQL statemens into
a Oracle FORMS
b Oracle REPORTS
c Oracle LIBRARY
d None of the above

Ans : D

110. Kind of COMMENT statements placed within SQL statements ?

a Asterisk(*) in column ?

b ANSI SQL style statements(…)
c C-Style comments (/*……*/)
d All the above

Ans : D

111. What is the appropriate destination type to send the output to a
printer ?

a Screen
b Previewer
c Either of the above
d None of the above

Ans : D

112. What is TERM ?

a TERM is the terminal definition file that describes the terminal from which you are using R20RUN
( Reports run time )
b TERM is the terminal definition file that describes the terminal from which you are using R20DES
( Reports designer )
c There is no Parameter called TERM in Reports 2.0
d None of the above

Ans : A

113. If the maximum records retrieved property of a query is set to 10, then a summary value will
be calculated
a Only for 10 records
b For all the records retrieved
c For all therecords in the referenced table
d None of the above

Ans : A

114. With which function of a summary item in the COMPUTE AT optio required ?

a Sum
b Standard deviation
c Variance
d % of Total function

Ans : D

115. For a field in a repeating frame, can the source come from a column which does not exist in
the datagroup which forms the base of the frame ?

a Yes
b No

Ans : A

116. What are the different file extensions that are created by Oracle Reports ?

a . RDF file & .RPX file
b . RDX file & .RDF file
c . REP file & .RDF file
d None of the above

Ans : C

117. Is it possible to Disable the Parameter form while running the report?

a Yes
b No

Ans : A

118.What are the SQL clauses supported in the link property sheet ?

a WHERE & START WITH
b WHERE & HAVING
c START WITH & HAVING
d WHERE, START WITH & HAVING

Ans : D

119. What are the types of Calculated columns available ?

a Summary, Place holder & Procedure column
b Summary, Procedure & Formula columns
c Procedure, Formula & Place holder columns
d Summary, Formula & Place holder columns
Ans.: D

120. If two groups are not linked in the data model editor, what is the hierarchy between them?

a There is no hierarchy between unlinked groups
b The group that is right ranks higher than the group that is to theleft
c The group that is above or leftmost ranks higher than the group that is to right or below it
d None of the above

Ans : C

121. Sequence of events takes place while starting a Database is
a Database opened, File mounted, Instance started
b Instance started, Database mounted & Database opened
c Database opened, Instance started & file mounted
d Files mounted, Instance started & Database opened

Ans : B

122. SYSTEM TABLESPACE can be made off-line
a Yes
b No

Ans : B

123. ENQUEUE_RESOURCES parameter information is derived from
a PROCESS or DDL_LOCKS & DML_LOCKS
b LOG BUFFER
c DB_BLOCK_SIZE
d DB_BLOCK_BUFFERS

Ans : A

124. SMON process is used to write into LOG files
a TRUE
b FALSE

Ans : B

125. EXP command is used
a To take Backup of the Oracle Database
b To import data from the exported dump file
c To create Rollback segments
d None of the above

Ans : A

126. SNAPSHOTS cannot be refreshed automatically
a TRUE
b FALSE

Ans : B

127. The User can set Archive file name formats

a TRUE
b FALSE

Ans : A

128. The following parameters are optional in init.ora parameter file DB_BLOCK_SIZE, PROCESS

a TRUE
b FALSE

Ans : B
129. NOARCHIEVELOG parameter is used to enable the database in Archieve mode
a TRUE
b FALSE

Ans : B

130. Constraints cannot be exported through Export command?

a TRUE
b FALSE

Ans : B

131. It is very difficult to grant and manage common priveleges needed by
different groups of database users using roles
a TRUE
b FALSE

Ans : B

132. The status of the Rollback segment can be viewed through
a DBA_SEGMENTS
b DBA_ROLES
c DBA_FREE_SPACES
d DBA_ROLLBACK_SEG

Ans : D

133. Explicitly we can assign transaction to a rollback segment
a TRUE
b FALSE

Ans : A

134. What file is read by ODBC to load drivers ?

a ODBC.INI
b ODBC.DLL
c ODBCDRV.INI
d None of the above

Ans : A

Ajit went through a job interview and said:

1. Three beauty pageant finalists-Cindy, Amy and Linda-The winner was musician. The one who was not last or first was a math major. The one who came in third had black hair. Linda had red hair. Amy had no musical abilities. Who was first?

(A) Cindy (B) Amy (C) Linda (D) None of these

2. Two twins have certain peculiar characteristics. One of them always lies on Monday, Wednesday, Friday. The other always lies on Tuesdays, Thursday and Saturdays. On the other days they tell the truth. You are given a conversation.
Person A- today is Sunday, my name is Anil
Person B-today is Tuesday, my name is Bill What day is today?

(A) Sunday (B) Tuesday (C) Monday (D) Thursday

3. The difference of a number and its reciprocal is 1/2.The sum of their squares is

(A) 9/4 (B) 4/5 (C) 5/3 (D) 7/4

4. The difference of a number and its square is 870.What is the number?

(A) 42 (B) 29 (C) 30 (D) 32

5. A trader has 100 Kg of wheat, part of which he sells at 5% profit and the rest at 20% profit. He gains 15% on the whole. Find how much is sold at 5% profit?

(A) 60 (B) 50 (C) 66.66 (D) 33.3

6. Which of the following points are collinear?

(A) (3,5) (4,6) (2,7) (B) (3,5) (4,7) (2,3)

(C) (4,5) (4,6) (2,7) (D) (6,7) (7,8) (2,7)

7. A man leaves office daily at 7pm.a driver with car comes from his home to pick him from office and bring back home. One day he gets free at 5.30 and instead of waiting for driver he starts walking towards home. In the way he meets the car and returns home on car. He reaches home 20 minutes earlier than usual. In how much time does the man reach home usually?

(A) 1 hr 20 min (B) 1 hr (C) 1 hr 10 min (D) 55 min

8. If m:n = 2:3,the value of 3m+5n/6m-n is

(A) 7/3 (B) 3/7 (C) 5/3 (D) 3/5

9. A dog taken four leaps for every five leaps of hare but three leaps of the dog is equal to four leaps of the hare. Compare speed?

(A) 12:16 (B) 19:20 (C) 16:15 (D) 10:12

10. A watch ticks 90 times in 95 seconds. And another watch ticks 315 times in 323 secs. If they start together, how many times will they tick together in first hour?

(A) 100 times (B) 101 times (C) 99 times (D) 102 times

11. The purpose of defining an index is

(A) Enhance Sorting Performance (B) Enhance Searching Performance

(C) Achieve Normalization (D) All of the above

12. A transaction does not necessarily need to be

(A) Consistent (B) Repeatable (C) Atomic (D) Isolated

13. To group users based on common access permission one should use

(A) User Groups (B) Roles (C) Grants (D) None of the above

14. PL/SQL uses which of the following

(A) No Binding (B) Early Binding (C) Late Binding (D) Deferred Binding

15. Which of the constraint can be defined at the table level as well as at the column level

(A) Unique (B) Not Null (C) Check (D) All the above

16. To change the default date format in a SQLPLUS Session you have to

(A) Set the new format in the DATE_FORMAT key in the windows Registry.

(B) Alter session to set NLS_DATE-FORMAT.

(C) Change the Config.ora File for the date base.

(D) Change the User Profile USER-DATE-FORMAT.

17. Which of the following is not necessarily an advantages of using a package rather than independent stored procedure in data base.

(A) Better performance. (B) Optimized memory usage.

(C) Simplified Security implementation. (D) Encapsulation.

18. Integrity constrains are not checked at the time of

(A) DCL Statements. (B) DML Statements.

(C) DDL Statements. (D) It is checked all the above cases.

19. Roll Back segment is not used in case of a

(A) DCL Statements. (B) DML Statements. (C) DDL Statements. (D) all of the above.

20. An Arc relationship is applicable when

(A) One child table has multiple parent relation, but for anyone instance of a child record only one of the relations is applicable.

(B) One column of a table is related to another column of the same table.

(C) A child table is dependent on columns other than the primary key columns of the parent table.

(D) None of the above.

21. What is true about the following C functions?

(A) Need not return any value. (B) Should always return an integer.

(C) Should always return a float. (D) Should always return more than one value.

22. enum number { a=-1, b=4, c,d,e,} what is the value of e?

(A) 7 (B) 4 (C) 5 (D) 3

23. Which of the following about automatic variables within a function is correct?

(A) Its type must be declared before using the variable. (B) They are local.

(C) They are not initialized to zero. (D) They are global.

24. Consider the following program segment
int n, sum=5;
switch(n)
{
case 2:sum=sum-2;
case 3:sum*=5;
break;
default:sum=0;
}
if n=2, what is the value of the sum?

(A) 0 (B) 15 (C) 3 (D) None of these.

25. Which of the following is not an infinite loop?

(A) x=0; (B) # define TRUE 0….
do{ While(TRUE){….}
/*x unaltered within the loop*/ (C) for(;;) {….}
….}
While(x==0); (D) While(1) {….}

26. Output of the following program is
main()
{
int i=0;
for(i=0;ileft->right->data
ans: r->data
9:explain const char *ptr and char *const ptr
remaining i didn`t remember

aptiude
15 quant apti from rs agrval
15 verbal apti,
in this 4 are odd word out
and 4 are sentese ordering when jumbled senteses given
and 4 are reasoning

Model Questions From the Exam conducted by Oracle Bangalore in 2002.

1. What is the output of the following program?

#include

#include

void main( )

{

int a=5,b=7;

printf(%d\n,b\a);

}

A. 1.4

B. 1.0

C. 1

D. 0

2. What is the output of the following program listing?

#include

void main ( )

{

int x,y:

y=5;

x=func(y++);

printf(%s\n,

(x==5)?true;false);

}

int func(int z)

{

if (z== 6)

return 5;

else

return 6;

}

A True

B false

C either a or b

D neither a nor b

3. What is the output of the following progarm?

#include

main( )

{

int x,y=10;

x=4;

y=fact(x);

printf(%d\n,y);

}

unsigned int fact(int x)

{

return(x*fact(x-1));

}

A. 24

B. 10

C. 4

D. none

4. Consider the following C program and chose collect answer

#include

void main( )

{

inta[10],k;

for(k=0;k

void main ( )

{

int k=4,j=0:

switch (k)

{

case 3;

j=300;

case 4:

j=400:

case 5:

j=500;

}

printf (%d\n,j);

}

A. 300

B. 400

C. 500

D. 0

6. Consider the following statements:

Statement 1

A union is an object consisting of a sequence of named members of various types

Statement 2

A structure is a object that contains at different times, any one of the several members of various types

Statement 3

C is a compiled as well as an interpretted language

Statement 4

It is impossible to declare a structure or union containing an instance of itself

A. all the statements are correct

B. except 4 all are correct

C. statemnt 3 is only correct

D. statement 1,3 are incorrect either 2 or 4 is correct

7. consider the following program listing and select the output

#include

main ( )

{

int a=010,sum=0,tracker:

for(tracker=0;tracker

Line 2: void main()

Line 3: {

4 : int *pia,ia;

5 :float *pafa,fa;

6 :ia=100;

7 :fa=12.05;

8 :*pfa=&ia;

9 :pfa=&ia;

10 :pia=pfa;

11 :fa=(float)*pia;

12 :fa=ia;

13 :}

a. 8 and 9

b. 9 and 10

c. 8 and 10

d. 10 and 11

8. What is the o/p of the follow pgm?

#include

main()

{

char char_arr[5]=ORACL;

char c=E;

prinf(%s\n,strcat(char_arr,c));

}

a:oracle

b. oracl

c.e

d.none

9. consider the following pgm listing

#include

main()

{

int a[3];

int *I;

a[0]=100;a[1]=200;a[2]=300;

I=a;

Printf(%d\n, ++*I);

Printf(%d\n, *++I);

Printf(%d\n, (*I)–);

Printf(%d\n, *I);

}

what is the o/p

a. 101,200,200,199

b. 200,201,201,100

c. 101,200,199,199

d. 200,300,200,100

10. which of the following correctly declares My_var as a pointer to a function that returns an integer

a. int*My_Var();

b. int*(My_Var());

c. int(*)My_Var();

d. int(*My_Var)();

11. what is the memory structure employed by recursive functions in a C pgm?

a. B tree

b. Hash table

c. Circular list

d. Stack

12. Consider the follow pgm listing?

Line 1: #include

2: void main()

3: {

4: int a=1;

5: const int c=2;

6: const int *p1=&c;

7: const int*p2=&a;

8: int *p3=&c;

9: int*p4=&a;

10:}

what are the lines that cause compilation errors?

a.7

b.8

c.6 and 7

d.no errors

13. what will be the o/p

#include

main()

{

inta[3];

int *x;

int*y;

a[0]=0;a[1]=1;a[2]=2;

x=a++;

y=a;

printf(%d %d\n, x,(++y));

}

a. 0,1

b. 1,1

c. error

d. 1,2

what is the procedure for swapping a,b(assume that a,b and tmp are of the same type?

a. tmp=a; a=b;b=temp;

b. a=a+b;b=a-b;a=a-b;

c. a=a-b;b=a+b;a=b-a;

d. all of the above

Kasul went through a job interview and said:

pattern
=======

30 qns. technical - 30 mins. - mostly on DBMS,
Oracle(like what would be the output), C, C++,
Java(2-3 qns. on class and constructors) and data
structures.

30 qns. general - 30 mins. - 7 qns. aptitude, more
like English (filling up prepositions, same meaning,
reading comprehension, four sentences would be given -
you have to order them to form a paragraph, similarly
four questions would be given - you have to say which
one is a inference statement, which one is a
judgement,etc.)

The technical test would be easy and general test
would be little difficult.

In the interview, they asked me the following
questions.
=============

1. what are the macros other than C macros (the macros
in word,excel)
A macro in MS-word is used to group a sequence
of jobs and make it as a button or keyboard shortcut.
Suppose, if you need always to draw a table containing
2 rows and 5 cols, you can start,record a macro and
make it as a button and put in taskbar, sothat when
you press it, you will be provided with a fixed table.

2. can you delete a column from a table.
In oracle 9i, you can do it by the statement
ALTER TABLE table1 DROP COLUMN column1; In oracle
8,you can’t.

3. can you store a image in oracle and by which
datatype?
Yes, you can and it can be acheived by using
a BLOB (binary large object) type and store upto 4GB
in a single column.

4. have you used reports and forms in oracle?

5. have you written applications to retrieve stored
images in a table?

6. some DOS commands and UNIX.

7. project desription (both academic and
miniprojects,if any)

8. some situation questions like what would you do if
your company is burning,etc.

Please have a look on DBMS, and some simple
queries like ’select * from dual’ for the technical
test.

Sakthi went through a job interview and said:

1.void main()
{
struct a
{
char ch[10];
char *str;
};
struct a s1={”Hyderabad”,”Bangalore”};
printf(”\n%c%c”,s1.ch[0],*s1.str);
printf(”\n%s%s”,s1.ch,s1.str);
getch();
}

Ans: HB, HyderabadBangalor

2. main(int argc,int *argv[])
{
int i;
for(i=1;i0;i–)
{
j=1i=100;
strcpy(str1->st1,”Welcome to Oracle”);
printf(” %d%s\n”,str1->i,str1->st1);
getch();
}
// A. core dump
// B. will not compile
// c. 100,Welcome to Oracle
// D. None of these
// Ans: C

13.//What is the output of the program
void main()
{
int i,j,k;
i=2;
j=4;
k=i++>j&2;
printf(”%d\n”,k);
if(++k && ++i
#include
#define sqr(a) a*a
void main()
{
int a=10,b=1,c;
c=sqr(10+1);
printf(”Sqr Root of (10+1)is %d”,c );
getch();
}
// A. 121
// B. 21
// c. 13
// D. Syntax Error
// Ans: B

17.//What is the output of the program
#include
#include
void main()
{
int i,j=20;
clrscr();
for(i=1;i
#include
void main()
{
int i=1*4/3-27%3^2+100*0.5-(4>3?1:2);
clrscr();
printf(”%d”,i);
getch();
}
// A. 49
// B. compile error
// c. 51
// D. 48
// Ans: b

19.What is the output of the program
#include
#include
void main()
{
char *st1[3]= {”Hello”,”World”,”Oracle”};
*st1=st1[2];
st1[1]=*st1;
free(st1[0]);
free(st1[1]);
clrscr();
printf(”%s %s %s”,st1,st1[1],st1[2]);
getch();
}
// A. Garbage Garbage Oracle
// B. oracle oracle oracle
// c. Hello World Oracle
// D. Core Dump:cannot Print after freeing the
memory
// Ans: D

20.Consider the following structure =20
Struct {
int data;
struct node *prev;
struct node *next;
}NODE;

NULL 8 –> 10 –> NULL
p prev–>–>next–>data
?
A. 8
B. Null
C. 5
D. 10
Ans: 10

21. what will be the output of the fallowing SELECT
statement ?
SELECT count(*)
FROM emp
Where exist (select ‘X’ From dept
where dept_name =’Stores’
and dept.dept_id=emp.dept_id)

A. select total number of employees belonging to
department ” stores ”
B. select all employees belonging to department “X”
C. select all employees belonging to department
“stores”
D. select total number of employees belonging to
department “X”

22. Denormalisation is done to=20
A. Check for Data Integrity
B. Reduce Data Redundancy
C. Intoduce Security Check
D. Increase Query performance .

23. How many columns are retrived from this query:
SELECT address1 || ‘,’ ||address2 ||’,’
||address2 “Address” FROM =
employee;

A. 3
B. 2
C. 1
D. 0

24. What is the is the result of the fallowing Code
Piece=20
Insert into table A value(a1):
CREATE TABLE B AS SELECT * FROM A;
ROLLBAACK ;
A. Table B gets created with the row inserted in the
first statement.
B. Table B is not created
C. Table B gets created , but no row gets inserted
into Table A
D. Rollback throws up an exception .

25. The key word used in Oracle for string searching
is=20

A. SOUNDEX
B. DECODE
C. LIKE
D. HAVING

26. What does the ROLLBACK statement wil do in the
fool segment of =
code
PROGRAM STARTS HERE
……..
SOME DML STAT.
…SAVEPOINT1
SOME DML STAT.
…SAVEPOINT2
SOME DML STAT.
…ROLLBACK
A. Rollback Dml changes to savepoint 1
B. Rollback Dml changes to savepoint 2
C. Rollback Dml changes of the last DML
ststs. just before =
ROllback stats
D. Rollback DML changes to the place whre the
program starts

27. Which clause u use to exclude the rows before
grouping them?
A. Group By
B. Having
C. Where
D. Minus

28. Which of the following statements is not true
about views?
A. u can create a index on views
B. Views donot have permanent data
C. Views can be based on one or more tables
D. Views can be dropped without dropping
tables

29 How many JION conditions are needed in JOIN query
to avoid a =
Cartesian Product?
A. No of tables + 1
B. No of tables - 1
C. No of colums + 1
D. No of colums - 1

30. “An item could be either a component or spare “.
How can u =
represent this scenerio in a E-R=20
A. Subtype Relation
B. Arc Relation
C. Recursive Relation
D. Many to Many Relationscription

santhi vemu went through a job interview and said:

sir,
I am santhi in my final Btech in Electrical and Electronics Engineering from Aditya Engineering College. I like to work in ur organisation as such I ensuringly can say that a job in your organisation can certainly build my career. But mine is Electrical Department but I would like to be a programming professional My question is will there be any differentiation between an individual who is computer Engineer and Electrical Engineer ?

Praveen went through a job interview and said:

There were 6 rounds :

1st round-apptitude written 14/30
2nd round tech written 24/30
3rd round Technical round
4th round Technical round
5th H.R
6th H.R

1st Round: Follow oracle previous question papers
2nd Round:Sql and Pl/Sql
1< Cartesian Product can be achieved by using join
which involves a condition
a, no of tables-1
2< Bitmap tree & Binary tree
3< Outer join
eg: emp.deptno=dept.deptno(+)
4< Changes made to database through PL/SQL block will
be effected due to --------- when ever user executes
that form or ..........
a, Commit in PL/SQL blk
b, end of PL/SQL
c, After leaving/ending the session
d,
5< Select dept,avg(sal)
from emp
group by job;
Find out the error in which line it is
6< For loop of a cursor is-----Implicitly opened &
closed
7< The implicit cursor attribute that does not work
is%found,%notfound,%isopen,%rowcount
8< Which of the following is not a cursor attribute
%found,%notfound,%rownumber,%rowcount
ans: %rownumber
9< Insert
save point
update
save point
create
rollback
delete
a, only delete rows

10< Proc_a calls Proc_b calls proc_c

there is an satatement in Proc_b where we have a
divide by zero error but u dont have any
exception in Proc_a.so can u write any exception to
overcome it
a, zero_divide in proc_c: Not confirm check it

11< dont remember the remaining but they were simple

3rd round:

1< Exception: def
asked Eg's NO_DATA_FOUND

2< Begin
code
Exception
when others then
-----
-----
when zero_divide then
-----

any error?

3< emp dept
empno deptno
ename dname
deptno
write a query to get empno,ename ,deptno,dname

4< deptno emp
10 40?
20
30
40

5< select deptno,count(*)
from emp
group by deptno;

related scenario
ename empno
deptno
x a
10
y b
20
z c
30
d
40
count(*) -> 4 rows
count(ename) ->3 ignores null valued rows

6< Foreign key can hold null value

7< constraints: def & types
diff between(b/w) unique & Primary key
constraints

8< Trigger : syntax
How do u identify that its for
insert/delete/update: thru
if(INSERT)
code
9< Puzzel 3 switches 3 bulbs in a room
u have to go into the room watch them ,come
out of room and select a switch
so that there is a correspondence with the
bulb i.e., if 1st switch-1st bulb and
so on, if u select firist switch it should on
the first bulb

10< any ,all

11< insert
update
create
delete
rollback
then deletes rec

12< insert
update
create (does not create & results in err)
delete
rollback
then deletes rec becoz ddl is precceded and succeeded
by a commit

13< types of commands
DDL,DCL,DML,TCL

14< diff b/w truncate & delete
15< substr(),instr(),replace(),translate()

4th round: Tech2,,,,,,,,

1, write a C prg to check the occurance of 'ac' in
'oracle' and the no of occures of 'c'
in 'oracleinc'

2,if u get a job offer with 20% hike in sal from
Microsoft then will u leave ur
company which u have joined 6 months back

ans: 1st thought wow!!!!!!!!!!!!!!!!
2nd tought good but u cant go on jumping if
do that u may get good sal but not good
hold on subject so i will not prefer

3,Not so good in sql? i said so so
so we dont provide any trainning so how will u cope
up gave some expl
4, expl ur present work in JAMIA,modules
gave a scenario which is like below
two table were given test(testname,testid)
and test_det(testid,marks)
write a query to print in the below format
testname testid status count(*)
FAIL
PASS

select
testname,testid,decode(Marks,greatest(Marks,40),"PASS',"FAIL');

5, Data given was
'Pragati','PRagati','pragati'...diff formats
so now write a query to get all the data
select name from demo
where lower(name)='pragati;
can we write lower(name)=lower(pragati);
what does lower take as an argument

6, does oracle support function overloading
dont know/not sure
so give eg of any function in sql which supports
overloading
substr()
so how does it store internally:dont have idea
took eg of overloading in java and asked how does it
store:gave some rough
idea which was correct

7.does oracle support oops:yes,objects

8.explain oops concept

9.some java ,c,c++ questions

H.R..........1

1< tell about yourself

2< why did u come along way from gurgaon to hyd for
interview: ooportunity knos once
3< why did u not join eng
4< why did u get less rank in ICET
5< what's ur goal
6< why only 75% in MCA
7< support yourself that ur hardworking
gave some eg of college ...convinced him

8< who is ur role model?support ur ans
9< what is ur gr8 achievement
10< questions on final year proj and degree proj their
formats

11, apt question

in a pipe through which water is flowing is 1/3rd
full what is its volume: and
ans is in the question i.e., 3 times

H.R-----2.........

1< short term goal<4 yrs from now: get good hold on
Oracle
middle term goal>7 yrs:team leader
long term goal>14 yrs: CEO ,
so what would u do to achieve it: i think it needs to
have managerial skills so as to manage so would
like to do MBA and…..

2< how much r u expecting:anything acc to oracle
standards

The main thing is their criteria which they will not
compromise they r looking for broadminded people who r
intelligent,hardworking and having good communication
skills

never try to bluff the interviewer

Working for lousy company went through a job interview and said:

Joined the company worked for 6 years & found out that it’s the worst place to work in.BODY SHOP with no HR practices whatsoever,If you want to get exploited welcome to oracle ELSE go SOMEWHERE else

Pragati went through a job interview and said:

6 rounds
1st round-apptitude written 14/30( 30 min)
2nd round tech written 24/30 (30 min)
3rd round Technical round_1 (more than 1.30 hr)
4th round Technical round-2 (more than 1.30 hr)
5th H.R_1 (more than 1 hr)
6th H.R_2 (lasted for 15 min)

1st Round:
1< Cartesian Product can be achieved by using join
which involves a condition
a, no of tables-1
2< Bitmap tree & Binary tree
3< Outer join
eg: emp.deptno=dept.deptno(+)
4< Changes made to database through PL/SQL block will
be effected due to --------- when
ever user executes that form or ..........
a, Commit in PL/SQL blk
b, end of PL/SQL
c, After leaving/ending the session
d,
5< Select dept,avg(sal)
from emp
group by job;
Find out the error in which line it is
6< For loop of a cursor is-----Implicitly opened &
closed
7< The implicit cursor attribute that does not work
is%found,%notfound,%isopen,%rowcount
8< Which of the following is not a cursor attribute
%founf,%notfound,%rownumber,%rowcount

9< Insert
save point
update
save point
create
rollback
delete
a, only delete rows

10< Proc_a calls Proc_b calls proc_c
there is an satatement in Proc_b where we have a
divide by zero error but u dont have any
exception in Proc_a.so can u write any exception to
overcome it
a, zero_divide in proc_c: Not confirm check it

11< dont remember the remaining but they were simple

3rd round;;;;;
1< Exception: def
asked Eg's NO_DATA_FOUND

2< Begin
code
Exception
when others then
-----
-----
when zero_divide then
-----

any error?

3< emp dept
empno deptno
ename dname
deptno
write a query to get empno,ename ,deptno,dname

4< deptno emp
10 40?
20
30
40

5< select deptno,count(*)
from emp
group by deptno;

related scenario
ename empno
deptno
x a
10
y b
20
z c
30
d
40
count(*) -> 4 rows
count(ename) ->3 ignores null valued rows

6< Foreign key can hold null value

7< constraints: def & types
diff between(b/w) unique & Primary key
constraints

8< Trigger : syntax
How do u identify that its for
insert/delete/update: thru
if(INSERT)
code
9< Puzzel 3 switches 3 bulbs in a room
u have to go into the room watch them ,come
out of room and select a switch
so that there is a correspondence with the
bulb i.e., if 1st switch-1st bulb and
so on, if u select firist switch it should on
the first bulb

10< any all

11< insert
update
create
delete
rollback
then deletes rec

12< insert
update
create (does not create & results in err)
delete
rollback
then deletes rec becoz ddl is precceded and succeeded
by a commit

13< types of commands
DDL,DCL,DML,TCL

14< diff b/w truncate & delete
15< substr(),instr(),replace(),translate()

Tech2,,,,,,,,

1, write a C prg to check the occurance of 'ac' in
'oracle' and the no of occures of 'c'
in 'oracleinc'

2,if u get a job offer with 20% hike in sal from
Microsoft then will u leave ur
company which u have joined 6 months back

3,Not so good in sql? i said so so
so we dont provide any trainning so how will u cope
up

4, exp ur work in ur present company(modules)
gave a scenario which is like below
two table were given test(testname,testid)
and test_det(testid,marks)
write a query to print in the below format
testname testid status count(*)
FAIL
PASS

select
testname,testid,decode(Marks,greatest(Marks,40),"PASS',"FAIL');

5, Data given was
'Pragati','PRagati','pragati'...diff formats
so now write a query to get all the data
select name from demo
where lower(name)='pragati;
can we write lower(name)=lower(pragati);
what does lower take as an argument

6, does oracle support function overloading
dont know/not sure
so give eg of any function in sql which supports
overloading
substr()
so how does it store internally:dont have idea
took eg of overloading in java and asked how does it
store:gave some rough
idea which was correct: each function is stored
differently i.e., if u have
func(int x,char y) and func(char x, int y)
so it sotores them differently
so he said its this way that its also stored in oracle

7.does oracle support oops:yes,objects

8.explain oops cponcept

9.some java ,c,c++ questions

10,

H.R..........1

1< tell about yourself

2< why did u come along way from gurgaon to hyd for
interview: ooportunity knocks once

3< why did u not join eng

4< why did u get less rank in ICET

5< what's ur goal:

6< why only 75% in MCA
correction tough
university and collegest highest? 78 and 80
why so?give exp

7< support that ur hardworking

gave some eg of college ...convinced him

8< who is ur role model?support ur ans

9< what is ur gr*achievement

10< questions on final year proj and degree proj their
formats

11, apt question

in a pipe through which water is flowing is 1/3rd
full what is its volume: and
ans is in the question i.e., 3 times

H.R-----2.........

1< short term goal<4 yrs from now: get good hold on
Oracle
middle term goal>7 yrs:team leader
long term goal>14 yrs: CEO ,
so what would u do to achieve it: i think it needs to
have managerial skills so as to manage so would
like to do MBA and…..

2< how much r u expecting:anything acc to oracle
standards
3< u will be getting a mail on monday

Vasu went through a job interview and said:

Tell us about yourself, your background.
What are the three major characteristics that you bring to this
company?
What version of Oracle were you running?
How many databases did the organization have and what sizes?
What motivates you to do a good job?
What two or three things are most important to you at work?
What qualities do you think are essential to be successful in this
kind of work?
What courses did you attend? What job certifications do you hold?
What subjects/courses did you excel in? Why?
What subjects/courses gave you trouble? Why?
How does your previous work experience prepare you for this
position?
How do you define success?
What has been your most significant accomplishment to date?
Describe a challenge you encountered and how you dealt with it.
Describe a failure and how you dealt with it.
Describe the ideal job the ideal supervisor.
What leadership roles have you held?
What prejudices do you hold?
What do you like to do in your spare time?
What are your career goals (a) 3 years from now; (b) 10 years from
now?

Ajit went through a job interview and said:

ORACLE QUESTIONS.

How does this position match your career goals?
What have you done in the past year to improve yourself?
In what areas do you feel you need further education and training to
be successful?
What do you know about our company?
Why do you want to work for this company. Why should we hire you?
Where do you see yourself fitting in to this organization initially?
How about in 5 years?
Why are you looking for a new job?
How do you feel about re-locating?
Are you willing to travel?
What are your salary requirements?
When would you be available to start if you were selected?
Did you use online or off-line backups?
If you have to advise a backup strategy for a new application, how
would you approach it and what questions will you ask?
If a customer calls you about a hanging database session, what will
you do to resolve it?
Compare Oracle to any other database that you know. Why would you
prefer to work on one and not on the other

M.Sudheer Menon,ARANI went through a job interview and said:

1.What all types of Variables are used in Oracle ?
2. What is the difference between Oracle and SQL Server ?
3.Which one is more powerful for data storage and more secure ?
a)SQL Server b) MS Access c)Oracle 9i d)Oracle 11i

V.RAMGANESH went through a job interview and said:

hai,
i am finished MCA 2005 batch.i am job searching.so please guid me.
sir how to appaly your company.
i known ASP.NET.
PLS REPLAY ME
BY
V.RAMGANESH

Suvomoy Chakraborty went through a job interview and said:

Could not find any Oracle datawarehouse related Questions.

DP went through a job interview and said:

Please send oracle sql,pl/sql,d2k any oracle interview questions with answers and oracle tutorial send to my mail

Pankaj went through a job interview and said:

I’ll b going for an ORACLE interview. Wait i ‘ll b a winner. this is a fabulous site to make one aware of the type of questions before-hand. Keep up the gud work and tell me how i can help in keeping the gud work u are doing?

My id is pankajg81@Sify.com

Pankaj went through a job interview and said:

and i wud like to listen more from shivani so plz if shivani is interested to keep up her promise then she just mail me at pankajg81@sify.com

dhanunjaya went through a job interview and said:

hi

very good work it helps me a lot
regards
dhanunjaya

Ranjit went through a job interview and said:

1. WHAT IS DATA OR INFORMATION?
Ans: The Matter that we feed into the Computer is called Data or
Information.
2. WHAT IS DATABASE?
Ans: The Collection of Interrelated Data is called Data Base.
3. WHAT IS A DATABASE MANAGEMENT SYSTEM (DBMS) PACKAGE?
Ans: The Collection of Interrelated Data and some Programs to access
the Data is Called Data Base Management
System (DBMS).
4. WHEN CAN WE SAY A DBMS PACKAGE AS RDBMS?
Ans: For a system to Qualify as RELATIONAL DATABASE MANAGEMENT system,
it must use its
RELATIONAL facilities to MANAGE the DATABASE.
5. WHAT IS ORDBMS?
Ans: Object (oriented) Relational Data Base Management System is one
that can store data, the relationship of the
data, and the behavior of the data (i.e., the way it interacts with
other data).
6. NAME SOME CODD’S RULES.
Ans: Dr. E.F. Codd presented 12 rules that a database must obey if it
is to be considered truly relational. Out those,
some are as follows
a) The rules stem from a single rule- the ‘zero rule’: For a system to
Qualify as RELATIONAL
DATABASE MANAGEMENT system, it must use its RELATIONAL facilities
to MANAGE the DATABASE.
b) Information Rule: Tabular Representation of Information.
c) Guaranteed Access Rule: Uniqueness of tuples for guaranteed
accessibility.
d) Missing Information Rule: Systematic representation of missing
information as NULL values.
e) Comprehensive Data Sub-Language Rule: QL to support Data definition,
View definition,
Data manipulation, Integrity, Authorization and
Security.
7. WHAT ARE HIERARCHICAL, NETWORK, AND RELATIONAL DATABASE MODELS?
Ans: a) Hierarchical Model: The Hierarchical Model was introduced in
the Information Management System (IMS)
developed by IBM in 1968. In this data is organized as a tree
structure. Each tree is made of nodes and branches.
The nodes of the tree represent the record types and it is a collection
of data attributes entity at that point. The
topmost node in the structure is called the root. Nodes succeeding
lower levels are called children.
b) Network Model: The Network Model, also called as the CODSYL database
structure, is an improvement over the
Hierarchical mode, in this model concept of parent and child is
expanded to have multiple parent-child
relationships, i.e. any child can be subordinate to many different
parents (or nodes). Data is represented by
collection of records, and relationships among data are represented by
links. A link is an association between
precisely two records. Many-to-many relationships can exists between
the parent and child.
c) Relational Model: The Relational Database Model eliminates the need
for explicit parent-child relationships.
In RDBMS, data is organized in two-dimensional tables consisting of
relational, i.e. no pointers are maintained
between tables.
8. WHAT IS DATA MODELING?
Ans: Data Modeling describes relationship between the data objects. The
relationships between the collections of
data in a system may be graphically represented using data modeling.
9. DEFINE ENTITY, ATTRIBUTE AND RELATIONSHIP.
Ans: Entity: An Entity is a thing, which can be easily identified. An
entity is any object, place, person, concept or
activity about which an enterprise records data.
Attribute: An attribute is the property of a given entity.
Relationship: Relationship is an association among entities.
10. WHAT IS ER-MODELING?
Ans: The E-R modeling technique is the Top Down Approach. Entity
relationship is technique for analysis and
logical modeling of a system’s data requirements. It is the most widely
used and has gained acceptance as the
ideal database design. It uses three basic units: entities, their
attributes and the relationship that exists between
the entities. It uses a graphical notation for representing these.
11. WHAT IS NORMALIZATION?
Ans: Normalization is a step-by-step decomposition of complex records
into simple records.
12. WHAT ARE VARIOUS NORMAL FORMS OF DATA?
Ans: The First Normal Form 1NF,
The Second Normal Form 2NF,
The Third Normal Form 3NF,
The Boyce and Codd Normal Form BC NF.
13. WHAT IS DENORMALIZATION?
Ans: The intentional introduction of redundancy to a table to improve
performance is called
DENORMALIZATION.
14. WHAT ARE 1-TIER, 2-TIER, 3-TIER OR N-TIER DATABASE ARCHITECTURES?
Ans: 1-Tier Database Architecture is based on single system, which acts
as both server and client.
2-Tier Architecture is based on one server and client.
3-Tier Architecture is based on one server and client out that on
client act as a remote system.
N-Tier Architecture is based on N no. Of servers and N no. Of clients.
15. WHAT ARE A TABLE, COLUMN, AND RECORD?
Ans: Table: A Table is a database object that holds your data. It is
made up of many columns. Each of these
columns has a data type associated with it.
Column: A column, referred to as an attribute, is similar to a field in
the file system.
Record: A row, usually referred to as tuple, is similar to record in
the file system.
16. WHAT IS DIFFERENCE BETWEEN A PROCEDURAL LANGUAGE AND A
NON-PROCEDURAL LANGUAGE?
Ans:
Procedural Language NON-Procedural Language
A program in this implements a step-by-step algorithm to solve the
problem. It contains what to do but not how to do
17.WHAT TYPE OF LANGUAGE “SQL” IS?
Ans: SQL is a Non-procedural, 4th generation Language,/ which concerts
what to do rather than how to do any
process.
18. CLASSIFICATION OF SQL COMMANDS?
Ans:
DDL (Data Definition Language) DML (Data Manipulating Language) DCL
(Data Control
Language) DTL(Data Transaction Language)
Create Alter Drop Select Insert Update Delete Rollback Commit Grant
Revoke

19. WHAT IS DIFFERENCE BETWEEN DDL AND DML COMMANDS?
Ans: For DDL commands autocommit is ON implicitly whereas For DML
commands autocommit is to be turned
ON explicitly.
20. WHAT IS DIFFERENCE BETWEEN A TRANSACTION AND A QUERY?
Ans: A Transaction is unit of some commands where as Query is a single
line request for the information from the
database.
21. WHAT IS DIFFERENCE BETWEEN TRUNCATE AND DELETE COMMANDS?
Ans: Truncate Command will delete all the records where as Delete
Command will delete specified or all the
records depending only on the condition given.
22. WHAT IS DIFFERENCE BETWEEN UPDATE AND ALTER COMMANDS?
Ans: Alter command is used to modify the database objects where as the
Update command is used to modify the
values of a data base objects.
23. WHAT ARE COMMANDS OF TCL CATEGORY?
Ans: Grant and Revoke are the two commands belong to the TCL Category.

24. WHICH IS AN EFFICIENT COMMAND - TRUNCATE OR DELETE? WHY?
Ans: Delete is the efficient command because using this command we can
delete only those records that are not
really required.
25. WHAT ARE RULES FOR NAMING A TABLE OR COLUMN?
Ans: 1) Names must be from 1 to 30 bytes long.
2) Names cannot contain quotation marks.
3) Names are not case sensitive.
4) A name must begin with an alphabetic character from your database
character set and the characters $ and #.
But these characters are discouraged.
5) A name cannot be ORACLE reserved word.
6) A name must be unique across its namespace. Objects in the name
space must have different names.
7) A name can be enclosed in double quotes.
26. HOW MANY COLUMNS CAN A TABLE HAVE?
Ans: A Table can have 1000 columns.
27. WHAT ARE DIFFERENT DATATYPES SUPPORTED BY SQL?
Ans: Char (size), Nchar (size), Varchar2 (size), Nvarchar2 (size) data
types for character values,
Number (precision, scale), Number, Number (n), Float, Float (binary
precision) data types for numerical values,
Date data type for date values,
Long, Raw (size), Long Raw, Clob, Blob, Nclob, Bfile for large objects.
28. WHAT IS DIFFERENCE BETWEEN LONG AND LOB DATATYPES?
Ans:
LOB LONG
1) The maximum size is 4GB.
2) LOBs (except NCLOB) can be attributes of an object type.
3) LOBs support random access to data.
4) Multiple LOB columns per table or LOB attributes in an object type.
1) The maximum size is 2GB. 2) LONGs cannot. 3) LONGs support only
sequential access.
4) Only one LONG column was allowed in a table
29. WHAT IS DIFFERENCE BETWEEN CHAR AND VARCHAR2 DATATYPES?
Ans: Varchar2 is similar to Char but can store variable no. Of
characters and while querying the table varchar2
trims the extra spaces from the column and fetches the rows that
exactly match the criteria.
30. HOW MUCH MEMORY IS ALLOCATED FOR DATE DATATYPE? WHAT IS DEFAULT
DATE
FORMAT IN ORACLE?
Ans: For Date data type oracle allocates 7 bytes Memory.
Default Date Format is: DD-MON-YY.
31. WHAT IS RANGE FOR EACH DATATYPE OF SQL?
Ans:
Datatype Range
Char Varchar2 Number Float LONG, RAW, LONGRAW Large Objects
(LOB’s) 2000 bytes 4000 bytes
Precision 1 to 38 Scale -84 to 127 Precision 38 decimals Or 122 binary
precision 2 GB 4GB
32. HOW TO RENAME A COLUMN?
Ans: We can’t rename a Column of a table directly. So we follow the
following steps.
To Rename a Column:
a) Alter the table specifying new column name to be given and data
type.
b) Then copy the values in the column to be renamed into new column.
c) drop the old column.
33. HOW TO DECREASE SIZE OR CHANGE DATATYPE OF A COLUMN?
Ans: To Decrease the size of a Data type of a column
i. Truncate the table first.
ii. Alter the table column whose size is to be decreased using the same
name and data type but new size.
34. WHAT IS A CONSTRAINT? WHAT ARE ITS VARIOUS LEVELS?
Ans: Constraint: Constraints are representators of the column to
enforce data entity and consistency.There r two
levels
1)Column-level constraints 2)Table-level constraints.

35. LIST OUT ALL THE CONSTRAINTS SUPPORTED BY SQL.
Ans: Not Null, Unique, Check, Primary Key and Foreign Key or
Referential Integrity.
36. WHAT IS DIFFERENCE BETWEEN UNIQUE+NOT NULL AND PRIMARY KEY?
Ans: Unique and Not Null is a combination of two Constraints that can
be present any number of times in a table
and can’t be a referential key to any column of an another table where
as Primary Key is single Constraint that
can be only once for table and can be a referential key to a column of
another table becoming a referential integrity.
37. WHAT IS A COMPOSITE PRIMARY KEY?
Ans: A Primary key created on combination of columns is called
Composite Primary Key.
38. WHAT IS A CANDIDATE COLUMN? HOW MANY CANDIDATE COLUMNS CAN BE
POSSIBLE
PER COMPOSITE PRIMARY KEY?
Ans:

39. HOW TO DEFINE A NULL VALUE?
Ans: A NULL value is something which is unavailable, it is neither zero
nor a space and any mathematical
calculation with NULL is always NULL.
40. WHAT IS NULL? A CONSTRAINT OR DEFAULT VALUE?
Ans: It is a default value.
41. WHAT IS DEFAULT VALUE FOR EVERY COLUMN OF A TABLE?
Ans: NULL.
42. WHAT IS CREATED IMPLICITLY FOR EVERY UNIQUE AND PRIMARY KEY
COLUMNS?
Ans: Index.
43. WHAT ARE LIMITATIONS OF CHECK CONSTRAINT?
Ans: In this we can’t specify Pseudo Columns like sysdate etc.
44. WHAT IS DIFFERENCE BETWEEN REFERENCES AND FOREIGN KEY CONSTRAINT?
Ans: References is used as column level key word where as foreign key
is used as table level constraint.
45. WHAT IS “ON DELETE CASCADE”?
Ans: when this key word is included in the definition of a child table
then whenever the records from the parent
table is deleted automatically the respective values in the child table
will be deleted.
46. WHAT IS PARENT-CHILD OR MASTER-DETAIL RELATIONSHIP?
Ans: A table which references a column of another table(using
References)is called as a child table(detail table) and a table which
is being referred is called Parent (Master)
Table .
47. HOW TO DROP A PARENT TABLE WHEN IT’S CHILD TABLE EXISTS?
Ans: Using “on delete cascade”.
48. IS ORACLE CASE SENSITIVE?
Ans: NO
49. HOW ORACLE IDENTIFIES EACH RECORD OF TABLE UNIQUELY?
Ans: By Creating indexes and reference IDs.
50. WHAT IS A PSEUDO-COLUMN? NAME SOME PSEUDO-COLUMNS OF ORACLE?
Ans: Columns that are not created explicitly by the user and can be
used explicitly in queries are called
Pseudo-Columns.
Ex:currval,nextval,sysdate….
51. WHAT FOR “ORDER BY” CLAUSE FOR A QUERY?
Ans: To arrange the query result in a specified
order(ascending,descending) by default it takes ascending order.
52. WHAT IS “GROUP BY” QUERIES?
Ans: To group the query results based on condition.
53. NAME SOME AGGREGATE FUNCTIONS OF SQL?
Ans: AVG, MAX, SUM, MIN,COUNT.
54. WHAT IS DIFFERENCE BETWEEN COUNT (), COUNT (*) FUNCTIONS?
Ans: Count () will count the specified column whereas count (*) will
count total no. of rows in a table.
55. WHAT FOR ROLLUP AND CUBE OPERATORS ARE?
Ans: To get subtotals and grand total of values of a column.
56. WHAT IS A SUB-QUERY?
Ans: A query within a query is called a sub query where the result of
inner query will be used by the outer query.
57. WHAT ARE SQL OPERATORS?
Ans: Value (), Ref () is SQL operator.
58. EXPLAIN “ANY”,”SOME”,”ALL”,”EXISTS” OPERATORS?
Ans: Any: The Any (or it’s synonym SOME) operator computes the lowest
value from the set and compares a
value to each returned by a sub query.
All: ALL compares a value to every value returned by SQL.
Exists: This operator produces a BOOLWAN results. If a sub query
produces any result then it evaluates it to
TRUE else it evaluates it to FALSE.
59. WHAT IS A CORRELATED SUB QUERY, HOW IT IS DIFFERENT FROM A NORMAL
SUB QUERY?
Ans: A correlated subquery is a nested subquery, which is executed once
for each ‘Candidate row’ by the main
query, which on execution uses a value from a column in the outer
query. In normal sub query the result of inner
query is dynamically substituted in the condition of the outer query
where as in a correlated subquery, the column
value used in inner query refers to the column value present in the
outer query forming a correlated subquery.
60. WHAT IS A JOIN - TYPES OF JOINS?
Ans: A join is used to combine two or more tables logically to get
query results.
There are four types of Joins namely
EQUI Join
NON-EQUI Join
SELF Join
OUTER Join.
61. WHAT ARE MINIMUM REQUIREMENTS FOR AN EQUI-JOIN?
Ans: There shold be atleast one common column between the joining
tables.
62. WHAT IS DIFFERENCE BETWEEN LEFT, RIGHT OUTER JOIN?
Ans:If there r any values in one table that do not have corresponding
values in the other,in an equi join that row
will not be selected.Such rows can be forcefully selected by using
outer join symbol(+) on either of the sides(left
or right) based on the requirement.
63. WHAT IS DIFFERENCE BETWEEN EQUI AND SELF JOINS?
Ans: SELF JOIN is made within the table whereas
EQUI JOIN is made between different tables having common column.
64. WHAT ARE “SET” OPERATORS?
Ans: UNION, INTERSECT or MINUS is called SET OPERATORS.
65. WHAT IS DIFFERENCE BETWEEN “UNION” AND “UNION ALL”
OPERATORS?
Ans: UNION will return the values distinctly whereas UNION ALL will
return even duplicate values.
66. NAME SOME NUMBER, CHARACTER, DATE, CONVERSION, OTHER
FUNCTIONS.
Ans: Number Functions:
Round (m, [n]),
Trunc (m, [n]),
Power (m, n),
Sqrt,
Abs (m),
Ceil (m),
Floor (m),
Mod (m, n)
Character Functions:
Chr (x)
Concert (string1, string2)
Lower (string)
Upper (string)
Substr (string, from_str, to_str)
ASCII (string)
Length (string)
Initcap (string).
Date Functions:
sysdate
Months between (d1, d2)
To_char (d, format)
Last day (d)
Next_day (d, day).
Conversion Functions:
To_char
To_date
To_number
67. WHAT IS DIFFERENCE BETWEEN MAX () AND GREATEST () FUNCTIONS?
Ans: MAX is an aggregate function which takes only one column name of a
table as parameter whereas Greatest is
a general function which can take any number of values and column
names from dual and table respectively.
68. WHAT FOR NVL () FUNCTION IS?
Ans: NVL Function helps in substituting a value in place of a NULL.
69. WHAT FOR DECODE () FUNCTION IS?
Ans: It is substitutes value basis and it actually does an
‘if-then-else’ test.
70. WHAT IS DIFFERENCE BETWEEN TRANSLATE () AND REPLACE ()
FUNCTIONS?
Ans: Translate() is a superset of functionality provided by
Replace().
71. WHAT IS DIFFERENCE BETWEEN SUBSTR () AND INSTR () FUNCTIONS?
Ans: Substr() will return the specified part of a string whereas
Instr() return the position of the specified part of the string.
72. WHAT IS A JULIAN DAY NUMBER?
Ans: It will return count of the no. Of days between January 1, 4712 BC
and the given date.
73. HOW TO DISPLAY TIME FROM A DATE DATA?
Ans: By using time format as ‘hh [hh24]: mi: ss’ in to_char() function.
74. HOW TO INSERT DATE AND TIME INTO A DATE COLUMN?
Ans: By using format ‘dd-mon-yy hh [hh24]: mi: ss’ in to_date()
function.
75. WHAT IS DIFFERENCE BETWEEN TO_DATE () AND TO_CHAR () CONVERSION
FUNCTIONS?
Ans: To_date converts character date to date format whereas
To_char function converts date or numerical values to characters.
76. WHAT IS A VIEW? HOW IT IS DIFFERENT FROM A TABLE?
Ans: View is database object, which exists logically but contains no
physical data and manipulates the base table.
View is saved as a select statement in the database and contains no
physical data whereas Table exists physically.
77. WHAT IS DIFFERENCE BETWEEN SIMPLE AND COMPLEX VIEWS?
Ans: Simple views can be modified whereas Complex views(created based
on more than one table) cannot be
modified.
78. WHAT IS AN INLINE VIEW?
Ans: Inline view is basically a subquery with an alias that u can use
like a view inside a SQL statement. It is not a
schema object like SQL-object.
79. HOW TO UPDATE A COMPLEX VIEW?
Ans: Using ‘INSTEAD OF’ TRIGGERS Complex views can be Updated.
80. WHAT FOR “WITH CHECK OPTION” FOR A VIEW?
Ans: “WITH CHECK OPTION” clause specifies that inserts and updates r
performed through the view r not
allowed to create rows which the view cannot select and therefore
allows integrity constraints and data validation
checks to be enforced on data being inserted or updated.
81. WHAT IS AN INDEX? ADVANTAGE OF AN INDEX
Ans: An Index is a database object used n Oracle to provide quick
access to rows in a table. An Index increases the
performance of the database.
82. WHAT IS A SEQUENCE? PSEUDO-COLUMNS ASSOCIATED WITH SEQUENCE?
Ans: Sequence is a Database Object used to generate unique integers
to use as primary keys. Nextval, Currval are the Pseudo Columns
associated with the sequence.
**83. WHAT IS A CLUSTER? WHEN TO USE A CLUSTER? HOW TO DROP A CLUSTER
WHEN
CLUSTERED TABLE EXISTS?
Ans: Cluster and Indexes are transparent to the user. Clustering is a
method of storing tables that are intimately
related and are often joined together into the same area on the disk.
When cluster table exists then to drop
cluster we have to drop the table first then only cluster is to be
dropped.
84. WHAT IS A SNAPSHOT OR MATERIALIZED VIEW?
Ans: Materialized views can be used to replicate data. Earlier the data
was replicated through CREATE
SNAPSHOT command. Now CREATE MATERIALIZED VIEW can be used as synonym
for CREATE
SNAPSHOT. Query performance is improved using the materialized view as
these views pre calculate expensive
joins and aggregate operations on the table.
85. WHAT IS A SYNONYM?
Ans: A Synonym is a database object that allows you to create
alternate names for Oracle tables and views. It is an
alias for a table, view, snapshot, sequence, procedure, function or
package.
86. WHAT IS DIFFERENCE BETWEEN PRIVATE AND PUBLIC SYNONYM?
Ans: Only the user or table owner can reference Private synonym whereas
any user can reference the Public
synonym.
87. WHAT IS DIFFERENCE BETWEEN “SQL” AND “SQL*PLUS” COMMANDS?
Ans: SQL commands are stored in the buffer whereas SQL*PLUS are not.
**88. NAME SOME SQL*PLUS COMMANDS?
Ans: DESC [CRIBE], START, GET, SAVE, / are SQL*PLUS COMMANDS.
89. WHAT ARE “SQL*PLUS REPORTING” COMMANDS?
Ans: SPOOL file-name, SPOOL OUT, TTITLE, BTITLE, BREAK ON, COMPUTE
OF [break] ON etc are SQL*PLUS REPORTING
COMMANDS.
90. WHAT ARE SYSTEM AND OBJECT PRIVILEGES?
Ans: Connect and Resource etc are System Privileges.
Create , Select, Insert, Alter etc are Object Privileges.

91. WHAT FOR DCL COMMANDS ARE?
Ans: Commit, Rollback are DCL commands.
92. WHAT FOR GRANT COMMAND WITH “WITH GRANT OPTION”?
Ans: “With Grant Option” with Grant Command gives privileges to the
user to grant privileges to other user(s)
among the privileges he/she has.
93. HOW TO CHANGE PASSWORD OF A USER?
Ans: Using Password command or
Using ALTER USER IDENTIFIED BY COMAND.
94. WHAT IS A SCHEMA AND SCHEMA OBJECTS?
Ans: A schema is a collection of logical structures of data, or schema
objects. A schema is owned by the database
user and has the same name as that of user. Each user owns a single
schema. Schema objects include following
type of objects Clusters, Database Links, Functions, Indexes, Packages,
Procedures, Sequences, Synonyms, Tables,
Database Triggers, Views.
**95. HOW TO STARTUP AND SHUTDOWN ORACLE DATABASE?
Ans: Startup and Shutdown Oracle database can be done by only the
administator. Startup is done by using
STARTUP command and Shutdown is done by SHUTDOWN command
96. WHAT IS A SESSION?
Ans: The period between Login and Logoff on schema.
97. WHAT IS A CLIENT PROCESS? WHAT IS A SERVER PROCESS?
Ans: ref: 172 Q & A.
98. HOW TO MAKE EVERY DML OPERATION AS AUTO COMMIT?
Ans: By using SET AUTOCOMMIT ON command.
99. HOW TO DISPLAY DATA PAGE WISE IN SQL?
Ans: By using SET PAUSE ON command.
100. HOW TO CHANGE LINE SIZE, PAGE SIZE AND SQL PROMPT?
Ans: By using SET LINESIZE , SET PAGESIZE ,
SET SQLPROMPT .
101. HOW PL/SQL IS DIFFERENT FROM SQL?
Ans: SQL is non-procedural language whereas PL/SQL is procedural
language that includes features and design
of programming language.
102. WHAT IS ARCHITECTURE OF PL/SQL?
Ans:
103. WHAT IS A PL/SQL BLOCK?
Ans: DECLARE

BEGIN

EXCEPTION

END;
104. WHAT ARE DIFFERENT TYPES OF PL/SQL BLOCKS?
Ans: DECLARE BLOCK: In this block all the declarations of the variable
used in the program is made. If no
variables are used this block will become optional.

BEGIN BLOCK: In this block all the executable statements are
placed.
This block is Mandatory.

EXCEPTION BLOCK: In this block all the exceptions are handled.
This block is also very optional.

END: Every begin must be ended with this END; statement.
105. WHAT ARE COMPOSITE DATA TYPES?
Ans: Records, Tables are two Composite data types.
106. WHAT IS SCOPE OF A VARIABLE IN PL/SQL BLOCK?
Ans: The visuability and accessibility of a variable within the
block(s) is called scope of a variable.
107. WHAT IS A NESTED BLOCK?
Ans: A block within a block is called Nested Block.
108. WHAT IS A PL/SQL ENGINE?
Ans: The PL/SQL engine accepts any valid PL/SQL block as input,
executes the procedural part of the statements
and sends the SQL statements to the SQL statement executor in the
Oracle server.
109. WHAT IS DEFAULT VALUE FOR A NUMERIC PL/SQL VARIABLE?
Ans: NULL
110. WHAT IS DIFFERENCE BETWEEN SIMPLE LOOP AND A FOR LOOP?
Ans: Simple requires declaration of variables used in it and exit
condition but For Loop doesn’t require this.
111. WHAT IS A CURSOR? STEPS TO USE A CURSOR?
Ans: Cursor is Private SQL area in PL/SQL.
Declare the Cursor,
Open the Cursor,
Fetch values from SQL into the local Variables,
Close the Cursor.
112. HOW MANY TYPES OF CURSORS ARE SUPPORTED BY ORACLE?
Ans: There are two types of cursors namely Implicit Cursor, Explicit
Cursor.
113. WHAT IS A CURSOR FOR LOOP?
Ans: Cursor For Loop is shortcut process for Explicit Cursors because
the Cursor is Open, Rows are fetched once
for each iteration and the cursor is closed automatically when all the
rows have been processed.
114. WHAT ARE CURSOR ATTRIBUTES?
Ans: %Found
%NotFound
%IsOpen
%RowCount are the cursor attributes.
115. WHAT IS USE OF CURSOR WITH “FOR UPDATE OF” CLAUSE?
Ans: This Clause stop accessing of other users on the particular
columns used by the cursor until the COMMIT is
issued.
116. WHAT IS AN EXCEPTION? HOW IT IS DIFFERENT FROM ERROR?
Ans: Whenever an error occurs Exception raises.
Error is a bug whereas the Exception is a warning or error
condition.
117. NAME SOME BUILT-IN EXCEPTIONS.
Ans: Too_Many_Rows
No_Data_Found
Zero_Divide
Not_Logged_On
Storage_Error
Value_Error etc.
118. HOW TO CREATE A USER-DEFINED EXCEPTION?
Ans: User-Defined Exception is created as follows:
DECLARE
EXCEPTION;
- - - - - - - - - ;
- - - - - - - - -;
BEGIN
- - - - - - - - -;
- - - - - - - - -;
RAISE ;
EXCEPTION
WHEN THEN
- - - - - - - - -;
- - - - - - - - -;
END;
119. WHAT IS “OTHERS” EXCEPTION?
Ans: It is used to along with one or more exception handlers.
This will handle all the errors not already handled in the block.
120. WHAT IS SCOPE OF EXCEPTION HANDLING IN NESTED BLOCKS?
Ans: Exception scope will be with in that block in which exception
handler is written.
121. WHAT IS A SUB-PROGRAM?
Ans: A SUBPROGRAM IS A PL/SQL BLOCK, WHICH WILL BE INVOKED BY TAKING
PARAMATERS.
122. WHAT ARE DIFFERENT TYPES OF SUB-PROGRAMS?
Ans: THEY R TWO TYPES: 1) PROCEDURE 2) FUNCION.

123. HOW A PROCEDURE IS DIFFERENT FROM A FUNCTION?
Ans: Function has return key word and returns a value whereas a
Procedure doesn’t return any value.
124. WHAT ARE TYPES OF PARAMETERS THAT CAN BE PASSED TO FUNCTION OR
PROCEDURE?
Ans: IN, IN OUT, OUT.
125. WHAT IS “IN OUT” PARAMETER?
Ans: A parameter, which gets value into the Procedure or Function and
takes the value out of the Procedure or
Function area, is called IN OUT parameter.
126. DOES ORACLE SUPPORTS PROCEDURE OVERLOADING?
Ans: NO.
127. WHAT IS A PACKAGE AND PACKAGE BODY?
Ans: Package is declarative part of the functions and procedures stored
in that package and package body is
the definition part of the functions and procedures of that package.
128. WHAT IS ADVANTAGE OF PACKAGE OVER PROCEDURE OR FUNCTION?
Ans: Packages provides Functions or Procedures Overloading facility and
security to those Functions or
Procedures.
129. IS IT POSSIBLE TO HAVE A PROCEDURE AND A FUNCTION WITH THE SAME
NAME?
Ans: NO if it is out side a Package, YES if it is within a Package.
130. DOES ORACLE SUPPORTS RECURSIVE FUNCTION CALLS?
Ans: YES.
131. WHAT IS A TRIGGER? HOW IT IS DIFFERENT FROM A PROCEDURE?
Ans: Trigger: A Trigger is a stored PL/SQL program unit associated
with a specific database table.
Procedure: A Procedure is to be explicitly called by the user
whereas Triggers are automatically called implicitly
by Oracle itself whenever event Occurs.
132. WHAT IS DIFFERENCE BETWEEN A TRIGGER AND A CONSTRAINT?
Ans: Constraints are always TRUE whereas Triggers are NOT always TRUE
and Constraints has some limitations
whereas Trigger has no limitations.
133. WHAT ARE DIFFERENT EVENTS FOR A TRIGGER AND THEIR SCOPES?
Ans: Insert, Update or Delete.
134. WHAT IS DIFFERENCE BETWEEN TABLE LEVEL AND ROW LEVEL TRIGGERS?
Ans: Table level Triggers execute once for each table based transaction
whereas Row level Triggers will execute
once FOR EACH ROW.
** 135. WHAT ARE AUTONOMOUS TRIGGERS?
Ans:
136. WHAT IS AN “INSTEAD OF” TRIGGER?
Ans: These Triggers are used with the Complex Views only to make
possible of Insert, Update and Delete on those
Views.
** 137. HOW MANY TRIGGERS CAN BE CONFIGURED ON A TABLE AND VIEW?
Ans:
138. WHAT IS “TABLE MUTATING” ERROR? HOW TO SOLVE IT?
Ans: ORA-04091: Table name is mutating, trigger/function may not see it
Cause : A trigger or a user-defined PL/SQL function that is referenced
in the statement attempted to query or
modify a table that was in the middle of being modified by the
statement that fired the trigger.
Action : Rewrite the trigger or function so it does not read the table.
139. WHEN TO USE “:NEW” AND “:OLD” SPECIFIERS?
Ans: The prefix :old is used to refer to values already present in the
table. The prefix :new is a correlation name
that refers to the new value that is inserted / updated.
** 140. WHAT IS A CONDITIONAL TRIGGER?
Ans:
** 141. HOW TO CREATE A USER-DEFINED VARIABLE IN PL/SQL?
Ans:
142. HOW TO CREATE AN ARRAY VARIABLE IN PL/SQL?
Ans: Using CREATE [OR REPLACE] TYPE
AS VARRAY (size) OF ELEMENT_TYPE (NOT NULL) Command;
**143. HOW TO MAKE A USER-DEFINED DATA TYPE GLOBAL IN PL/SQL?
Ans:
144. HOW TO CREATE AN OBJECT IN ORACLE?
Ans: Using CREATE [OR REPLACE] TYPE AS OBJECT (ATTRIBUTE
NAME DATA TYPE,..)
Command
145. WHAT IS A TRANSIENT AND PERSISTENT OBJECT?
Ans: The Object created in a table is called Persistent Object.
Object created on execution of PL/SQL block is called Transient
Object.
**146. WHAT IS A COLUMN OBJECT AND TABLE OBJECT?
Ans: A Column Object is only a Column of a table.

147. HOW TO GRANT PERMISSION ON AN OBJECT TO OTHER USER?
Ans: GRANT ON TO .
148. WHAT IS A COLLECTION OF ORACLE?
Ans: Varray, Nested Table is a collection of Oracle.
149. WHAT IS DIFFERENCE BETWEEN VARRAY AND NESTED TABLE?
Ans: Varray has a fixed size.
Nested tables can carry any number of values.
150. HOW TO MODIFY CONTENTS OF A VARRAY IN ORACLE?
Ans: To modify a stored VARRAY it has to selected into a
PL/SQL variable and then inserted back into the table.
151. WHAT IS USE OF “THE” OPERATOR FOR NESTED TABLE?
Ans: THE operator allows nested tables to be manipulated using DML when
it is stored in a Table.
152. WHICH PACKAGE IS USED FOR FILE INPUT/OUTPUT IN ORACLE?
Ans: UTL_FILE Package is used for File input/output in Oracle.
153. NAME SOME METHODS AND PROCEDURES OF FILE I/O PACKAGE?
Ans: FOPEN
FCLOSE
FFLUSH
IS_OPEN
GET_LINE
PUT_LINE
PUTF
NEW_LINE

**154. WHAT IS SQLJ? HOW IT IS DIFFERENT FROM JDBC CONNECTIVITY?
Ans: SQLJ is basically a Java program containing embedded static SQL
s