Top Banner
Aptitude section of Oracle 1. Two words are given by Word 1: 83263641 Word 2: 3715468 ( don’t remember the order of the numbers.) Each character is represented by a digit and each digit represents a character. It is given that T and R occur four times. S and A occur two times. E, P, O and M occur one time each. The word 2.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. 3.There was a table with data related to net sales, gross profit, etc... and some questions were asked related to it. Very easy… 4.A man spent 1/6th of his life in child hood, 1/12th of his life as youngster and 1/7th of his life as a bachelor. After five years of his marriage a son was born to him. The son died four years before the father died and at the time of his death his age was half the total age of his father. The questions were, a. What is the age of the father. (84) b. At what age was he married.(33) c. What is the age of his son.(42) 5. Rita puts 9 pairs of black socks and 8 pairs of white socks in a drawer. She takes 3 socks. What is the probability that we get a pair of black socks. 6. What is the value of the following series 1/7 + 2/72 + 1/73 +2/74 + 1/75 + ……….
25

Aptitude Section of Oracle

Oct 15, 2014

Download

Documents

don504
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Aptitude Section of Oracle

Aptitude section of Oracle

1. Two words are given by Word 1: 83263641Word 2: 3715468 ( don’t remember the order of the numbers.)Each character is represented by a digit and each digit represents a character.It is given that T and R occur four times. S and A occur two times. E, P, O and M occur one time each. The word

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

3.There was a table with data related to net sales, gross profit, etc... and some questions were asked related to it. Very easy…

4.A man spent 1/6th of his life in child hood, 1/12th of his life as youngster and 1/7th of his life as a bachelor. After five years of his marriage a son was born to him. The son died four years before the father died and at the time of his death his age was half the total age of his father.    The questions were,   a.  What is the age of the father. (84)  b.  At what age was he married.(33)  c.  What is the age of his son.(42)

5.   Rita puts 9 pairs of black socks and 8 pairs of white socks in a drawer. She takes 3 socks. What is the probability that we get a pair of black socks.

6. What is the value of the following series   1/7 + 2/72 + 1/73 +2/74 + 1/75 + ……….

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.What is the sum of all the four digit numbers formed using the digits 0, 1, 2 and 3. None of the two digits should be repeated.

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

10.There are two square rooms. Both are of same height. The second room is 5m longer than the first room. The rate for papering the walls is 10 paisa per square meter. The total cost for papering the rooms is Rs 60 and Rs 80. What is the height of the rooms.

Page 2: Aptitude Section of Oracle

11.There are two numbers in the ratio 8:9. if the smaller of the two numbers is increased by 12 and the larger number is reduced by 19 thee the ratio of the two numbers is 5:9.Find the larger number.

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

13. The first and the last sentences of a set of sentences are given. The middle four sentences are in jumbled form we have to select the order in which the sentences are to be placed so that they convey a meaningful message.

14.A passage with two paragraphs is given. Then two questions are asked based on it. Could not remember it.

15.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.         Technical

16.Delete from table tempv where rowid in (select rowid from tempv where rowid in (((select min(rowid) from tempv  where ... count(*) > 1))) union(select rowid from tempv where rowid in (((select min(rowid) from tempv where ... count(*) > 1)));

17.When there is a failure in fetching the rows from a cursor...    a. %isopen    b. %notfound    c. %found    d. %rowcount

18.Select 'oracle' from dual where null = null;    a. oracle    b. null    c. error out    d. no rows selected

19.here is a question of Package body and Package Specification,  they have provided the code for that describing the scenario of  movie_tickets_sold and asked the programmer to insert a block of  code...., where that code block to be inserted? In Package body? or  in Package Specification?

20.Which of the following operator is not used in Outer Join?a. =

Page 3: Aptitude Section of Oracle

b. !=c. ANDd. OR

21.PL/SQL uses which of the followinga. Early Bindingb. Late bindingc. No Bindingd. Deferred Binging

22.Following is a database trigger, CREATE OR REPLACE TRIGGER delete_row ON DELETE   not remember the complete question.

23.If table contains 100 rows and it is truncated, how many rows get  updateda. 0b. 1c. 100d. No rows updated

24.There are some questions on Basic SELECT STATEMENTS...

25.  Some questions on Triggers, Procedures

26. VARRAYS/Nesting of Table: 1 question is there

27.  NLS_DATE_FORMAT: 1 question

28.The size of the float data type in C language is …

29.he size of the float data type in C language is …What is the output of the following C program. Main()    {       printf(“%c”,”abcdefgh”[4]);     }

30.What is the o/p of the following C-program.  Main()     {          char str[7]=”strings”;        printf(“%s”,str);     }

Page 4: Aptitude Section of Oracle

31.  main()  {     file *fp;    fp=fopen(“xyz”,”r”);  }    What does fp point to?

32. What is the maximum no. of arguments that can be given in a command line in C.

33.  When the variables are pushed into the stack, which method is used to retrieve them from it.a) pop b) pull c) remove d) none of these.

34.   What is the size of integer variable in JAVA?

35. A programs reads “The man and the boy\r\n” from a file using fgets() and stores it in str[]. Then the string stored in str is   a) “The man and the boy\r\n\0”   b) “The man and the boy\r\0”   c) “The man and the boy\n\0”   d) “The man and the boy\0”

36.   After this written exam, we had another written for the short-listed students. It contained algorithms and coding. There were two questions.

37. The first one was the conversion of a given expression into its postfix form and then to evaluate it.

38. The question was to have a circularly linked link-list of integers 1 to n. I we give k as an input then we have to output(print) 1, k, 1+2k, 1+3k … till n and we have to delete these numbers. When we give then next k we have to continue the same process starting with 2. The linked needs to be maintained.

1)find the range of x*x -5x+6>0X=3

2)if 5x*x+14*x+k=0 having two reciprocal roots find the value of k.

3&4)two sentence are given ,in between four sentence are given in change order. (like between 1 & 6 ,abcd four sentence are given  1  a b c d  6)Find the correct order?

5)if first term of AP is 5 .16th term is 45.find the sum of first 16  terms.

Page 5: Aptitude Section of Oracle

6)x,y and z are odd no. not necessarly in sequence.then y=?(1)mean of x and z is 114.(2)mean of y and z is 113.

Ans:  115

7)ram is 27 year old then mohan.after 7 year ram age is thrice as mohanage .find ram age?Ans : 67/2

8)if three tapes are filling a tank of capacity of 500lit with speed of30lit/sec,48lit/sec and 36lit/sec. Find after how long  time tank willfill?Ans : 500/114

9)find the root of given eq x-2/(x-1)=1-2/(x-2) if possible.Ans : x = 0

10)find the point of intersection of \15x+9y=155x+3y=21

Ans : NO

11)suppose in a pot 20 cards are there label 1-20 on that. find theprobability of getting two prime.

Ans : 8/20 = 2 / 5

12)in an island three persons are there Jam ,Dam and Sam .sam havingpencil,dam having cap and Jam having book .we have find who is authoramong them if.(1)Sam says ,Jam  is author but author wearing cap.(2)Dam says ,I am author ,but author not having cap.(3)Sam says, I am author ,but author  having note book.Find who is author?

Ans : jam

13)Jo ,Do and So are three person.(1) So says Jo is football player, I also football player.(2) Do says Jo is football player, I also football player.(3) Jo says Do is football player, I also football player.Find the football player player among them.

Page 6: Aptitude Section of Oracle

Ans : jo

14-16)question based analogy . like LION:CUB find the pair in given choice.

17)in a basket 3 mangos,4 apples and 4 bananas are there. Find no of ways we select randomly 3 fruit from basket?

18) if a^x=b^y=c^z and b^2=ac then   find x+z/xz=?Ans :      2/y

19)(loga)^2-(logb)^2 = ?ans :- logab-loga/b

20)in a 60 liters of mixture of spirit and water is 7 %. in order to make water 19%,how much water should be added.(some thing like this)

21-25)A one and half page length passage will be given and 4 to 5questions will  be asked based on this passage.

26)

Technical part:-==================pattern: 1) pl/sql—>7 quest2) java—>5 quest3) c & pointers—>9 quest4) dbms and dfd’s—>5 quest5) ds—>4 quest

some quest are here:-

1.what is not a c- storage classAns.stack

2.if  dba creates   one user  what are the privilages the user will get?

3. which keyword is used to const in javaAns. final

4.char *array[4]={”some string”}printf(”%d”,&array[4]-(array));Ans.4

5.remote object will be in the packageAns.java.net (verity it)

Page 7: Aptitude Section of Oracle

6.#define sq(a) (a*a)printf (”%d”,sq (3+2));Ans.11

7.#define max 20printf (”%d”, ++max);Ans.lvalue required — error

8.printf (”%d”,sizeof (2>3?4?:4:3?4:2));(some thing like this)Ans.syntax error

9. what is important of free().

10.property of constructor in java program.

11.impotance of macro.

12.underfolw condition of stack.(1)empty,2)push,3)pop,4)none)====================

1)Which of the following is not a storage class in C?StaticRegisterExternStack

2)Which of the following ‘return’ statement is correct?return, return;return(1, 2, 3);return(return 4);(return 5, return 6);

3)The second argument to fopen() function is?charconst char *int *FILE *

4)What is the output of the program?#includevoid main(){char buffer[10] = {”Genesis”};

Page 8: Aptitude Section of Oracle

printf(” %d “, &buffer[4]- (buffer));}340Illegal pointer subtraction4

5)If “arr” is an array of 5 x 5 dimension, arr[2][4] is same as**(a+3+4)*(a+3)+*(a+4)**(a+3)+4*(*(a+2)+4)

—————————————————–APTITUDE         30 questions

Log371:      ——-     =        ?          ( Log67 )1 + Log32

2:   log(a-b) = log a - log b;   then a = ?(b/(b2+1));

3:  3 black 7 white balls. prob of drawing 2 white balls   ?          (7/15)

4: In a lock  of 4 rings there r five characters howmany unsuccessful attempts can be made    ?        (624)..

5:  sqrt(6+sqrt(6+sqrt (6 + ..))))) = ?   3

6:  a solution is prepared by mixing two solution with  sprit 20% & 60%..Inwhat ration they should be mixed to get the 50% sprit in resultant solution.(1:3)

7:  X2 - (A-3)X +(A+3) = 0for what value of A the sum of square of roots will be least ?   (A=2);

8: ‘a’ number of persons work daily ‘b’ hours to produce ‘c’ items. If ‘d’  persons walks away from the group what will be the number of hours to produce ‘c’ items. ?  (ab/(a-d))

9: - 13 Passage

14 - 18 venn diagram.

Page 9: Aptitude Section of Oracle

19-22 picking based (VERBAL);

23-25 picking odd once out (words )

26: m = ax  , n = ay   mxny  = a2(x+y)    find 1/x + 1/y?  

27 xy - 2y - 6 =0;x 2 x >2 ..y is always postive.

28The diameter of circle can be determined from1.area.2.circumference.Ans either of them.

29: sum of 2 no. is 7 & product s 10 fnd larger number.

30:

VERBAL: (ref GRE barrons)1. Find the Wrongly Spelt word - they will give u 5 words and you want to find the wrongly spelt word  wrought ...etc (cant remember)2. Rearrange the words in correct form3. Sentence completion - Sentence with 2 fill ups and u want to choose the correct one from given 4 options.

MATCH:1. Java - Beans2. Linux - Penguin3. Kernal - OS4. Quality - SEI CMM5.  - Wall6. - NP7. - Turing8. Alan -

 

Page 10: Aptitude Section of Oracle

CODING PART:

read as=0x=awhile(x > 0){ c=x/10; y=x-c*10; s=s+y; x=x/10;}print s

 

9. What is the value of s if a=1010. What is the value of s if a=1511. How many times the loop will be executed if a=1000012. What is the value of y and s if a=115

ODD MAN OUT:

13. Mpeg jpg avi omgAns:omg

 

14.(figures) circle star rectangle <another symbol>Ans: star

 

15. programs  documents  settings  propertiesAns: properties

 

16. processor motherboard  display card  mouseans mouse

Page 11: Aptitude Section of Oracle

 

COMPUTER AWARENESS:

17. What is the accessing mode for a magnetic tape?Sequential  Random Direct Indirect

 

18. Add 110011 with octal 658 and what is the output in decimal? (no not exact)

 

19. SIM expansion - Subscriber Identity Module

 

20. expand CORBAans Common Object Request Broker Architecture

 

21. 9. 92.168.100.4 - meansans IP Address

 

22. What is the lock symbol appearing in bottom of the browser meanans. connection secured?

 

23. Superconductivity - without any resistance

APTITUDE:

24. If 14 aug 2004 is saturday which year previously did 14 aug became Sunday?Ans: 1994

Page 12: Aptitude Section of Oracle

 

25. C is a point between A and B such that k% of AC is equal to CB. What is k%?

 

26. what is the result of this ex-pression xy+x'y+xy'+x'y', if x' - complement of x and y' - complement of y?Ans: always 1 (check it)

 

27. Which is the perfect square amongst the following: (no not exact)63381 34547 ...

 

28. Two points C and D between A&B and an another point E between C&D such that AC=CE and ED=DB. - some question like this

 

29. what is the value of (3.960 * 0.04)/0.03 (no not exact)

 

30. A persons salary is decreased by steps of 25% and 20%. What will be the percentage decrease, if thesalary is decreased in a single shot?Ans: 40%

 

31. x+(1/x) = 2 find x^100 + (1/x^100)Ans: 2^100

 

32. If ABCXXXXTUV then which of the following string comes next?...ABCXXXXTUWABDXXXXTUV

Page 13: Aptitude Section of Oracle

ABCXXXXTUU...

 

33. If 37ABC421 is divisible by <some no> what is ABC(no not exact). - 2 questions of this type...

 

34. Find the reminder when 3336667778889991 divided by 9 ?

 

35. In the series 0, 3, 8, 15,__ What is the next number?Ans: 24

 

36. A person's salary is getting reduced by 20%. What percentage should be added to get back his original salary?Ans. 25%

 

37. Find the nth number in the series is 1, -3, 5, -7.___Ans: ((-1)^(n-1)) * (2n-1)

 

38. A cubical rectangular bar has the dimensions with the ratio 5 : 4 : 3. Its volume is 7500. What is the surface area of the bar?Ans. 2350

 

39. 178^2 -22^2Ans: 31200

 

40. f(x) = 1/(1-x) find(f(f(f(x)))

Page 14: Aptitude Section of Oracle

Ans: -1(check)

 

41. A man walked 30m west 5m south 10m west 35m north to reach tollgate find the dist from start to gate.Ans. 50m

 

42. If the length of a rectangle is increased by 50% then how much the width should be decreased to maintain the same area?

It was an referral walkinThere were 6 rounds :

1st round-apptitude written 14/302nd round tech written 24/303rd round Technical round4th round Technical round5th H.R6th H.R

1st Round: Follow oracle previous question papers2nd Round:Sql and Pl/Sql

1< Cartesian Product can be achieved by using joinwhich involves a conditiona, no of tables-12< Bitmap tree & Binary tree3< Outer joineg: emp.deptno=dept.deptno(+)4< Changes made to database through PL/SQL block willbe effected due to --------- when ever user executesthat form or ..........a, Commit in PL/SQL blkb, end of PL/SQLc, After leaving/ending the sessiond,5< Select dept,avg(sal)

Page 15: Aptitude Section of Oracle

from empgroup by job;Find out the error in which line it is6< For loop of a cursor is-----Implicitly opened &closed7< The implicit cursor attribute that does not workis%found,%notfound,%isopen,%rowcount8< Which of the following is not a cursor attribute%found,%notfound,%rownumber,%rowcountans: %rownumber9< Insertsave pointupdatesave pointcreaterollbackdeletea, only delete rows

10< Proc_a calls Proc_b calls proc_cthere is an satatement in Proc_b where we have adivide by zero error but u dont have anyexception in Proc_a.so can u write any exception toovercome ita, zero_divide in proc_c: Not confirm check it

11< dont remember the remaining but they were simple

3rd round:

1< Exception: defasked Eg's NO_DATA_FOUND

2< BegincodeExceptionwhen others then----------when zero_divide then-----

Page 16: Aptitude Section of Oracle

any error?

3< emp deptempno deptnoename dnamedeptnowrite a query to get empno,ename ,deptno,dname

4< deptno emp10 40?203040

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

related scenarioename empnodeptnox a10y b20z c30d40count(*) -> 4 rowscount(ename) ->3 ignores null valued rows

6< Foreign key can hold null value

7< constraints: def & typesdiff between(b/w) unique & Primary keyconstraints

8< Trigger : syntaxHow do u identify that its for

Page 17: Aptitude Section of Oracle

insert/delete/update: thruif(INSERT)code9< Puzzel 3 switches 3 bulbs in a roomu have to go into the room watch them ,comeout of room and select a switchso that there is a correspondence with thebulb i.e., if 1st switch-1st bulb andso on, if u select firist switch it should onthe first bulb

10< any ,all

11< insertupdatecreatedeleterollbackthen deletes rec

12< insertupdatecreate (does not create & results in err)deleterollbackthen deletes rec becoz ddl is precceded and succeededby a commit

13< types of commandsDDL,DCL,DML,TCL

14< diff b/w truncate & delete15< 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

Page 18: Aptitude Section of Oracle

Microsoft then will u leave urcompany which u have joined 6 months back

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

3,Not so good in sql? i said so soso we dont provide any trainning so how will u copeup gave some expl4, expl ur present work in JAMIA,modulesgave a scenario which is like belowtwo table were given test(testname,testid)and test_det(testid,marks)write a query to print in the below formattestname testid status count(*)FAILPASS

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

5, Data given was'Pragati','PRagati','pragati'...diff formatsso now write a query to get all the dataselect name from demowhere lower(name)='pragati;can we write lower(name)=lower(pragati);what does lower take as an argument

6, does oracle support function overloadingdont know/not sureso give eg of any function in sql which supportsoverloadingsubstr()so how does it store internally:dont have ideatook eg of overloading in java and asked how does itstore:gave some roughidea which was correct

Page 19: Aptitude Section of Oracle

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 forinterview: ooportunity knos once3< why did u not join eng4< why did u get less rank in ICET5< what's ur goal6< why only 75% in MCA7< support yourself that ur hardworkinggave some eg of college ...convinced him

8< who is ur role model?support ur ans9< what is ur gr8 achievement10< questions on final year proj and degree proj theirformats

11, apt question

in a pipe through which water is flowing is 1/3rdfull what is its volume: andans is in the question i.e., 3 times

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

1< short term goal<4 yrs from now: get good hold onOraclemiddle term goal>7 yrs:team leaderlong term goal>14 yrs: CEO ,so what would u do to achieve it: i think it needs tohave managerial skills so as to manage so wouldlike to do MBA and.....

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

Page 20: Aptitude Section of Oracle

standards

The main thing is their criteria which they will notcompromise they r looking for broadminded people who rintelligent,hardworking and having good communicationskills

Read more: http://www.ittestpapers.com/articles/placement-paper-of-oracle---jun2005.html#ixzz1UeFaP0Sm