Oracle Interview Puzzles

The following Orcale Interview Puzzles will help you enhance your skills and will offer you better confidence while giving the interview.

1. Oracle Interview Puzzle - Reciprocal Roots Interview Question

Find the value of m if 5x*x+14*x+m=0 is having two reciprocal roots.
Solution:
Product of reciprocal roots = 1
Product of roots of quadratic equation ax^2+bx+c = 0 is c/a.
Hence m/5 =1
m=5

2. Oracle Interview Puzzle - GP series Interview Problem

Determine the value of the following series
1/(7^1) + 2/(7^2) + 1/(7^3) +2/(7^4) + 1/(7^5) + ....

Solution:
1/7+1/7^2+1/7^2+1/7^3+1/7^4+1/7^4+1/7^5+......
==>(1/7+1/7^2+1/7^3+1/7^4+1/7^5+......) + (1/7^2+1/7^4+ 1/7^6+.......)
Thus we have two GP series one with a=1/7 and r=1/7
And the second one with a=1/7^2 and r= 1/7^2
Sum of GP to infinity (when r is small) = a/1-r
Hence sum of expression = (1/7/1-1/7) + (1/7^2/1-1/7^2) = (1/6) + (1/48) = 3/16

3. Oracle Interview Puzzle - Polynomial Equations Interview Question

Determine the value of z in the polynomials x^2-11x+z and x2-14x+2z such that these two polynomials have common factors.
Solution:
If z = 24, then polynomials will become
x^2-11x+24 and x^2-14x+48
Which can be re-written as
(x-8)*(x-3) and (x-8)*(x-6)
(x-8) is common factor.

4. Oracle Interview Puzzle - Tricky Probability Interview Puzzle

Rihanna puts 9 pairs of blue socks and 8 pairs of grey socks in a drawer. She picks up 3 socks. Calculate the probability that she will pick up a pair of blue socks?
Solution:
One thing you must take note of is that in the question they are talking about pair of socks not individual socks.
Thus, total socks = (9x2) + (8x2) = 18 + 16 = 34
Total possibilities = 34*33*32/3*2*1 = 5984
The next part can be a little tricky. Read the question again. You are asked to calculate the probability that she will pick up a pair of blue socks. That also includes picking up three blue socks.
Thus our favorable events = select 2 blue + all 3 blue
= (18*17/2*1)(16/1)+ (18*17*16)/(3*2*1)
= 2448 + 816
= 3264


Hence the Probability = 3264/5984 = 6/11 = 0.54545

5. Oracle Interview Puzzle - Find the acute angle Interview Question

We have a right angled triangle whose square of the hypotenuse is twice as the product of the other two sides.


Which of the following is one of the acute angles of the triangle?
a) 45
b) 30
c) 60
d) 15


Solution:
Let us begin solving the problem by denoting a simple letter to all the three sides of the triangle
Let base be (b), perpendicular be (p) and hypotenuse be (h)
Now glance over the given condition according to which h^2 = 2b*p
or b^2 + p^2 = 2b*p
or (b-p)^2 = 0
or b = p

Thus the triangle is an isosceles one with the angle = 45 degrees
So, option (a) is correct

6. Oracle Interview Puzzle - Equidistant Buildings Interview Puzzle

You are a builder who is building a new society. You are required to build four buildings that are equidistant from each other which means the distance from each building to the other must be equal.


You have read that only three points can be equidistant from each other. How can you complete the assignment as required?


Solution:
This is quite an easy question which is used generally as a warm up question during the interviews.

It is true that only three points are equidistant from each other. But take a paper and draw four points in the shape of a pyramid. You can definitely draw four equidistant points. Thus all you have to do as a builder is build the buildings in the same manner. In this way, one building will be placed in between the three buildings.

7. Oracle Interview Puzzle- Tricky Series Interview Puzzle

Find the next letter in the sequence 
A, E, F, H, __?

Solution:
This sequence is a bit tricky while you may be running in myriad directions, the actual trick to solve this sequence might as well prove to be a bit annoying to you.

So what do we have common in the physical appearance of all the letters of the sequence? Did you think that all of them are made with straight lines?

Consider the in between letters - B, C, D and G. All of them require curvy lines to write but A, E, F and H can be written with straight lines.

Thus the next letter in the sequence will be 'I'.

8. Oracle Interview Puzzle - Dice to Days Tricky Interview Puzzle

You are given with two dices. You can write numbers from 0 to 9 on each of the face of the two dices. All you have to make sure is that you should be able to represent any day of the month using the two dices from 1 to 31. 


Suppose if you have to represent 3rd of the month, then one dice must have 0 and one dice must have 3. How can you make it possible for all the days?


Solution:
Dice 1: 0 1 2 3 5 7
Dice 2: 0 1 2 4 5 8

Please keep in mind that you will have to show 11 and 12 as well, thus 1 and 2 must be present in both the dices. In the same manner, to show 01, 09, 0 must be present in both the dices. Now if you are wondering how you will show 9 as we have not written it in any of the faces of the dices, the trick is to reverse 6 to show it as 9.

You may now try any day of the month and you will easily be able to represent it through the dices. 

9. Oracle Interview Puzzle - Find the Ages Interview Question

Five years ago, Katie Holmes was 5 times as old as her daughter. Five years hence, Katie's age will be eight less than three times the corresponding age of her daughter.


Can you find their ages?


Solution:
Let the age of the daughter five years ago be x. Then Katie's age will be 5x. 

Present age
Daughter = x + 5
Katie = 5x + 5


After 5 years
Daughter's age = x + 10
Katie's age = 5x + 5 + 5 = 5x + 10


Now consider the question again. We know that five years from present, Katie's age will be 8 less than three times the corresponding age of her daughter. Thus if we add eight to the Katie's age, five years from now and make her daughter's age 3 times more, we can easily find out x.

5x + 10 + 8 = 3(x + 10)
5x + 18 = 3x + 30
5x - 3x = 30 - 18
2x = 12
x = 12 / 2
x = 6


Katie's Present age is 5x + 5
=> 5(6) + 5
= 30 + 5
= 35 Years

Her daughter's Present age is x + 5
=> 6 + 5
= 11 Years

10. Oracle Interview Puzzle - Fishermen and Fishes Interview Puzzle

Six fishermen catches six fishes in six minutes. How many fishermen will be needed to catch sixty fishes in sixty minutes?
Solution:
This question is one of the most common interview question. The most common answer of the question is sixty which is completely wrong. The second most common answer of this interview question is 10 which is wrong as well.

What we have is
6 fishermen catches 6 fishes in 6 minutes

If you offer them 10 times as much as time, they will surely catch 10 times as much as fishes as well
Thus the same six fishermen will be able to catch 60 fishes in 60 minutes.


You can also thing this in the unitary method. 

If six fishermen catches 6 fishes in 6 minutes
Then, one fisherman will catch one 1 fish in 6 minutes
Thus in sixty minutes, one fisherman will catch 10 fishes (10 times the time, ten times the fishes).


Thus the right answer is six.

Comments