You are on page 1of 15

Welcome to Oracle Placement Paper 2010.

Here you will find Oracle Placement Paper Pattern and Download questions of Oracle Placement Paper 2010 with Answers & Solutions. 1..void main() { int i; clrscr(); for(i=1;i<6;++i) switch(i) { case 1: case 2: printf("%d,",i++);break; case 3: continue; case 4: printf("%d,",i); } printf("%d",i); getch(); } Ans: 1,4,6 2.Which of the storage class(es) becomes the global variables for the entire Program (A) Extern (B) Static (C) Auto (D) Register Ans: A 3. What is the output of the program void main() { char s[]="oracle is the best"; char t[40]; char *ss,*tt; while(*tt++=*ss++); printf("%s",t); getch(); } // A. oracle is the best // B. Core dump // c. Error Message // D. Goes into infinite loop Ans: B. core dump (Garbage value)

4. What is the output of the program void main() { int j[10]={9,7,5,3,1,2,4,6,9}; int i=1; clrscr(); for(;i<9;i++) printf("%d ",--j[i++]); getch(); } // A. 6,2,1,5 // B. 6,2,1,5,7 // c. Error Message // D. core dump Ans: A. 6,2,1,5 5. Which clause u use to exclude the rows before grouping them? A. Group By B. Having C. Where D. Minus 6. Which of the following statements is not true about views? A. you can create a index on views B. Views do not have permanent data C. Views can be based on one or more tables D. Views can be dropped without dropping tables 7. What should be the value of a, in the polynomials x2 11x + a and x2 14x + 2a, so that these two polynomials have common factors. a) 24 b)1 c)-1 d)1/2 8. a right angled triangle, the square of the hypotenuse is twice the product of the other two sides. Then one of the acute angles of the triangle is a) 450 b) 300 c) 600 d) 150 9.. In class of 10 students, the teacher writes a number on the board. The first student tells that the number is divisible by 1, the second student tells that the number is divisible by 2,

the third by 3, the forth by 4 and so on till 10. If the statement of one of the students in wrong then what is the least number possible. 10. The data dictionary view to see the list of constraints enabled on a table is a. user_tables b. user_table_constraints c. user_constraints d. There is no dictionary view available for the same 11. Identify the pseudocolumns a. rowid b. sysdate c. rowval d. dual 12. if "a" is an array of 5*5 dimension, a[2][4] is same as a. **(a+2+4) b. *(a+2) + *(a+4) c. **(a+2)+4 d. *(*a+2)+4) 13. what is the output of .. #include void main() { char buffer[10]={"Genesis"}; printf("%d",&buffer[4]-(buffer)); } a. 3 b. 4 c. 0 d. illegal pointer subtraction 14. identify the relationship between the many employees working in a dept.. a. one to one b. one to many c. many to one d. many to many 15.there was a table given and it was asked which normal form does it follows.. 16. the process of including some controlled redundancy for the sake of performance is

known as a. normalization b. Cartesian product c. Denormalization d. None 17. 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 18. 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 19. 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 20.Which character is used to continue a statement in SQL*Plus? (A) * (B) / (C) (D) @ Welcome to Oracle Placement Paper 2009. Here you will find Oracle Placement Paper Pattern and Download questions of Oracle Placement Paper 2009 with Answers & Solutions. 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, HyderabadBangalore 2. main(int argc,int *argv[]) { int i; for(i=1;i<argc;i++) printf("\n%s%s",argv[i],(i<argc-1)?"":""); return 0; getch(); } Ans: I work for oracle 3.Which of the storage class(es) becomes the global variables for the entire Program (A) Extern (B) Static (C) Auto (D) Register Ans: A 4. What is the output of the program void main() { char s[]="oracle is the best"; char t[40]; char *ss,*tt; while(*tt++=*ss++); printf("%s",t); getch(); } // A. oracle is the best // B. Core dump // c. Error Message // D. Goes into infinite loop Ans: B. core dump (Garbage value) 5.Which of the following is not true incase of Command line arguments

A. The argc parameter is used to hold the number of arguments in the = command line and is an integer B. The argv parameter is a pointer to an array of a character = pointer and each one points to command line arguments C. The argv[1] always point to program name D. None of above Ans: C 6. A function without any return type declares return=20 A. Integer B. Float C. Void D. Syntax Error Ans: A 7. 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" 8. Denormalisation is done to A. Check for Data Integrity B. Reduce Data Redundancy C. Intoduce Security Check D. Increase Query performance . 9. When there is a failure in fetching the rows from a cursor a. %isopen b. %notfound c. %found d. %rowcount 10. what is the index no of the last element of an array with 29 elements a. 29 b. 28 c. 0 d. programmer defined

11. what is the final value of x when the code for(int x=0;x<10;x++) is run? a. 10 b. 9 c. 0 d. 1 12. what is the output of .. #include void main() { char buffer[10]={"Genesis"}; printf("%d",&buffer[4]-(buffer)); } a. 3 b. 4 c. 0 d. illegal pointer subtraction 13. what is the output for #include main() { static int a[]={5,10,15,20}; int * ptr=a; int ** ptr_ptr=&ptr; printf("\n %d",**ptr_ptr++); } a. 5 b. 10 c. 15 d. 6 14. 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 15. 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 16. 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\n", foo); (B) fprintf("foo % %d\n", foo); (C) fprintf("foo \% %d\n", foo); (D) fprintf("foo " "%d\n", foo); 17. 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\n , ALL_PARTS * ALL_PARTS) ; return(0); } (A) 35 (B) 144 (C) 49 (D) 47 18. Which character function can be used to return a specified portion of a character string? (A) INSTR (B) SUBSTRING (C) SUBSTR (D) POS 19. 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 20.Threading in java a program was given in which it had no exceptions and run function had string as its parameter a. runtime error b. compile time error c. logical error d. syntax error Category SubCategory Location Company About Oracle:Oracle provides the worlds most complete, open, and integrated business software and hardware systems, with more than 370,000 customersincluding 100 of the Fortune 100 representing a variety of sizes and industries in more than 145 countries around the globe. Oracle's product strategy provides flexibility and choice to our customers across their IT infrastructure. Now, with Sun server, storage, operating-system, and virtualization technology, Oracle is the only vendor able to offer a complete technology stack in which every layer is integrated to work together as a single system. In addition, Oracle's open architecture and multiple operating-system options gives our customers unmatched benefits from industry-leading products, including excellent system availability, scalability, energy efficiency, powerful performance, and low total cost of ownership. Why Oracle- Why Should i join Oracle::Oracle recruiters are always searching for brilliant employees with an entrepreneurial spirit, looking for a work culture where innovation is the goal, hard work is expected, and creativity is rewarded. Oracle employees enjoy competitive salaries, excellent health benefits, and a network of like-minded co-workers that drive innovation across the entire technology industry. Welcome to Oracle Placement Paper 2011. Here you will find Oracle Placement Paper Pattern and Download questions of Oracle Placement Paper 2011 with Answers & Solutions. 1. What is the output of the program void main()
IT Placement Papers Bangalore Oracle

{ int j[10]={9,7,5,3,1,2,4,6,9}; int i=1; clrscr(); for(;i<9;i++) printf("%d ",--j[i++]); getch(); } // A. 6,2,1,5 // B. 6,2,1,5,7 // c. Error Message // D. core dump Ans: A. 6,2,1,5 2. What is the output of the program void main() { int i,j,k,n=5; clrscr(); for(i=5;i>0;i--) { j=1<i; k=n&j; k==0?printf("0"):printf("1"); } getch(); } // A. 00011 // B. 11110 // c. 11001 // D. 11100 Ans: B. 11110 3.Threading in java a program was given in which it had no exceptions and run function had string as its parameter a. runtime error b. compile time error c. logical error d. syntax error 4.what functions 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); 5.Consider the following structure Struct { int data; struct node *prev; struct node *next; }NODE; NULL <-- 5 --> 8 --> 10 --> NULL p <-- q <-- r=20 WHAT WILL BE THE VALUE OF r-->prev-->-->next-->data ? A. 8 B. Null C. 5 D. 10 Ans: 10 6. starts with T. The letter E occurs in word one only. The questions were, a). Which number represents T. b). Which number represents S. c). Which character represents 2. d). Which digit represents A. e). Which word represents word 2. 7. A passage with two paragraphs is given. Then two questions are asked based on it. Could not remember it. 8. A stamp collector arranges his stamps during his free time. When he arranges his stamps in pairs, there is one stamp left. It is the same when he arranges the stamps in groups of 3, 4, 5 and 6. Now, how many stamps will he be left with when he arranges them in groups of 8. 9. select deptno, count(empno) from emp where count(empno)>=5

group by deptno; identify the line no which contains the error a. 1 b. 2 c. 3 d. 1,3 10. choose the group function that can be used with any data type a. sum() b. min() c. avg() d. all 11. if "a" is an array of 5*5 dimension, a[2][4] is same as a. **(a+2+4) b. *(a+2) + *(a+4) c. **(a+2)+4 d. *(*a+2)+4) 12. what is the output of .. #include void main() { char buffer[10]={"Genesis"}; printf("%d",&buffer[4]-(buffer)); } a. 3 b. 4 c. 0 d. illegal pointer subtraction 13. the process of including some controlled redundancy for the sake of performance is known as a. normalization b. Cartesian product c. Denormalization d. None 14. in a doubly linked list a. the last node contains the address of the first node b. each node contains the address of previous and next node

c. each node contains the address of previous node d. none

15. x% of y is y% of ? (A) x/y (B) 2y (C) x (D) can't be determined 16. 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% 17. 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 18. 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\n , ALL_PARTS * ALL_PARTS) ; return(0); } (A) 35 (B) 144 (C) 49 (D) 47 19. 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 20. 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 Category SubCategory Location Company About Oracle:Oracle provides the worlds most complete, open, and integrated business software and hardware systems, with more than 370,000 customersincluding 100 of the Fortune 100 representing a variety of sizes and industries in more than 145 countries around the globe. Oracle's product strategy provides flexibility and choice to our customers across their IT infrastructure. Now, with Sun server, storage, operating-system, and virtualization technology, Oracle is the only vendor able to offer a complete technology stack in which every layer is integrated to work together as a single system. In addition, Oracle's open architecture and multiple operating-system options gives our customers unmatched benefits from industry-leading products, including excellent system availability, scalability, energy efficiency, powerful performance, and low total cost of ownership. Why Oracle- Why Should i join Oracle::Oracle recruiters are always searching for brilliant employees with an entrepreneurial spirit, looking for a work culture where innovation is the goal, hard work is expected, and creativity is rewarded. Oracle employees enjoy competitive salaries, excellent health benefits, and a network of like-minded co-workers that drive innovation across the entire
IT Placement Papers Bangalore Oracle

technology industry.

You might also like