Oracle Recent placement papers
Here I am providing you Aptitude & Technical Recent Placement Papers for Oracle Campus Placement.
Oracle Campus Placement Paper:
1. A certain number of men can finish a piece of work in 10 days. If however there were 10 men less it will take 10 days more for the work to be finished. How many men were there originally?
(A) 110 men
(B) 130 men
(C) 100 men
(D) none of these
2. In simple interest what sum amounts of Rs.1120/- in 4 years and Rs.1200/- in 5 years ?
(A) Rs. 500
(B) Rs. 600
(C) Rs. 800
(D) Rs. 900
3. If a sum of money compound annually amounts of thrice itself in 3 years. In how many years will it become 9 times itself.
(A) 6
(B) 8
(C) 10
(D) 12
4. Two trains move in the same direction at 50 kmph and 32 kmph respectively. A man in the slower train observes the 15 seconds elapse before the faster train completely passes by him. What is the length of faster train ?
(A) 100m
(B) 75m
(C) 120m
(D) 50m
5. How many mashes are there in 1 square meter of wire gauge if each mesh is 8mm long and 5mm wide ?
(A) 2500
(B) 25000
(C) 250
(D) 250000
6. x% of y is y% of ?
(A) x/y
(B) 2y
(C) x
(D) can't be determined
7. The price of sugar increases by 20%, by what % should a housewife reduce the consumption of sugar so that expenditure on sugar can be same as before ?
(A) 15%
(B) 16.66%
(C) 12%
(D) 9%
8. A man spends half of his salary on household expenses, 1/4th for rent, 1/5th for travel expenses, the man deposits the rest in a bank. If his monthly deposits in the bank amount 50, what is his monthly salary ?
(A) Rs.500
(B) Rs.1500
(C) Rs.1000
(D) Rs. 900
9. What is the difference between the two declaration ?
#include
&
#include "stdio.h
(A) No Difference
(B) The 2nd declaration will not compile
(C) First case Compiler looks in all default location and in 2nd case only in the working directory
(D) Depends on the Compiler
10. How can I print a "% character in a in between the string foo and the value held in the variable foo using printf format string?
(A) fprintf("foo " "%" "%d
", foo);
(B) fprintf("foo '%' %d
", foo);
(C) fprintf("foo \% %d
", foo);
(D) fprintf("foo " "%d
", foo);
11. What is the output of the following program
#include
#define FIRST_PART 7
#define LAST_PART 5
#define ALL_PARTS FIRST_PART + LAST_PART
int main() {
printf ("The Square root of all parts is %d
, ALL_PARTS * ALL_PARTS) ;
return(0);
}
(A) 35
(B) 144
(C) 49
(D) 47
12. What is the use of a make file
(A) Do detect memory leakage
(B) To optimise the code
(C) To link and compile source code to exe
(D) To disassemble the exe to source code
13. What is the difference between calloc and malloc
(A) calloc allocates memory in contiguous bytes, malloc does not ensure contiguous memory allocation
(B) Memory allocated through calloc need not be freed explicitly, While memory allocated through malloc needs to be freed explicitly.
(C) calloc initialises the memory by setting all-bits-zero, malloc does not does any zero fill.
(D) all of the above
14. What is the output :
void main()
{
int a,b=5,c=10;
a = (b-c) > (c-b) ? b : c;
printf("%d,a);
}
(A) 10
(B) 5
(C) 0
(D) Error
15. What is the value of *second_ptr
int *first_ptr;
int *second_ptr;
*second_ptr = 30;
ptr value = 1;
first_ptr = &value
second_ptr = first_ptr;
(A) 30
(B) 1
(C) first_ptr
(D) None of the above
16. How many columns are retrieved from this query:
SELECT address1||','||address2||','||address2 "Adress" FROM employee;
(A) 1
(B) 2
(C) 3
(D) 0
17. To produce a meaningful result set without any cartesian products, what is the minimum number of conditions that should appear in the WHERE clause of a four-table join?
(A) 8
(B) 3
(C) 4
(D) 5
18. Assuming today is Monday, 10 July 2000, what is returned by this statement:
SELECT to_char(NEXT_DAY(sysdate, 'MONDAY'), 'DD-MON-RR') FROM dual;
(A) 10-JUL-00
(B) 12-JUL-00
(C) 11-JUL-00
(D) 17-JUL-00
19. Which character is used to continue a statement in SQL*Plus?
(A) *
(B) /
(C) -
(D) @
20. When a user creates an object without a TABLESPACE clause, where will Oracle store the segment?
(A) System tablespace
(B) Users tablespace
(C) Default tablespace for the user
(D) Oracle will give an error
21. The primary key on table EMP is the EMPNO column. Which of the following statements will not use the associated index on EMPNO?
(A) select * from EMP where nvl(EMPNO, '00000') = '59384';
(B) select * from EMP where EMPNO = '59384';
(C) select EMPNO, LASTNAME from EMP where EMPNO = '59384';
(D) select 1 from EMP where EMPNO = '59834';
22. Which character function can be used to return a specified portion of a character string?
(A) INSTR
(B) SUBSTRING
(C) SUBSTR
(D) POS
23. Which command will delete all data from a table and will not write to the rollback segment?
(A) DROP
(B) DELETE
(C) CASCADE
(D) TRUNCATE
24. Which of the following can be a valid column name?
(A) Column
(B) 1966_Invoices
(C) Catch_#22
(D) #Invoices
25. Which Oracle access method is the fastest way for Oracle to retrieve a single row?
(A) Primary key access.
(B) Access via unique index
(C) Table access by ROWID
(D) Full table scan
01. what is an object groups?
ANS:- 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 another modules.
02. what are the different objects that you cannot copy or reference in object groups?
ANS:- objects of different modules another object groups individual block dependent items program units.
canvas views:-
03. what are different types of canvas views?
ANS:- content canvas views , stacked canvas views, horizontal toolbar, vertical toolbar.
04. explain about content canvas views?
ANS:- Most Canvas views are content canvas views a content canvas view is the "base" view that occupies the entire content pane of the window in which it is displayed.
05. Explain about stacked canvas views?
ANS:- 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.
06. Explain about horizontal, Vertical tool bar canvas views?
ANS:- 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
07. Name of the functions used to get/set canvas properties?
ANS:- Get_view_property, Set_view_property
Windows:-
08. What is relation between the window and canvas views?
ANS:- 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.
09. What are the different modals of windows?
ANS:- Modal less windows , Modal windows
10. What are modal less windows?
ANS:- More than one modelless window can be displayed at the same time, and operators can navigate among them if your application allows them to do so . On most GUI platforms, modelless windows can also be layered to appear either in front of or behind other windows.
11. What are modal windows?
ANS:- 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.
12. How do you display console on a window ?
ANS:- 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.
13. What is the remove on exit property?
ANS:- For a modelless window, it determines whether oracle forms hides the window automatically when the operators navigates to an item in the another window.
14. How many windows in a form can have console?
ANS:- Only one window in a form can display the console, and you cannot change the console assignment at runtime.
15. Can you have more than one content canvas view attached with a window?
ANS:- Yes. Each window you create must have at least one content canvas view assigned to it. You can also create a window that has manipulate content canvas view. At run time only one of the content canvas views assign to a window is displayed at a time.
16. What are the different window events activated at runtimes?
ANS:- 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.
Modules:-
17. What are different types of modules available in oracle form?
ANS:- 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 collectio of user named procedures, functions and packages that can be called from other modules in the application
18. What are the default extensions of the files created by forms modules?
ANS:- .fmb - form module binary
.fmx - form module executable
19. What are the default extensions of the files created by menu module?
ANS:- .mmb, .mmx
20 What are the default extension of the files created by library module?
ANS:- The default file extensions indicate the library module type and storage format .pll - pl/sql library module binary
Master Detail:-
21. What is a master detail relationship?
ANS:- 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.
22. What is coordination Event?
ANS:- Any event that makes a different record in the master block the current record is a coordination causing event.
23. What are the two phases of block coordination?
ANS:- 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.
24. What are Most Common types of Complex master-detail relationships?
ANS:- There are three most common types of complex master-detail relationships:
master with dependent details, master with independent details, detail with two masters
25. What are the different types of Delete details we can establish in Master-Details?
ANS:- Cascade, Isolate, Non-isolote
26. What are the different default triggers created when Master Deletes Property is set to Non-isolated?
ANS:- Master Delets Property Resulting Triggers
Non-Isolated(the default) On-Check-Delete-Master
On-Clear-Details
On-Populate-Details
27. What are the different default triggers created when Master Deletes Property is set to Cascade?
Ans: Master Deletes Property Resulting Triggers, Cascading On-Clear-Details, On-Populate-Details, Pre-delete
28. What are the different default triggers created when Master Deletes Property is set to isolated?
ANS:- Master Deletes Property Resulting Triggers, Isolated On-Clear-Details, On-Populate-Details
29. What are the Coordination Properties in a Master-Detail relationship?
ANS:- The coordination properties are Deferred, Auto-Query . These Properties determine when the population phase of block coordination should occur.
How compiler treats variables of recursive functions
What is orthogonal matrix?
Given two tables and asked 2 qns on those table ,
One is on join and another is on NOT IN
Given some qns on pointers( pretty easy)
Given five qns on data structures like , lifo, fifo
Qtn on primary key
How NULL in sql is treated?
Given a doubly linked list and asked r->left->right->data ans: r->data
Explain const char *ptr and char *const ptr
Remaining i didn`t remember
Technical
What is the output of the following program?ffice" "
#include
#include
Oracle Campus Placement Paper:
1. A certain number of men can finish a piece of work in 10 days. If however there were 10 men less it will take 10 days more for the work to be finished. How many men were there originally?
(A) 110 men
(B) 130 men
(C) 100 men
(D) none of these
2. In simple interest what sum amounts of Rs.1120/- in 4 years and Rs.1200/- in 5 years ?
(A) Rs. 500
(B) Rs. 600
(C) Rs. 800
(D) Rs. 900
3. If a sum of money compound annually amounts of thrice itself in 3 years. In how many years will it become 9 times itself.
(A) 6
(B) 8
(C) 10
(D) 12
4. Two trains move in the same direction at 50 kmph and 32 kmph respectively. A man in the slower train observes the 15 seconds elapse before the faster train completely passes by him. What is the length of faster train ?
(A) 100m
(B) 75m
(C) 120m
(D) 50m
5. How many mashes are there in 1 square meter of wire gauge if each mesh is 8mm long and 5mm wide ?
(A) 2500
(B) 25000
(C) 250
(D) 250000
6. x% of y is y% of ?
(A) x/y
(B) 2y
(C) x
(D) can't be determined
7. The price of sugar increases by 20%, by what % should a housewife reduce the consumption of sugar so that expenditure on sugar can be same as before ?
(A) 15%
(B) 16.66%
(C) 12%
(D) 9%
8. A man spends half of his salary on household expenses, 1/4th for rent, 1/5th for travel expenses, the man deposits the rest in a bank. If his monthly deposits in the bank amount 50, what is his monthly salary ?
(A) Rs.500
(B) Rs.1500
(C) Rs.1000
(D) Rs. 900
9. What is the difference between the two declaration ?
#include
&
#include "stdio.h
(A) No Difference
(B) The 2nd declaration will not compile
(C) First case Compiler looks in all default location and in 2nd case only in the working directory
(D) Depends on the Compiler
10. How can I print a "% character in a in between the string foo and the value held in the variable foo using printf format string?
(A) fprintf("foo " "%" "%d
", foo);
(B) fprintf("foo '%' %d
", foo);
(C) fprintf("foo \% %d
", foo);
(D) fprintf("foo " "%d
", foo);
11. What is the output of the following program
#include
#define FIRST_PART 7
#define LAST_PART 5
#define ALL_PARTS FIRST_PART + LAST_PART
int main() {
printf ("The Square root of all parts is %d
, ALL_PARTS * ALL_PARTS) ;
return(0);
}
(A) 35
(B) 144
(C) 49
(D) 47
12. What is the use of a make file
(A) Do detect memory leakage
(B) To optimise the code
(C) To link and compile source code to exe
(D) To disassemble the exe to source code
13. What is the difference between calloc and malloc
(A) calloc allocates memory in contiguous bytes, malloc does not ensure contiguous memory allocation
(B) Memory allocated through calloc need not be freed explicitly, While memory allocated through malloc needs to be freed explicitly.
(C) calloc initialises the memory by setting all-bits-zero, malloc does not does any zero fill.
(D) all of the above
14. What is the output :
void main()
{
int a,b=5,c=10;
a = (b-c) > (c-b) ? b : c;
printf("%d,a);
}
(A) 10
(B) 5
(C) 0
(D) Error
15. What is the value of *second_ptr
int *first_ptr;
int *second_ptr;
*second_ptr = 30;
ptr value = 1;
first_ptr = &value
second_ptr = first_ptr;
(A) 30
(B) 1
(C) first_ptr
(D) None of the above
16. How many columns are retrieved from this query:
SELECT address1||','||address2||','||address2 "Adress" FROM employee;
(A) 1
(B) 2
(C) 3
(D) 0
17. To produce a meaningful result set without any cartesian products, what is the minimum number of conditions that should appear in the WHERE clause of a four-table join?
(A) 8
(B) 3
(C) 4
(D) 5
18. Assuming today is Monday, 10 July 2000, what is returned by this statement:
SELECT to_char(NEXT_DAY(sysdate, 'MONDAY'), 'DD-MON-RR') FROM dual;
(A) 10-JUL-00
(B) 12-JUL-00
(C) 11-JUL-00
(D) 17-JUL-00
19. Which character is used to continue a statement in SQL*Plus?
(A) *
(B) /
(C) -
(D) @
20. When a user creates an object without a TABLESPACE clause, where will Oracle store the segment?
(A) System tablespace
(B) Users tablespace
(C) Default tablespace for the user
(D) Oracle will give an error
21. The primary key on table EMP is the EMPNO column. Which of the following statements will not use the associated index on EMPNO?
(A) select * from EMP where nvl(EMPNO, '00000') = '59384';
(B) select * from EMP where EMPNO = '59384';
(C) select EMPNO, LASTNAME from EMP where EMPNO = '59384';
(D) select 1 from EMP where EMPNO = '59834';
22. Which character function can be used to return a specified portion of a character string?
(A) INSTR
(B) SUBSTRING
(C) SUBSTR
(D) POS
23. Which command will delete all data from a table and will not write to the rollback segment?
(A) DROP
(B) DELETE
(C) CASCADE
(D) TRUNCATE
24. Which of the following can be a valid column name?
(A) Column
(B) 1966_Invoices
(C) Catch_#22
(D) #Invoices
25. Which Oracle access method is the fastest way for Oracle to retrieve a single row?
(A) Primary key access.
(B) Access via unique index
(C) Table access by ROWID
(D) Full table scan
01. what is an object groups?
ANS:- 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 another modules.
02. what are the different objects that you cannot copy or reference in object groups?
ANS:- objects of different modules another object groups individual block dependent items program units.
canvas views:-
03. what are different types of canvas views?
ANS:- content canvas views , stacked canvas views, horizontal toolbar, vertical toolbar.
04. explain about content canvas views?
ANS:- Most Canvas views are content canvas views a content canvas view is the "base" view that occupies the entire content pane of the window in which it is displayed.
05. Explain about stacked canvas views?
ANS:- 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.
06. Explain about horizontal, Vertical tool bar canvas views?
ANS:- 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
07. Name of the functions used to get/set canvas properties?
ANS:- Get_view_property, Set_view_property
Windows:-
08. What is relation between the window and canvas views?
ANS:- 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.
09. What are the different modals of windows?
ANS:- Modal less windows , Modal windows
10. What are modal less windows?
ANS:- More than one modelless window can be displayed at the same time, and operators can navigate among them if your application allows them to do so . On most GUI platforms, modelless windows can also be layered to appear either in front of or behind other windows.
11. What are modal windows?
ANS:- 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.
12. How do you display console on a window ?
ANS:- 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.
13. What is the remove on exit property?
ANS:- For a modelless window, it determines whether oracle forms hides the window automatically when the operators navigates to an item in the another window.
14. How many windows in a form can have console?
ANS:- Only one window in a form can display the console, and you cannot change the console assignment at runtime.
15. Can you have more than one content canvas view attached with a window?
ANS:- Yes. Each window you create must have at least one content canvas view assigned to it. You can also create a window that has manipulate content canvas view. At run time only one of the content canvas views assign to a window is displayed at a time.
16. What are the different window events activated at runtimes?
ANS:- 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.
Modules:-
17. What are different types of modules available in oracle form?
ANS:- 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 collectio of user named procedures, functions and packages that can be called from other modules in the application
18. What are the default extensions of the files created by forms modules?
ANS:- .fmb - form module binary
.fmx - form module executable
19. What are the default extensions of the files created by menu module?
ANS:- .mmb, .mmx
20 What are the default extension of the files created by library module?
ANS:- The default file extensions indicate the library module type and storage format .pll - pl/sql library module binary
Master Detail:-
21. What is a master detail relationship?
ANS:- 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.
22. What is coordination Event?
ANS:- Any event that makes a different record in the master block the current record is a coordination causing event.
23. What are the two phases of block coordination?
ANS:- 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.
24. What are Most Common types of Complex master-detail relationships?
ANS:- There are three most common types of complex master-detail relationships:
master with dependent details, master with independent details, detail with two masters
25. What are the different types of Delete details we can establish in Master-Details?
ANS:- Cascade, Isolate, Non-isolote
26. What are the different default triggers created when Master Deletes Property is set to Non-isolated?
ANS:- Master Delets Property Resulting Triggers
Non-Isolated(the default) On-Check-Delete-Master
On-Clear-Details
On-Populate-Details
27. What are the different default triggers created when Master Deletes Property is set to Cascade?
Ans: Master Deletes Property Resulting Triggers, Cascading On-Clear-Details, On-Populate-Details, Pre-delete
28. What are the different default triggers created when Master Deletes Property is set to isolated?
ANS:- Master Deletes Property Resulting Triggers, Isolated On-Clear-Details, On-Populate-Details
29. What are the Coordination Properties in a Master-Detail relationship?
ANS:- The coordination properties are Deferred, Auto-Query . These Properties determine when the population phase of block coordination should occur.
How compiler treats variables of recursive functions
What is orthogonal matrix?
Given two tables and asked 2 qns on those table ,
One is on join and another is on NOT IN
Given some qns on pointers( pretty easy)
Given five qns on data structures like , lifo, fifo
Qtn on primary key
How NULL in sql is treated?
Given a doubly linked list and asked r->left->right->data ans: r->data
Explain const char *ptr and char *const ptr
Remaining i didn`t remember
Technical
What is the output of the following program?ffice" "
#include
#include
No comments:
Post a Comment