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.

Save for later:
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • del.icio.us
  • De.lirio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Netvouz
  • RawSugar
  • Reddit
  • description
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
  • YahooMyWeb

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
statements that are compatible with
Java design philosophy.
155. WHAT IS AN ITERATOR? Name some TYPES OF ITERATORS?
Ans: SQLJ Iterators are basically record groups generated during
transaction, which requires manipulation of
more than one records from one or more tables. There are two types
Iterators namely Named Iterator and
Positional Iterator.
** 156. WHAT ARE DIFFERENT STEPS TO WRITE A DYNAMIC SQL PROGRAM?
Ans:
Eg: char c_sqlstring[]={“DELETE FROM sailors WHERE rating>5â€};
EXEC SQL PREPARE readytogo FROM :c_sqlstring;
EXEC SQL EXECUTE readytogo;
157. WHAT IS TABLE PARTITIONING AND INDEX PARTITIONING?
Ans: Oracle8 allows tables and Indexes to be partitioned or broken up
into smaller parts based on range of key
values. Partitioning is a “divide and conquer†strategy that improves
administration and performance in data
warehouse and OLTP systems.
158. WHAT IS PARALLEL PROCESSING?
Ans:
159. WHAT IS PHYSICAL MEMORY STRUCTURE OF ORACLE?
Ans: The basic oracle memory structure associated with Oracle includes:
Software Code Areas
The System Global Area (SGA)
The Database Buffer Cache
The shared Pool
The Program Global Areas (PGA)
Stack Areas
Data Areas
Sort Areas
160. WHAT IS LOGICAL MEMORY STRUCTURE OF ORACLE?
DB_STG
STUDENT SYSTEM
EMP DEPT EMP_IND ….. ..
DATA DATA INDEX
Ans: Database
Tablespace
DB Object
Segment
Extends

161. WHAT IS SGA?
Ans: A System Global Area is a group of shared memory allocated by
Oracle that contains data and control
information for one Oracle database instance. IF the multiple users are
concurrently connected to the same
instance, the data in the instance’s SGA is “shared†among the users.
Consequently, the SGA is
often referred to as either the “system Global Area†or the “Shared
Global Areaâ€.
162. WHAT IS PGA?
Ans: The Program Global Area is a memory buffer that contains data and
control information for
a server process. A PGA is created by Oracle when a server process is
started. The information in a PGA
depends on the configuration of Oracle.
163. WHAT IS AN ORACLE INSTANCE?
Ans: Every time a database is started, an SGA is allocated and Oracle
background processes are started.
The combination of these processes and memory buffers is called an
Oracle instance.
164. WHAT ARE DIFFERENT ORACLE PROCESSES?
Ans: A process is a “thread of control†or a mechanism in an operating
system that can be execute a series
of steps. Some operating systems use terms jobs or task. A process
normally has its own private memory area
in which it runs. An Oracle database system has general types of
process: User Processes and Oracle Processes.
**165. WHAT IS DIFFERENCE BETWEEN PMON AND SMON?
Ans: SMON (System Monitor) performs instance recovery at instance of
startup. In a multiple instance system
(one that uses the parallel server), SMON of one instance can also
perform instance recovery
other instance that have failed whereas The PMON (Process Monitor)
performs process recovery when
a user process fails.
**166. WHAT IS DIFFERENCE BETWEEN DATABASE AND TABLESPACE?
Ans:
167. WHAT IS JOB OF DATABASE WRITER (DBWR) PROCESS?
Ans: The Data Base Writer writes modified blocks from the database
buffer cache to the data files.
168. WHAT IS JOB OF LOG WRITER (LGWR) PROC*SS?
Ans: The Log Writer writes redo log files to disk. Redo log data is
generated in the redo log buffer of the SGA.
As transactions commit and log buffer fills, LGWR writes redo entries
into an online redo log file.
169. WHAT IS RECOVERER?
Ans: The Recover (RECO) is used to resolve distributed transactions
that are pending due to network or
system failure in a distributed database. At timed intervals, the local
RECO attempts to concept to remote
database and automatically complete the commit or rollback of the local
portion of any pending distributed
transactions.
170. WHAT IS ARCHIVER?
Ans: The Archiver (ARCH) copies the online redo log files to archival
storage when they are full.
ARCH is active only when a database’s redo log is used ARCHILOG mode.

** 171. WHAT IS A STORED QUERY?
Ans: VIEW
172. WHAT IS USER PROCESS AND SERVER PROCESS?
Ans: A User process is created and maintained to execute the software
code of an application program (such as
PRO * Program) or an ORACLE tool (such as SQL * DBA). The User process
also manages the communication
with server processes. User processes communication with the server
processes through the program interface.
Other processes call ORACLE processes. In a dedicated server
configuration, a server
Process handles requests for a single user process. A multithread
server configuration allows many user processes
to share a small number of server processes, minimizing the utilization
of available system resources.
**173. WHAT IS A SELF REFERENTIAL INTEGRITY?
Ans: Table related to itself .Foreign key of the table links to primary
key of the same table.
174. WHAT IS A “RAISE” STATEMENT?
Ans: It is used to Raise Exceptions.
175. WHAT IS ROWID? HOW IT IS DIFFERENT FROM ROWNUM?
Ans: Rowid is the address of the row at where it is stored in the
database. Rownum is count of records whereas
Rowid is identification of the each row.

Siddhartha went through a job interview and said:

1. What is Log Switch ?

The point at which ORACLE ends writing to one online redo log file
and begins writing to another is called a log switch.

2. What is On-line Redo Log?

The On-line Redo Log is a set of tow or more on-line redo files that
record all committed changes made to the database. Whenever a
transaction is committed, the corresponding redo entries temporarily
stores in redo log buffers of the SGA are written to an on-line redo
log file by the background process LGWR. The on-line redo log files
are used in cyclical fashion.

3. Which parameter specified in the DEFAULT STORAGE clause of CREATE
TABLESPACE cannot be altered after creating the tablespace?

All the default storage parameters defined for the tablespace can be
changed using the ALTER TABLESPACE command. When objects are created
their INITIAL and MINEXTENS values cannot be changed.

4. What are the steps involved in Database Startup ?

Start an instance, Mount the Database and Open the Database.

5. What are the steps involved in Instance Recovery ?

Rolling forward to recover data that has not been recorded in data
files, yet has been recorded in the on-line redo log, including the
contents of rollback segments. Rolling back transactions that have
been explicitly rolled back or have not been committed as indicated
by the rollback segments regenerated in step a. Releasing any
resources (locks) held by transactions in process at the time of the
failure. Resolving any pending distributed transactions undergoing a
two-phase commit at the time of the instance failure.

6. Can Full Backup be performed when the database is open ?

No.

7. What are the different modes of mounting a Database with the
Parallel Server ?

Exclusive Mode If the first instance that mounts a database does so
in exclusive mode, only that Instance can mount the database.
Parallel Mode If the first instance that mounts a database is
started in parallel mode, other instances that are started in
parallel mode can also mount the database.

What are the advantages of operating a database in ARCHIVELOG mode
over operating it in NO ARCHIVELOG mode ? Complete database recovery
from disk failure is possible only in ARCHIVELOG mode. Online
database backup is possible only in ARCHIVELOG mode.
8. What are the steps involved in Database Shutdown ?

Close the Database, Dismount the Database and Shutdown the Instance.

9. What is Archived Redo Log ?

Archived Redo Log consists of Redo Log files that have archived
before being reused.

10. What is Restricted Mode of Instance Startup ?

An instance can be started in (or later altered to be in) restricted
mode so that when the database is open connections are limited only
to those whose user accounts have been granted the RESTRICTED
SESSION system privilege.

11. What is Partial Backup ?

A Partial Backup is any operating system backup short of a full
backup, taken while the database is open or shut down.

12. What is Mirrored on-line Redo Log ?

A mirrored on-line redo log consists of copies of on-line redo log
files physically located on separate disks, changes made to one
member of the group are made to all members.

13. What is Full Backup ?

A full backup is an operating system backup of all data files, on-
line redo log files and control file that constitute ORACLE database
and the parameter.

14. Can a View based on another View ?

Yes.

15. Can a Tablespace hold objects from different Schemes ?

Yes.

16. Can objects of the same Schema reside in different tablespaces.?

Yes.

17. What is the use of Control File ?

When an instance of an ORACLE database is started, its control file
is used to identify the database and redo log files that must be
opened for database operation to proceed. It is also used in
database recovery.

18. Do View contain Data ?

Views do not contain or store data.

19. What are the Referential actions supported by FOREIGN KEY
integrity constraint ?

UPDATE and DELETE Restrict - A referential integrity rule that
disallows the update or deletion of referenced data. DELETE Cascade -
When a referenced row is deleted all associated dependent rows are
deleted.

20. What are the type of Synonyms?

There are two types of Synonyms Private and Public

21. What is a Redo Log ?

The set of Redo Log files YSDATE,UID,USER or USERENV SQL functions,
or the pseudo columns LEVEL or ROWNUM.

22. What is an Index Segment ?

Each Index has an Index segment that stores all of its data.

23. Explain the relationship among Database, Tablespace and Data
file.?

Each databases logically divided into one or more tablespaces one or
more data files are explicitly created for each tablespace

24. What are the different type of Segments ?

Data Segment, Index Segment, Rollback Segment and Temporary Segment.

25. What are Clusters ?

Clusters are groups of one or more tables physically stores together
to share common columns and are often used together.

26. What is an Integrity Constrains ?

An integrity constraint is a declarative way to define a business
rule for a column of a table.

27. What is an Index ?

An Index is an optional structure associated with a table to have
direct access to rows, which can be created to increase the
performance of data retrieval. Index can be created on one or more
columns of a table.

28. What is an Extent ?

An Extent is a specific number of contiguous data blocks, obtained
in a single allocation, and used to store a specific type of
information.

29. What is a View ?

A view is a virtual table. Every view has a Query attached to it.
(The Query is a SELECT statement that identifies the columns and
rows of the table(s) the view uses.)

30. What is Table ?

A table is the basic unit of data storage in an ORACLE database. The
tables of a database hold all of the user accessible data. Table
data is stored in rows and columns.

31. What is a Synonym ?

A synonym is an alias for a table, view, sequence or program unit.

32. What is a Sequence ?

A sequence generates a serial list of unique numbers for numerical
columns of a database’s tables.

33. What is a Segment ?

A segment is a set of extents allocated for a certain logical
structure.

34. What is schema?

A schema is collection of database objects of a User.

35. Describe Referential Integrity ?

A rule defined on a column (or set of columns) in one table that
allows the insert or update of a row only if the value for the
column or set of columns (the dependent value) matches a value in a
column of a related table (the referenced value). It also specifies
the type of data manipulation allowed on referenced data and the
action to be performed on dependent data as a result of any action
on referenced data.

36. What is Hash Cluster ?

A row is stored in a hash cluster based on the result of applying a
hash function to the row’s cluster key value. All rows with the same
hash key value are stores together on disk.

37. What is a Private Synonyms ?

A Private Synonyms can be accessed only by the owner.

40. What is Database Link ?

A database link is a named object that describes a “path” from one
database to another.

41. What is a Tablespace?

A database is divided into Logical Storage Unit called tablespaces.
A tablespace is used to grouped related logical structures together

42. What is Rollback Segment ?

A Database contains one or more Rollback Segments to temporarily
store “undo” information.

43. What are the Characteristics of Data Files ?

A data file can be associated with only one database. Once created a
data file can’t change size. One or more data files form a logical
unit of database storage called a tablespace.

44. How to define Data Block size ?

A data block size is specified for each ORACLE database when the
database is created. A database users and allocated free database
space in ORACLE datablocks. Block size is specified in INIT.ORA file
and can’t be changed latter.

45. What does a Control file Contain ?

A Control file records the physical structure of the database. It
contains the following information.
Database Name
Names and locations of a database’s files and redolog files.
Time stamp of database creation.

46.What is difference between UNIQUE constraint and PRIMARY KEY
constraint ?

A column defined as UNIQUE can contain Nulls while a column defined
as PRIMARY KEY can’t contain Nulls.

47.What is Index Cluster ?

A Cluster with an index on the Cluster Key

48.When does a Transaction end ?

When it is committed or Rollbacked.

49. What is the effect of setting the value “ALL_ROWS” for
OPTIMIZER_GOAL parameter of the ALTER SESSION command ? What are the
factors that affect OPTIMIZER in choosing an Optimization approach ?

Answer The OPTIMIZER_MODE initialization parameter Statistics in the
Data Dictionary the OPTIMIZER_GOAL parameter of the ALTER SESSION
command hints in the statement.

50. What is the effect of setting the value “CHOOSE” for
OPTIMIZER_GOAL, parameter of the ALTER SESSION Command ?

The Optimizer chooses Cost_based approach and optimizes with the
goal of best throughput if statistics for atleast one of the tables
accessed by the SQL statement exist in the data dictionary.
Otherwise the OPTIMIZER chooses RULE_based approach.

51. What is the function of Optimizer ?

The goal of the optimizer is to choose the most efficient way to
execute a SQL statement.

52. What is Execution Plan ?

The combinations of the steps the optimizer chooses to execute a
statement is called an execution plan.

53. What are the different approaches used by Optimizer in choosing
an execution plan ?

Rule-based and Cost-based.

54. What does ROLLBACK do ?

ROLLBACK retracts any of the changes resulting from the SQL
statements in the transaction.

55. What is SAVE POINT ?

For long transactions that contain many SQL statements, intermediate
markers or savepoints can be declared which can be used to divide a
transaction into smaller parts. This allows the option of later
rolling back all work performed from the current point in the
transaction to a declared savepoint within the transaction.

56. What are the values that can be specified for OPTIMIZER MODE
Parameter ?

COST and RULE.

57. What is COST-based approach to optimization ?

Considering available access paths and determining the most
efficient execution plan based on statistics in the data dictionary
for the tables accessed by the statement and their associated
clusters and indexes.

58. What does COMMIT do ?

COMMIT makes permanent the changes resulting from all SQL statements
in the transaction. The changes made by the SQL statements of a
transaction become visible to other user sessions transactions that
start only after transaction is committed.

59. What is RULE-based approach to optimization ?

Choosing an executing planbased on the access paths available and
the ranks of these access paths.

60. What are the values that can be specified for OPTIMIZER_GOAL
parameter of the ALTER SESSION Command ?

CHOOSE,ALL_ROWS,FIRST_ROWS and RULE.

61. Define Transaction ?

A Transaction is a logical unit of work that comprises one or more
SQL statements executed by a single user.

62. What is Read-Only Transaction ?

A Read-Only transaction ensures that the results of each query
executed in the transaction are consistant with respect to the same
point in time.

63. What is a deadlock ? Explain .

Two processes wating to update the rows of a table which are locked
by the other process then deadlock arises. In a database environment
this will often happen because of not issuing proper row lock
commands. Poor design of front-end application may cause this
situation and the performance of server will reduce drastically.
These locks will be released automatically when a commit/rollback
operation performed or any one of this processes being killed
externally.

64. What is a Schema ?

The set of objects owned by user account is called the schema.

65. What is a cluster Key ?

The related columns of the tables are called the cluster key. The
cluster key is indexed using a cluster index and its value is stored
only once for multiple tables in the cluster.

66. What is Parallel Server ?

Multiple instances accessing the same database (Only In Multi-CPU
environments)

67. What are the basic element of Base configuration of an oracle
Database ?

It consists of
one or more data files.
one or more control files.
two or more redo log files.
The Database contains
multiple users/schemas
one or more rollback segments
one or more tablespaces
Data dictionary tables
User objects (table,indexes,views etc.,)
The server that access the database consists of
SGA (Database buffer, Dictionary Cache Buffers, Redo log buffers,
Shared SQL pool)
SMON (System MONito)
PMON (Process MONitor)
LGWR (LoG Write)
DBWR (Data Base Write)
ARCH (ARCHiver)
CKPT (Check Point)
RECO
Dispatcher
User Process with associated PGS

68. What is clusters ?

Group of tables physically stored together because they share common
columns and are often used together is called Cluster.

69. What is an Index ? How it is implemented in Oracle Database ?

An index is a database structure used by the server to have direct
access of a row in a table. An index is automatically created when a
unique of primary key constraint clause is specified in create table
comman (Ver 7.0)

70. What is a Database instance ? Explain

A database instance (Server) is a set of memory structure and
background processes that access a set of database files.
The process can be shared by all users. The memory structure that
are used to store most queried data from database. This helps up to
improve database performance by decreasing the amount of I/O
performed against data file.

71. WWhat is the use of ANALYZE command ?

To perform one of these function on an index,table, or cluster:
- To collect statistics about object used by the optimizer and store
them in the data dictionary.
- To delete statistics about the object ussed by object from the
data dictionary.
- To validate the structure of the object..
- To identify migrated and chained rows off the table or cluster.

72. What is default tablespace ?

The Tablespace to contain schema objects created without specifying
a tablespace name.

73. What are the system resources that can be controlled through
Profile ?

The number of concurrent sessions the user can establish the CPU
processing time available to the user’s session the CPU processing
time available to a single call to ORACLE made by a SQL statement
the amount of logical I/O available to the user’s session the amout
of logical I/O available to a single call to ORACLE made by a SQL
statement the allowed amount of idle time for the user’s session the
allowed amount of connect time for the user’s session.

74. What is Tablespace Quota ?

The collective amount of disk space available to the objects in a
schema on a particular tablespace.

76. What are the different Levels of Auditing ?

Statement Auditing, Privilege Auditing and Object Auditing.

77. What is Statement Auditing ?

Statement auditing is the auditing of the powerful system privileges
without regard to specifically named objects

78. What are the database administrators utilities avaliable ?

SQL * DBA - This allows DBA to monitor and control an ORACLE
database. SQL * Loader - It loads data from standard operating
system files (Flat files) into ORACLE database tables. Export (EXP)
and Import (imp) utilities allow you to move existing data in ORACLE
format to and from ORACLE database.

79. How can you enable automatic archiving ?

Shut the database
Backup the database
Modify/Include LOG_ARCHIVE_START_TRUE in init.ora file.
Start up the database.

80. What are roles? How can we implement roles ?

Roles are the easiest way to grant and manage common privileges
needed by different groups of database users. Creating roles and
assigning provides to roles. Assign each role to group of users.
This will simplify the job of assigning privileges to individual
users.

81. What are Roles ?

Roles are named groups of related privileges that are granted to
users or other roles.

82. What are the use of Roles ?

REDUCED GRANTING OF PRIVILEGES - Rather than explicitly granting the
same set of privileges to many users a database administrator can
grant the privileges for a group of related users granted to a role
and then grant only the role to each member of the group.
DYNAMIC PRIVILEGE MANAGEMENT - When the privileges of a group must
change, only the privileges of the role need to be modified. The
security domains of all users granted the group’s role automatically
reflect the changes made to the role.
SELECTIVE AVAILABILITY OF PRIVILEGES - The roles granted to a user
can be selectively enable (available for use) or disabled (not
available for use). This allows specific control of a user’s
privileges in any given situation.
APPLICATION AWARENESS - A database application can be designed to
automatically enable and disable selective roles when a user
attempts to use the application.

83. What is Privilege Auditing ?

Privilege auditing is the auditing of the use of powerful system
privileges without regard to specifically named objects.

84. What is Object Auditing ?

Object auditing is the auditing of accesses to specific schema
objects without regard to user.

85. What is Auditing ?

Monitoring of user access to aid in the investigation of database
use.

86. What are the responsibilities of a Database Administrator ?

Installing and upgrading the Oracle Server and application tools.
Allocating system storage and planning future storage requirements
for the database system. Managing primary database structures
(tablespaces) Managing primary objects (table,views,indexes)
Enrolling users and maintaining system security. Ensuring compliance
with Oralce license agreement Controlling and monitoring user access
to the database. Monitoring and optimizing the performance of the
database. Planning for backup and recovery of database information.
Maintain archived data on tape Backing up and restoring the
database. Contacting Oracle Corporation for technical support.

87. What is a trace file and how is it created ?

Each server and background process can write an associated trace
file. When an internal error is detected by a process or user
process, it dumps information about the error to its trace. This can
be used for tuning the database.

88. What is a profile ?

Each database user is assigned a Profile that specifies limitations
on various system resources available to the user.

89. How will you enforce security using stored procedures?

Don’t grant user access directly to tables within the application.
Instead grant the ability to access the procedures that access the
tables. When procedure executed it will execute the privilege of
procedures owner. Users cannot access tables except via the
procedure.

90. What are the dictionary tables used to monitor a database
spaces ?

DBA_FREE_SPACE
DBA_SEGMENTS
DBA_DATA_FILES.

91. What are the roles and user accounts created automatically with
the database?

DBA - role Contains all database system privileges.
SYS user account - The DBA role will be assigned to this account.
All of the base tables and views for the database’s dictionary are
store in this schema and are manipulated only by ORACLE. SYSTEM user
account - It has all the system privileges for the database and
additional tables and views that display administrative information
and internal tables and views used by oracle tools are created using
this username.

92. What are the minimum parameters should exist in the parameter
file (init.ora) ?

DB NAME - Must set to a text string of no more than 8 characters and
it will be stored inside the datafiles, redo log files and control
files and control file while database creation.
DB_DOMAIN - It is string that specifies the network domain where the
database is created. The global database name is identified by
setting these parameters
(DB_NAME & DB_DOMAIN) CONTORL FILES - List of control filenames of
the database. If name is not mentioned then default name will be
used.
DB_BLOCK_BUFFERS - To determine the no of buffers in the buffer
cache in SGA.
PROCESSES - To determine number of operating system processes that
can be connected to ORACLE concurrently. The value should be 5
(background process) and additional 1 for each user.
ROLLBACK_SEGMENTS - List of rollback segments an ORACLE instance
acquires at database startup. Also optionally
LICENSE_MAX_SESSIONS,LICENSE_SESSION_WARNING and LICENSE_MAX_USERS.

93. How can we specify the Archived log file name format and
destination?

By setting the following values in init.ora file. LOG_ARCHIVE_FORMAT
= arch %S/s/T/tarc (%S - Log sequence number and is zero left paded,
%s - Log sequence number not padded. %T - Thread number lef-zero-
paded and %t - Thread number not padded). The file name created is
arch 0001 are if %S is used. LOG_ARCHIVE_DEST = path.

94. What is user Account in Oracle database?

An user account is not a physical structure in Database but it is
having important relationship to the objects in the database and
will be having certain privileges. 95. When will the data in the
snapshot log be used?

We must be able to create a after row trigger on table (i.e., it
should be not be already available) After giving table privileges.
We cannot specify snapshot log name because oracle uses the name of
the master table in the name of the database objects that support
its snapshot log. The master table name should be less than or equal
to 23 characters. (The table name created will be MLOGS_tablename,
and trigger name will be TLOGS name).

96. What dynamic data replication?

Updating or Inserting records in remote database through database
triggers. It may fail if remote database is having any problem.

97. What is Two-Phase Commit ?

Two-phase commit is mechanism that guarantees a distributed
transaction either commits on all involved nodes or rolls back on
all involved nodes to maintain data consistency across the global
distributed database. It has two phase, a Prepare Phase and a Commit
Phase.

98. How can you Enforce Referential Integrity in snapshots ?

Time the references to occur when master tables are not in use.
Peform the reference the manually immdiately locking the master
tables. We can join tables in snopshots by creating a complex
snapshots that will based on the master tables.

99. What is a SQL * NET?

SQL *NET is ORACLE’s mechanism for interfacing with the
communication protocols used by the networks that facilitate
distributed processing and distributed databases. It is used in
Clint-Server and Server-Server communications.

100. What is a SNAPSHOT ?

Snapshots are read-only copies of a master table located on a remote
node which is periodically refreshed to reflect changes made to the
master table.

101. What is the mechanism provided by ORACLE for table
replication ?

Snapshots and SNAPSHOT LOGs

102. What is snapshots?

Snapshot is an object used to dynamically replicate data between
distribute database at specified time intervals. In ver 7.0 they are
read only.

103. What are the various type of snapshots?

Simple and Complex.

104. Describe two phases of Two-phase commit ?

Prepare phase - The global coordinator (initiating node) ask a
participants to prepare (to promise to commit or rollback the
transaction, even if there is a failure) Commit - Phase - If all
participants respond to the coordinator that they are prepared, the
coordinator asks all nodes to commit the transaction, if all
participants cannot prepare, the coordinator asks all nodes to roll
back the transaction.

105. What is snapshot log ?

It is a table that maintains a record of modifications to the master
table in a snapshot. It is stored in the same database as master
table and is only available for simple snapshots. It should be
created before creating snapshots.

106. What are the benefits of distributed options in databases?

Database on other servers can be updated and those transactions can
be grouped together with others in a logical unit.
Database uses a two phase commit.

107. What are the options available to refresh snapshots ?

COMPLETE - Tables are completely regenerated using the snapshots
query and the master tables every time the snapshot referenced.
FAST - If simple snapshot used then a snapshot log can be used to
send the changes to the snapshot tables.
FORCE - Default value. If possible it performs a FAST refresh;
Otherwise it will perform a complete refresh.

108. What is a SNAPSHOT LOG ?

A snapshot log is a table in the master database that is associated
with the master table. ORACLE uses a snapshot log to track the rows
that have been updated in the master table. Snapshot logs are used
in updating the snapshots based on the master table.

109. What is Distributed database ?

A distributed database is a network of databases managed by multiple
database servers that appears to a user as single logical database.
The data of all databases in the distributed database can be
simultaneously accessed and modified.

110. How can we reduce the network traffic?

- Replication of data in distributed enviroonment.
- Using snapshots to replicate data.
- Using remote procedure calls.

111. Differentiate simple and complex, snapshots ?

- A simple snapshot is based on a query thaat does not contains
GROUP BY clauses, CONNECT BY clauses, JOINs, sub-query or snashot of
operations.
- A complex snapshots contain atleast any oone of the above.

112. What are the Built-ins used for sending Parameters to forms?

You can pass parameter values to a form when an application executes
the call_form, New_form, Open_form or Run_product.

113. Can you have more than one content canvas view attached with a
window?

Yes. Each window you create must have atleast one content canvas
view assigned to it. You can also create a window that has
manipulated content canvas view. At run time only one of the content
canvas views assign to a window is displayed at a time.

114. Is the After report trigger fired if the report execution
fails?

Yes.

115. Does a Before form trigger fire when the parameter form is
suppressed?

Yes.
116. Is it possible to split the print reviewer into more than one
region?

Yes

117. Is it possible to center an object horizontally in a repeating
frame that has a variable horizontal size?

Yes

118. For a field in a repeating frame, can the source come from the
column which does not exist in the data group which forms the base
for the frame?

Yes

119. Can a field be used in a report without it appearing in any
data group?

Yes

120. The join defined by the default data link is an outer join yes
or no?

Yes

121. Can a formula column referred to columns in higher group?

Yes

122. Can a formula column be obtained through a select statement?

Yes

123. Is it possible to insert comments into sql statements return in
the data model editor?

Yes

124. Is it possible to disable the parameter from while running the
report?

Yes

126. When a form is invoked with call_form, Does oracle forms issues
a save point?

Yes

127. Can a property clause itself be based on a property clause?

Yes

128. If a parameter is used in a query without being previously
defined, what diff. exist betw. report 2.0 and 2.5 when the query is
applied?

While both reports 2.0 and 2.5 create the parameter, report 2.5
gives a message that a bind parameter has been created.

129. What are the sql clauses supported in the link property sheet?

Where start with having.

130. What is trigger associated with the timer?

When-timer-expired.

131. What are the trigger associated with image items?

When-image-activated fires when the operators double clicks on an
image itemwhen-image-pressed fires when an operator clicks or double
clicks on an image item

132. What are the different windows events activated at runtimes?

When_window_activated
When_window_closed
When_window_deactivated
When_window_resized
Within this triggers, you can examine the built in system variable
system. event_window to determine the name of the window for which
the trigger fired.

133. When do you use data parameter type?

When the value of a data parameter being passed to a called product
is always the name of the record group defined in the current form.
Data parameters are used to pass data to produts invoked with the
run_product built-in subprogram.

134. What is difference between open_form and call_form?

when one form invokes another form by executing open_form the first
form remains displayed, and operators can navigate between the forms
as desired. when one form invokes another form by executing
call_form, the called form is modal with respect to the calling
form. That is, any windows that belong to the calling form are
disabled, and operators cannot navigate to them until they first
exit the called form.

135. What is new_form built-in?

When one form invokes another form by executing new_form oracle form
exits the first form and releases its memory before loading the new
form calling new form completely replace the first with the second.
If there are changes pending in the first form, the operator will be
prompted to save them before the new form is loaded.

136. What is the “LOV of Validation” Property of an item? What is
the use of it?

When LOV for Validation is set to True, Oracle Forms compares the
current value of the text item to the values in the first column
displayed in the LOV. Whenever the validation event occurs. If the
value in the text item matches one of the values in the first column
of the LOV, validation succeeds, the LOV is not displayed, and
processing continues normally. If the value in the text item does
not match one of the values in the first column of the LOV, Oracle
Forms displays the LOV and uses the text item value as the search
criteria to automatically reduce the list.

137. What is the diff. when Flex mode is mode on and when it is off?

When flex mode is on, reports automatically resizes the parent when
the child is resized.

138. What is the diff. when confine mode is on and when it is off?

When confine mode is on, an object cannot be moved outside its
parent in the layout.

139. What are visual attributes?

Visual attributes are the font, color, pattern proprieties that you
set for form and menu objects that appear in your application
interface.

140. Which of the two views should objects according to possession?

view by structure.

141. What are the two types of views available in the object
navigator(specific to report 2.5)?

View by structure and view by type .

142. What are the vbx controls?

Vbx control provide a simple method of building and enhancing user
interfaces. The controls can use to obtain user inputs and display
program outputs.vbx control where originally develop as extensions
for the ms visual basic environments and include such items as
sliders, rides and knobs.

143. What is the use of transactional triggers?

Using transactional triggers we can control or modify the default
functionality of the oracle forms.

144. How do you create a new session while open a new form?

Using open_form built-in setting the session option Ex. Open_form
(’Stocks ‘,active,session). when invoke the mulitiple forms with
open form and call_form in the same application, state whether the
following are true/False

145. What are the ways to monitor the performance of the report?

Use reports profile executable statement. Use SQL trace facility.

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

Two group that is above are the left most rank higher than the group
that is to right or below it.

147. An open form can not be execute the call_form procedure if you
chain of called forms has been initiated by another open form?

True

148. Explain about horizontal, Vertical tool bar canvas views?

Tool bar canvas views are used to create tool bars for individual
windows. Horizontal tool bars are display at the top of a window,
just under its menu bar. Vertical Tool bars are displayed along the
left side of a window

149. What is the purpose of the product order option in the column
property sheet?

To specify the order of individual group evaluation in a cross
products.

150. What is the use of image_zoom built-in?

To manipulate images in image items.

151. How do you reference a parameter indirectly?

To indirectly reference a parameter use the NAME IN, COPY ‘built-ins
to indirectly set and reference the parameters value’ Example
name_in (’capital parameter my param’), Copy (’SURESH’,'Parameter
my_param’)

152. What is a timer?

Timer is an “internal time clock” that you can programmatically
create to perform an action each time the times.

153. What are the two phases of block coordination?

There are two phases of block coordination: the clear phase and the
population phase. During, the clear phase, Oracle Forms navigates
internally to the detail block and flushes the obsolete detail
records. During the population phase, Oracle Forms issues a SELECT
statement to repopulate the detail block with detail records
associated with the new master record. These operations are
accomplished through the execution of triggers.

154. What are Most Common types of Complex master-detail
relationships?

There are three most common types of complex master-detail
relationships:
master with dependent details
master with independent details
detail with two masters

155. What is a text list?

The text list style list item appears as a rectangular box which
displays the fixed number of values. When the text list contains
values that can not be displayed, a vertical scroll bar appears,
allowing the operator to view and select undisplayed values.

156. What is term?

The term is terminal definition file that describes the terminal
form which you are using r20run.

157. What is use of term?

The term file which key is correspond to which oracle report
functions.

158. What is pop list?

The pop list style list item appears initially as a single field
(similar to a text item field). When the operator selects the list
icon, a list of available choices appears.

159. What is the maximum no of chars the parameter can store?

The maximum no of chars the parameter can store is only valid for
char parameters, which can be upto 64K. No parameters default to
23Bytes and Date parameter default to 7Bytes.

160. What are the default extensions of the files created by library
module?

The default file extensions indicate the library module type and
storage format .pll - pl/sql library module binary

161. What are the Coordination Properties in a Master-Detail
relationship?

The coordination properties are
Deferred
Auto-Query
These Properties determine when the population phase of block
coordination should occur.

162. How do you display console on a window ?

The console includes the status line and message line, and is
displayed at the bottom of the window to which it is assigned.To
specify that the console should be displayed, set the console window
form property to the name of any window in the form. To include the
console, set console window to Null.

163. What are the different Parameter types?

Text ParametersData Parameters

164. State any three mouse events system variables?

System.mouse_button_pressedSystem.mouse_button_shift

165. What are the types of calculated columns available?

Summary, Formula, Placeholder column.

166. Explain about stacked canvas views?

Stacked canvas view is displayed in a window on top of, or “stacked”
on the content canvas view assigned to that same window. Stacked
canvas views obscure some part of the underlying content canvas
view, and or often shown and hidden programmatically.

167. What are the built_ins used the display the LOV?

Show_lov
List_values

168. What is the difference between SHOW_EDITOR and EDIT_TEXTITEM?

Show editor is the generic built-in which accepts any editor name
and takes some input string and returns modified output string.
Whereas the edit_textitem built-in needs the input focus to be in
the text item before the built-in is executed.

169. What are the built-ins that are used to Attach an LOV
programmatically to an item?

set_item_property
get_item_property
(by setting the LOV_NAME property)

170. How do you call other Oracle Products from Oracle Forms?

Run_product is a built-in, Used to invoke one of the supported
oracle tools products and specifies the name of the document or
module to be run. If the called product is unavailable at the time
of the call, Oracle Forms returns a message to the operator.

171. What is the main diff. bet. Reports 2.0 & Reports 2.5?

Report 2.5 is object oriented.

172. What are the different file extensions that are created by
oracle reports?

Rep file and Rdf file.

173. What is strip sources generate options?

Removes the source code from the library file and generates a
library files that contains only pcode. The resulting file can be
used for final deployment, but can not be subsequently edited in the
designer.ex. f45gen module=old_lib.pll userid=scott/tiger
strip_source YES output_file

176. What is the basic data structure that is required for creating
an LOV?

Record Group.

177. What is the Maximum allowed length of Record group Column?

Record group column names cannot exceed 30 characters.

178. Which parameter can be used to set read level consistency
across multiple queries?

Read only

179. What are the different types of Record Groups?

Query Record Groups
NonQuery Record Groups
State Record Groups

180. From which designation is it preferred to send the output to
the printed?

Previewer

181. what are difference between post database commit and post-form
commit?

Post-form commit fires once during the post and commit transactions
process, after the database commit occurs. The post-form-commit
trigger fires after inserts, updates and deletes have been posted to
the database but before the transactions have been finalized in the
issuing the command. The post-database-commit trigger fires after
oracle forms issues the commit to finalized transactions.

182. What are the different display styles of list items?

Pop_listText_listCombo box

183. Which of the above methods is the faster method?

performing the calculation in the query is faster.

184. With which function of summary item is the compute at options
required?

percentage of total functions.

185. What are parameters?

Parameters provide a simple mechanism for defining and setting the
valuesof inputs that are required by a form at startup. Form
parameters are variables of type char,number,date that you define at
design time.

186. What are the three types of user exits available ?

Oracle Precompiler exits, Oracle call interface, NonOracle user
exits.

187. How many windows in a form can have console?

Only one window in a form can display the console, and you cannot
change the console assignment at runtime

188.If the maximum record retrieved property of the query is set to
10 then a summary value will be calculated?

Only for 10 records.

189.What are the two repeating frame always associated with matrix
object?

One down repeating frame below one across repeating frame.

190. What are the master-detail triggers?\

On-Check_delete_masterOn_clear_detailsOn_populate_details

191. What are the different objects that you cannot copy or
reference in object groups?

Objects of different modules
Another object groups
Individual block dependent items
Program units.

192. What is an OLE?

Object Linking & Embedding provides you with the capability to
integrate objects from many Ms-Windows applications into a single
compound document creating integrated applications enables you to
use the features form .

193. Is it possible to modify an external query in a report which
contains it?

No.

194. Does a grouping done for objects in the layout editor affect
the grouping done in the data model editor?

No.

195. Can a repeating frame be created without a data group as a
base?

No

196. If a break order is set on a column would it affect columns
which are under the column?

No

197. Is it possible to set a filter condition in a cross product
group in matrix reports?

No

198. Do user parameters appear in the data modal editor in 2.5?

No

199. Can you pass data parameters to forms?

No

200. Is it possible to link two groups inside a cross products after
the cross products group has been created?

no

201. What are the different modals of windows?

Modalless windows
Modal windows

202. What are modal windows?

Modal windows are usually used as dialogs, and have restricted
functionality compared to modelless windows. On some platforms for
example operators cannot resize, scroll or iconify a modal window.

203. What are the different default triggers created when Master
Deletes Property is set to Non-isolated?

Master Deletes Property Resulting Triggers
—————————————————–
Non-Isolated(the default) On-Check-Delete-Master
On-Clear-Details
On-Populate-Details

204. What are the different default triggers created when Master
Deletes Property is set to isolated?

Master Deletes Property Resulting Triggers
—————————————————-
Isolated On-Clear-Details
On-Populate-Details

205. What are the different default triggers created when Master
Deletes Property is set to Cascade?

Master Deletes Property Resulting Triggers
—————————————————-
Cascading On-Clear-Details
On-Populate-Details
Pre-delete

206. What is the diff. bet. setting up of parameters in reports 2.0
reports2.5?

LOVs can be attached to parameters in the reports 2.5 parameter
form.

207. What are the difference between lov & list item?

Lov is a property where as list item is an item. A list item can
have only one column, lov can have one or more columns.

208. What is the advantage of the library?

Libraries provide a convenient means of storing client-side program
units and sharing them among multiple applications. Once you create
a library, you can attach it to any other form, menu, or library
modules. When you can call library program units from triggers menu
items commands and user named routine, you write in the modules to
which you have attach the library. When a library attaches another
library, program units in the first library can reference program
units in the attached library. Library support dynamic loading-that
is library program units are loaded into an application only when
needed. This can significantly reduce the run-time memory
requirements of applications.

209. What is lexical reference? How can it be created?

Lexical reference is place_holder for text that can be embedded in a
sql statements. A lexical reference can be created using & before
the column or parameter name.

210. What is system.coordination_operation?

It represents the coordination causing event that occur on the
master block in master-detail relation.

211. What is synchronize?

It is a terminal screen with the internal state of the form. It
updates the screen display to reflect the information that oracle
forms has in its internal representation of the screen.

212. What use of command line parameter cmd file?

It is a command line argument that allows you to specify a file that
contain a set of arguments for r20run.

213. What is a Text_io Package?

It allows you to read and write information to a file in the file
system.

214. What is forms_DDL?

Issues dynamic Sql statements at run time, including server side
pl/SQl and DDL

215. How is link tool operation different bet. reports 2 & 2.5?

In Reports 2.0 the link tool has to be selected and then two fields
to be linked are selected and the link is automatically created. In
2.5 the first field is selected and the link tool is then used to
link the first field to the second field.

216. What are the different styles of activation of ole Objects?

In place activationExternal activation

217. How do you reference a Parameter?

In Pl/Sql, You can reference and set the values of form parameters
using bind variables syntax. Ex. PARAMETER name = ” or :block.item
= PARAMETER Parameter name

218. What is the difference between object embedding & linking in
Oracle forms?

In Oracle forms, Embedded objects become part of the form module,
and linked objects are references from a form module to a linked
source file.

219. Name of the functions used to get/set canvas properties?

Get_view_property, Set_view_property

220. What are the built-ins that are used for setting the LOV
properties at runtime?

get_lov_property
set_lov_property

221. What are the built-ins used for processing rows?

Get_group_row_count(function)
Get_group_selection_count(function)
Get_group_selection(function)
Reset_group_selection(procedure)
Set_group_selection(procedure)
Unset_group_selection(procedure)

222. What are built-ins used for Processing rows?

GET_GROUP_ROW_COUNT(function)
GET_GROUP_SELECTION_COUNT(function)
GET_GROUP_SELECTION(function)
RESET_GROUP_SELECTION(procedure)
SET_GROUP_SELECTION(procedure)
UNSET_GROUP_SELECTION(procedure)

223. What are the built-in used for getting cell values?

Get_group_char_cell(function)
Get_groupcell(function)
Get_group_number_cell(function)

224. What are the built-ins used for Getting cell values?

GET_GROUP_CHAR_CELL (function)
GET_GROUPCELL(function)
GET_GROUP_NUMBET_CELL(function)

225. Atleast how many set of data must a data model have before a
data model can be base on it?

Four

226. To execute row from being displayed that still use column in
the row which property can be used?

Format trigger.

227. What are different types of modules available in oracle form?

Form module - a collection of objects and code routines Menu
modules - a collection of menus and menu item commands that together
make up an application menu library module - a collection of user
named procedures, functions and packages that can be called from
other modules in the application

228. What is the remove on exit property?

For a modelless window, it determines whether oracle forms hides the
window automatically when the operators navigates to an item in the
another window.

229. What is WHEN-Database-record trigger?

Fires when oracle forms first marks a record as an insert or an
update. The trigger fires as soon as oracle forms determines through
validation that the record should be processed by the next post or
commit as an insert or update. c generally occurs only when the
operators modifies the first item in the record, and after the
operator attempts to navigate out of the item.

230. What is a difference between pre-select and pre-query?

Fires during the execute query and count query processing after
oracle forms constructs the select statement to be issued, but
before the statement is actually issued. The pre-query trigger fires
just before oracle forms issues the select statement to the database
after the operator as define the example records by entering the
query criteria in enter query mode.Pre-query trigger fires before
pre-select trigger.

231. What are built-ins associated with timers?

find_timercreate_timerdelete_timer

232. What are the built-ins used for finding object ID functions?

Find_group(function)
Find_column(function)

233. What are the built-ins used for finding Object ID function?

FIND_GROUP(function)
FIND_COLUMN(function)

234. Any attempt to navigate programmatically to disabled form in a
call_form stack is allowed?

False

235. Use the Add_group_row procedure to add a row to a static record
group 1. true or false?

False

236. Use the add_group_column function to add a column to record
group that was created at a design time?

False

237. What are the various sub events a mouse double click event
involves? What are the various sub events a mouse double click event
involves?

Double clicking the mouse consists of the mouse down, mouse up,
mouse click, mouse down & mouse up events.

238. How can a break order be created on a column in an existing
group? What are the various sub events a mouse double click event
involves?

By dragging the column outside the group.

239. What is the use of place holder column? What are the various
sub events a mouse double click event involves?

A placeholder column is used to hold calculated values at a
specified place rather than allowing is to appear in the actual row
where it has to appear.

240. What is the use of hidden column? What are the various sub
events a mouse double click event involves?

A hidden column is used to when a column has to embed into
boilerplate text.

241. What is the use of break group? What are the various sub events
a mouse double click event involves?

A break group is used to display one record for one group ones.
While multiple related records in other group can be displayed.

242. What is an anchoring object & what is its use? What are the
various sub events a mouse double click event involves?

An anchoring object is a print condition object which used to
explicitly or implicitly anchor other objects to itself.

243. What are the various sub events a mouse double click event
involves? What are the various sub events a mouse double click event
involves?

Double clicking the mouse consists of the mouse down, mouse up,
mouse click, mouse down & mouse up events.

245. What are the default parameter that appear at run time in the
parameter screen? What are the various sub events a mouse double
click event involves?

Destype and Desname.

246. What are the built-ins used for Creating and deleting groups?

CREATE-GROUP (function)
CREATE_GROUP_FROM_QUERY(function)
DELETE_GROUP(procedure)

247. What are different types of canvas views?

Content canvas views
Stacked canvas views
Horizontal toolbar
vertical toolbar.

248. What are the different types of Delete details we can establish
in Master-Details?

Cascade
Isolate
Non-isolate

249. What is relation between the window and canvas views?

Canvas views are the back ground objects on which you place the
interface items (Text items), check boxes, radio groups etc.,) and
boilerplate objects (boxes, lines, images etc.,) that operators
interact with us they run your form . Each canvas views displayed in
a window.

250. What is a User_exit?

Calls the user exit named in the user_exit_string. Invokes a 3Gl
program by name which has been properly linked into your current
oracle forms executable.

251. How is it possible to select generate a select set for the
query in the query property sheet?

By using the tables/columns button and then specifying the table and
the column names.

252. How can values be passed bet. precompiler exits & Oracle call
interface?

By using the statement EXECIAFGET & EXECIAFPUT.

253. How can a square be drawn in the layout editor of the report
writer?

By using the rectangle tool while pressing the (Constraint) key.

254. How can a text file be attached to a report while creating in
the report writer?

By using the link file property in the layout boiler plate property
sheet.

255. How can I message to passed to the user from reports?

By using SRW.MESSAGE function.

256. How is possible to restrict the user to a list of values while
entering values for parameters?

By setting the Restrict To List property to true in the parameter
property sheet.

257. How can a button be used in a report to give a drill down
facility?

By setting the action associated with button to Execute pl/sql
option and using the SRW.Run_report function.

258. How can a cross product be created?

By selecting the cross products tool and drawing a new group
surrounding the base group of the cross products.

259. What are different types of images?

Boiler plate imagesImage Items

260. What is the difference between boiler plat images and image
items?

Boiler plate Images are static images (Either vector or bit map)
that you import from the file system or database to use a graphical
elements in your form, such as company logos and maps. Image items
are special types of interface controls that store and display
either vector or bitmap images. Like other items that store values,
image items can be either base table items(items that relate
directly to database columns) or control items. The definition of an
image item is stored as part of the form module FMB and FMX files,
but no image file is actually associated with an image item until
the item is populate at run time.

261. What is bind reference and how can it be created?

Bind reference are used to replace the single value in sql, pl/sql
statements a bind reference can be created using a (:) before a
column or a parameter name.

262. What are the triggers available in the reports?

Before report, Before form, After form , Between page, After report.

263. Give the sequence of execution of the various report triggers?

Before form , After form , Before report, Between page, After
report.

264. Why is a Where clause faster than a group filter or a format
trigger?

Because, in a where clause the condition is applied during data
retrievalthan after retrieving the data.

265. Why is it preferable to create a fewer no. of queries in the
data model?

Because for each query, report has to open a separate cursor and has
to rebind, execute and fetch data.

266. Where is the external query executed at the client or the
server?

At the server.

267. Where is a procedure return in an external pl/sql library
executed at the client or at the server?

At the client.

268. What is coordination Event?

Any event that makes a different record in the master block the
current record is a coordination causing event.

269. What is the difference between OLE Server & Ole Container?

An Ole server application creates ole Objects that are embedded or
linked in ole Containers ex. Ole servers are ms_word & ms_excel. OLE
containers provide a place to store, display and manipulate objects
that are created by ole server applications. Ex. oracle forms is an
example of an ole Container.

270. What is an object group?

An object group is a container for a group of objects; you define an
object group when you want to package related objects, so that you
copy or reference them in other modules.

271. What is an LOV?

An LOV is a scrollable popup window that provides the operator with
either a single or multi column selection list.

272. At what point of report execution is the before Report trigger
fired?

After the query is executed but before the report is executed and
the records are displayed.

273. What are the built -ins used for Modifying a groups structure?

ADD-GROUP_COLUMN (function)
ADD_GROUP_ROW (procedure)
DELETE_GROUP_ROW(procedure)

274. What is an user exit used for?

A way in which to pass control (and possibly arguments ) form Oracle
report to another Oracle products of 3 GL and then return control (
and ) back to Oracle reports.

275. What is the User-Named Editor?

A user named editor has the same text editing functionality as the
default editor, but, because it is a named object, you can specify
editor attributes such as windows display size, position, and title.

276. What are the Built-ins to display the user-named editor?

A user named editor can be displayed programmatically with the built
in procedure SHOW-EDITOR, EDIT_TETITEM independent of any particular
text item.

277. What is a Static Record Group?

A static record group is not associated with a query, rather, you
define its structure and row values at design time, and they remain
fixed at runtime.

278. What is a record group?

A record group is an internal Oracle Forms that structure that has a
column/row framework similar to a database table. However, unlike
database tables, record groups are separate objects that belong to
the form module which they are defined.

279. How many number of columns a record group can have?

A record group can have an unlimited number of columns of type CHAR,
LONG, NUMBER, or DATE provided that the total number of column does
not exceed 64K.

280. What is a Query Record Group?

A query record group is a record group that has an associated SELECT
statement. The columns in a query record group derive their default
names, data types, had lengths from the database columns referenced
in the SELECT statement. The records in query record group are the
rows retrieved by the query associated with that record group. What
is a Non Query Record Group?

281. What is a property clause?

A property clause is a named object that contains a list of
properties and their settings. Once you create a property clause you
can base other object on it. An object based on a property can
inherit the setting of any property in the clause that makes sense
for that object.

282. What is a physical page ? & What is a logical page ?

A physical page is a size of a page. That is output by the printer.
The logical page is the size of one page of the actual report as
seen in the Previewer.

283. What does the term panel refer to with regard to pages?

A panel is the no. of physical pages needed to print one logical
page.

284. What is a master detail relationship?

A master detail relationship is an association between two base
table blocks- a master block and a detail block. The relationship
between the blocks reflects a primary key to foreign key
relationship between the tables on which the blocks are based.

285.What is a library?

A library is a collection of subprograms including user named
procedures, functions and packages.

286. How can a group in a cross products be visually distinguished
from a group that does not form a cross product?

A group that forms part of a cross product will have a thicker
border.

287. What is the frame & repeating frame?

A frame is a holder for a group of fields. A repeating frame is used
to display a set of records when the no. of records that are to
displayed is not known before.

288. What is a combo box?

A combo box style list item combines the features found in list and
text item. Unlike the pop list or the text list style list items,
the combo box style list item will both display fixed values and
accept one operator entered value.

289. What are three panes that appear in the run time pl/sql
interpreter?

1. Source pane.
2. interpreter pane.
3. Navigator pane.

290. What are the two panes that Appear in the design time pl/sql
interpreter?

1. Source pane.
2. Interpreter pane

291. What are the two ways by which data can be generated for a
parameters list of values?

1. Using static values.
2. Writing select statement.

292. What are the various methods of performing a calculation in a
report ?

1. Perform the calculation in the SQL statements itself.
2. Use a calculated / summary column in the data model.

293. What are the default extensions of the files created by menu
module?

.mmb,
.mmx

294. What are the default extensions of the files created by forms
modules?

.fmb - form module binary
.fmx - form module executable

295. To display the page no. for each page on a report what would be
the source & logical page no. or & of physical page no.?

& physical page no.

296. It is possible to use raw devices as data files and what is the
advantages over file. system files ?

Yes. The advantages over file system files. I/O will be improved
because Oracle is bye-passing the kernnel which writing into disk.
Disk Corruption will be very less.

297. What are disadvantages of having raw devices ?

We should depend on export/import utility for backup/recovery (fully
reliable) The tar command cannot be used for physical file backup,
instead we can use dd command which is less flexible and has limited
recoveries.

298. What is the significance of having storage clause ?

We can plan the storage for a table as how much initial extents are
required, how much can be extended next, how much % should leave
free for managing row updations etc.,

299. What is the use of INCTYPE option in EXP command ?

Type export should be performed COMPLETE,CUMULATIVE,INCREMENTAL.
List the sequence of events when a large transaction that exceeds
beyond its optimal value when an entry wraps and causes the rollback
segment toexpand into anotion Completes. e. will be written.

300. What is the use of FILE option in IMP command ?

The name of the file from which import should be performed.

301. What is a Shared SQL pool?

The data dictionary cache is stored in an area in SGA called the
Shared SQL Pool. This will allow sharing of parsed SQL statements
among concurrent users.

302. What is hot backup and how it can be taken?

Taking backup of archive log files when database is open. For this
the ARCHIVELOG mode should be enabled. The following files need to
be backed up. All data files. All Archive log, redo log files. All
control files.

303. List the Optional Flexible Architecture (OFA) of Oracle
database? or How can we organize the tablespaces in Oracle database
to have maximum performance ?

SYSTEM - Data dictionary tables.
DATA - Standard operational tables.
DATA2- Static tables used for standard operations
INDEXES - Indexes for Standard operational tables.
INDEXES1 - Indexes of static tables used for standard operations.
TOOLS - Tools table.
TOOLS1 - Indexes for tools table.
RBS - Standard Operations Rollback Segments,
RBS1,RBS2 - Additional/Special Rollback segments.
TEMP - Temporary purpose tablespace
TEMP_USER - Temporary tablespace for users.
USERS - User tablespace.

304. How to implement the multiple control files for an existing
database ?

Shutdown the database Copy one of the existing control file to new
location Edit Config ora file by adding new control file. name
Restart the database.

305. What is advantage of having disk shadowing/ Mirroring ?

Shadow set of disks save as a backup in the event of disk failure.
In most Operating System if any disk failure occurs it automatically
switchover to place of failed disk. Improved performance because
most OS support volume shadowing can direct file I/O request to use
the shadow set of files instead of the main set of files. This
reduces I/O load on the main set of disks.

306. How will you force database to use particular rollback
segment ?

SET TRANSACTION USE ROLLBACK S

Rohan went through a job interview and said:

What is meant by Scrollable cursor?
The use of HAVING , WHERE and GROUPBY in one SQL?
What is meant by SORTING and GROUPING?
What are the different types of OUTER JOINS?
Explain the UNION operation in SQL . What is meant by OUTER JOIN?
What is a Non- corelated subquery?
What is a corelated subquery?
What do you know about subqueries?
What is the theory behind the JOIN statement in DB2?
What are the different types of SQL?
How to drop the column in a table?
How to drop the index?
What are the different tablespaces in database?
What is the maximum number of triggers, can apply to a single table?
What is the output of SIGN function?
What are the more common pseudo-columns?
Other way to replace query result null value with a text?
What are PL/SQL Cursor Exceptions?
Any three PL/SQL Exceptions?
Any three PL/SQL Exceptions?
Which date function returns number value?
Display Odd/ Even number of records?
Display the number value in Words?
To view installed Oracle version information?
Find out nth highest salary from emp table?
Implicit Cursor attributes?
Explicit Cursor attributes?
Display the records between two range I know the nvl function only
allows the same data type(ie. number or char or date Nvl(comm, 0)),
if commission is null then the text Not Applicable want to display,
instead of blank space. How do I write the query???
How do I display row number with records?
How do I eliminate the duplicate rows?
If a view on a single base table is manipulated will the changes be
reflected on the base table?
If Yes - under what conditions?
Can a view be updated/inserted/deleted?
What are the advantages of VIEW?

What is CYCLE/NO CYCLE in a Sequence?
Is it possible to access the current value in a session before
accessing next value?
How to access the current value and next value from a sequence?
What is a database link?
If unique key constraint on DATE column is created, will it validate
the rows that are inserted with SYSDATE?
How will you activate/deactivate integrity constraints?
Where the integrity constraints are stored in data dictionary?
What are the pre-requisites to modify datatype of a column and to
add a column with NOT NULL constraint?
Is it possible to use LONG columns in WHERE clause or ORDER BY?
How many LONG columns are allowed in a table?
What is the maximum SIZE allowed for each type?
What is difference between CHAR and VARCHAR2?
What are the data types allowed in a table?
What is ON DELETE CASCADE?
What is the usage of SAVEPOINTS?
What is referential integrity constraint?
What is an integrity constraint?
What is the fastest way of accessing a row in a table?
What is ROWID?
Explain UNION, MINUS, UNION ALL and INTERSECT?
Difference between SUBSTR and INSTR?
Explain CONNECT BY PRIOR?
What is correlated sub-query?
What is the sub-query?
Explain the different types of joins?
What is a join?
What is difference between TRUNCATE & DELETE?
What is a transaction?
What are the types of SQL statement?
Which datatype is used for storing graphics and images?
LONG RAW data type is used for storing BLOB’s (binary large
objects).?
What is a pseudo column. Give some examples?
It is a column that is not an actual column in the table?
eg USER, UID, SYSDATE, ROWNUM, ROWID, NULL, AND LEVEL.?
What are the differences you have seen while installing Oracle on NT
and Unix platform?

Ranjit went through a job interview and said:

What are the differences between database designing and database
modeling?
If the large table contains thousands of records and the application
is accessing 35% of the table which method to use: index searching
or full table scan?
In which situation whether peak time or off peak time you will
execute the ANALYZE TABLE command. Why?
How to check to memory gap once the SGA is started in Restricted
mode?
All the users are complaining that their application is hanging. How
you will resolve this situation in OLTP?
If the SQL * Plus hangs for a long time, what is the reason?
Shall we create procedures to fetch more than one record?
How do you increase the performance of %LIKE operator?
You are regularly changing the package body part. How will you
create or what will you do before creating that package?
How can you see the source code of the package?
Dual table explain. Is any data internally storing in dual table.
Lot of users are accessing select sysdate from dual and they getting
some millisecond differences. If we execute SELECT SYSDATE FROM EMP;
what error will we get. Why?
In exception handling we have some NOT_FOUND and OTHERS. In inner
layer we have some NOT_FOUND and OTHERS. While executing which one
whether outer layer or inner layer will check first?
What is mutated trigger, is it the problem of locks. In single user
mode we got mutated error, as a DBA how you will resolve it?
Schema A has some objects and created one procedure and granted to
Schema B. Schema B has the same objects like schema A. Schema B
executed the procedure like inserting some records. In this case
where the data will be stored whether in Schema A or Schema B?
What is bulk SQL?
How to do the scheduled task/jobs in Unix platform?
If the entire disk is corrupted how will you and what are the steps
to recover the database?
How will you monitor rollback segment status?
List the sequence of events when a large transaction that exceeds
beyond its optimal value when an entry wraps and causes the rollback
segment to expand into another extend?
What is redo log file mirroring?
How can we plan storage for very large tables
When will be a segment released ?
What are disadvantages of having raw devices?
List the factors that can affect the accuracy of the estima?
What is the difference between $$DATE$$ & $$DBDATE$$$$DBDATE$$
retrieves the current database date$$date$$ retrieves the current
operating system
How to prevent unauthorized use of privileges granted to a Role ?
What is a deadlock and Explain?
What are the basic element of base configuration of an Oracle
database?
What is an index and How it is implemented in Oracle database?
What is the use of redo log information?
What is a schema?
What is Parallel Server?
What is a database instance and Explain?
What is a datafile?
What is a temporary segment?
What are the uses of rollback segment

Puneet went through a job interview and said:

In Oracle’s first round a written test is conducted (30 questions in 30 minutes objective type paper). So you can leave mugging the theory questions. Concentrate on basics and raw concepts.For e.g. 2 questions that i remember very well are :

1)declare
l1 number := null;
l2 number :=null;
begin
if l1=l2 then message(’equal’);
else
if l1l2 then message(’not equal’);
else
message(’else’);
end if;
end if;
end;
What will be the output ?
(a) equal
(b) not equal
(c) else
(d) No output
Correct Answer : (c)

2)declare
lowerl number:= 1;
upperl number:= 3;
num varchar2(10);
begin
for i into lowerl..upperl
loop
num:=num||to_char(lowerl);
if i=3 then upperl:=5;
end loop;
message(num);
What will be the output ?
(a)12
(b)12345
(c)123
(d)Wrong assignment
Correct Answer : (c) ( I answered the question wrongly :-(

Be prepared and do the paper quickly but accurately. Before u’ll know , 30 minutes will be over. Be aware of the program units given like above (they may be even lengthier ) and in the end o/p is asked. These sort of questions take a lot of time. So try answering general concepts questions first and then return to these sort of questions.

Karthik went through a job interview and said:

Questions are simple. But,I think that they expect higher cut-off i.e. above 28 is to be answered corretly.

* some questions are Code Snippet based.
* Some questions are compiler based i.e. given code snippet will compile or not, if not the reason.
* some question are from the prfix/postfix inc/dec operation based code snippets.
* More than 3 question are based on the sorting algorithms.
* some questions are from the pointers based.
* Code snippets involving memory allocation function.
* All the questions are from c

Some of the question ,i remember, are the following
1.
#include
#define sqr(x) (x*x)
int main()
{
int x=2;
printf(”value of x=%d”,sqr(x+1));
}

What is the value of x?
a)4 b)5 c)None d)can not compile
Ans: 5

2. what is the wrong in the following program?
#define LBRACKET {
#define RBRACKET }
#define MAIN main
int MAIN()
LBRACKET
int x=2;
printf(”%d”,x);
RBRACKET
a) This program will compile
b) compilation error

3.
#include
int main()
{
int x=4;
{
{
{
int x=2;
printf(”%d”,x);
}
}
}
}
a) 4 b)2 c)Nesting not allowed d)dependent on the compiler

4. Go through the following code sinippet
char a[20];
a=”Hello Orcale Test”;
will this compile?
a) Compilation Error b) Strings are allowed in c but cannot be assigned directly.
c) dependent on compiler
d) will work fine.

5. the expression a+b*c should be conveted to +a*bc. Using tree structure,
Which traversal is the correct one?
a) Postfix traversal b) prefix traversal c) infix traversal d)None

6. what about brk, sbrk
a) system calls b) function calls c) user defined functions

7. Why the use of alloca() is discouraged?

8. Macros support multiple arguments ?

9. the header file
a) contains only compiler directives and extern variables
b) contail only structures and unitions
c) a & b

10. what about “char *(*(*a[])())();”

Suresh went through a job interview and said:

This is the oracle paper
The test has 2 sections : 30 technical and 30 aptitude and 60 min time.

Technical Section:
its very easy any one can answer 25 qns without preperation. some are
1. how compiler treats variables of recursive functions
2. what is orthogonal matrix?
3. given two tables and asked 2 qns on those table, one is on join and another is on NOT IN
4. given some qns on pointers( pretty easy)
5. given five qns on data structures like , lifo, fifo
6. qtn on primary key
7. how NULL in sql is treated?
8. given a doubly linked list and asked r->left->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

that’s all test is very easy, only u need to prep for interview (really tough a bit)

Sridhar went through a job interview and said:

Paper consists of 45 questions 45 minutes.
15 java
15 SQL and PL/SQL
15 C (including data structures).

A little bit tough.
some of the questions i remembered are

1. question on bubble sore
2. quick sort complexity
3. heap sort SPACE complexity.

4. char *p = “Oracle India”;
p[5] == ‘l’ ? printf(”Orcle”) : printf(”India”)

5. main()
{
int i=5;
recursive(i);
}
recursive(int u)
{
if(u > 0 )
recursive(u-1);
printf(”%d”, u);
}

6. question on function pointer.
char *(*(*x())[])()
7. GRANT command question
8. about MINUS set operator.

Java

9. RandomAccessFile
10. super class base class simple question
11. what is overridden
12. StringBUffer question

overall test
1. questions on java are based on oops concepts and
some are language based like StringBuffer class, RandomAccessFile
and File classes.
2. SQL/PLSQL, see all commands in SQL and exception, cursors, in PLSQL.
3. c is fine, but you should be fast in finding out answers so that you can spend
time on other questions.
4. i didn’t get arithmetic questions.

Mohanraj went through a job interview and said:

These are the questions of technical paper conducted by Oracle. The code of the paper is qp-9. I have tried to recollect as much as i can.Certain questions are incomplete. the total no. of questions were 30.

1. precedence of PL/SQL

2.in an employee table consisting of empid and supid to get supervisor id for employee (something like this related to ans. self join) we would use
Intersect
union
join
subquery

3.The order of execution in corelated queries
Inner query executes first then outer query
Outer query executes first then inner query
each row of inner query is evaluated with outer query
each row of outer query is evaluated with inner query

4.declare
i Number
j Number
k Number
begin
i:=0
for j = 1..5
i:=i+1;
j:=j+1;k:=i+j+k;

5.function of ROLLUP and CUBE

6.Based on Group by clause rule that it should contain column found in select clause

7.Can procedure in a package be overloaded

8.public void static main(String []args)
{
String s1=new String(”test”);
String s2=new String(”test”);
if(s1==s2)
System.out.println(”Both are equal”);
Boolean b1=new Boolean(”true”);
Boolean b2=new Boolean(”false”);
if(b1.equals(b2))
System.out.println(”some message”);
}
output=?

9.
x=7;
y=0;
if(x=y)y=7;
else
y=5;
what is the value of y

10.Threading in java a prg was given in which it had no exceptions and run function had string as its parameter
a.runtime error
b.compile time error
c.
d.

11.what fuction can be repeated instead of comment
..
{
public void aMethod(String S,int i);
//here
..
}
a.public void aMethod(int i ,String S);
b.public void aMethod(String myobj,int j);
c.public int aMethod(String S,int i);
d.public void AMethod(String S,int i);

12.Encapsulation is implemented by
a.private variables and public methods
b.private variables and private methods
c.public variables and public methods
d.protected members

13.Based on scope of a variable

14.Recursive fuction are used to
a.call itself
b.call other functions
c.return integers
d..

15.
int a[]={0,1,2,3,4,5}
int *pa=a;
which of the following is not the correct way to access
a.a[5]
b.*(a+5)
c.*(pa+5)
d.*(*pa+5)

16.
struct{
char emp[12];
int mpno;
}e;
struct e a[2]={{jack,2},{raj,8},{jill,2}}
struct e *p;
*p=a;p+=2
..
17.AVL tree is a balanced binary search tree

18.order of B+tree

19.Disadvantage of indexed sequential file

20.queue can be called as full even if its capacity is’nt.

Visitharinath went through a job interview and said:

Questions paper consists of 60 questions. QUESTIONS FROM 9 AM round
30-english and aptitude
30-SQL,C,C++,JAVA

NOTE:
I met some people who attended the test..
i am putting the details..Please do not assume the questions as accurate, there may be some mistakes and for some questions there may not be full options or no answer. My purpose is to give an over all idea about the question paper so
that it will be useful for others..

English:
analogy questions around ( you can refer to GRE book)
fill the sentence with appropriate word..(multiple choices given)
sentence correction..

Aptitude:
arithmetic questions..
some of the questions:
Q:1/3th of the passengers gotdown at first stop and 30 people got into the bus,
1/4th of the passengers gotdown at second stop and 12 people got into the bus. in last stop 84 people got down from the bus.
What is the initial capacity of the bus?

Q:one person is running around a 180 sq yard filed, first 1/4 his speed was 10KMPH second 1/4 20KMPH third 1/4 30 KMPH and the fourth 1/4 40 KMPH.
what is the average speed?

NOTE: there was a question on milk ,water ratio..

logical deductions..
Q: is x+y a prime?
a. x is prime
b. y is prime
options: 1. only “a” correct 2. only “b” correct 3. both are correct
4. both are wrong.

C,C++,JAVA

Q: There were 2 or 3 C programs and the question is to point error in the program or to predict the answer

Q:Which one of the following is not a storage type:
1. static 2. register 3. stack 4.auto
answer: stack

Q:what is the type of the second parameter of fopen() function?

Q:Which of the following is correct about constructor?
OPTIONS: 1.void type 2. return nothing
answer 2

Q:how do we store a constant value in java?
multiple choices given..
answer: using “final”

SQL:
please be thorough with SQL, PL/SQL

There were some questions where they gave query and asked whether it
is correct or wrong if wrong what is wrong..

Q: create table..; {table creation query)
Roll back;
what will be the output?
options ..

This is all that i was able to get!

Sakthi went through a job interview and said:

I have attended oracle written test and I got through the test and attended the interview. I am giving you the pattern and some questions where two to three questions were repeated.

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.

1.void main()
{
struct a
{
char ch[10];
char *str;
};
struct a s1={”Hyderabad”,”Bangalore”};
printf(” %c%c”,s1.ch[0],*s1.str);
printf(” %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 “,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 “,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 following 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 will 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

Arun went through a job interview and said:

ORACLE written will be of 60 questions.

30 Technical + 30 objective type (GRE pattern)

Technical part

Mainly of C, C++, ORACLE SQL, PL/SQL, DBMS, RDBMS and symbolic representation of tables, column and its relationship(its in our DBMS syllabus).

30 objective

GRE pattern. All analytical & mathematical oriented problems. Also comprehensions and little bit of verbal ability.

Surendra went through a job interview and said:

Many people turned out there and the test was held (in 3 batches) in reasonably good manner. They selected around 80 people for interviews.
Test was quite easy..
60 minutes
15 questions on Oracle
15 questions on C programming
30 questions on Aptitude

Oracle questions are mainly on Triggers, Cursors etc.
(Simple Questions like what is the output of “Select * from dual” )

For selection, they followed the same procedure mentioned in the mail sent.
But in addition to that, they wanted at least 70 % in 10 th and Intermediate also.

Most popular employersMost popular employers

  • Infosys (103)
  • Caritor (82)
  • Cognizant (78)
  • Patni (67)
  • Accenture (50)
  • Leave a comment:

    Did you interview at Oracle? Did you get a job at Oracle? Did you get hired at Oracle? How do you like working at Oracle? Or you didn't find a company and want to add one? Do you need to post your resume online? Post your resume at DevResumes.

    Industries
    Companies: