Home Company Questions Yahoo Interview Questions Yahoo Interview Questions - 4

Login Form




Yahoo Interview Questions - 4 Print E-mail

 

1. How do you find the port number of the remote host?

 

2. Which is the DS used in dictionary mode in mobile (t9)

 

3. 2n+1 numbers in a list except for 1 number all had duplicates, how to find duplicate in O(n)

 

4. Given Id, author, creation time, size, links, web page, description. Bring it in 2nd normal form

 

5. (Date; who)>logfile

      Date; who>logfile

What is the difference between the two statements

 

6. There is a 200 miles long tunnel. one train enters the tunnel at a speed of 200mph while the other trains enter the tunnel in the opposite direction at a speed of 1000 mph. A bee travels at a speed of   1500 mph enters the tunnel goes to and back until it reaches the train. What is the distance covered by the bee when the two train collides (the bee survives)

 

7. Randomization is good for which algorithm

a. quick sort               b. heap sort          c. selection sort                d. hashed table

 

8. How does HTTP works?

 

9. How do you initialize a static member of a class with return value of some function?

 

10. How to count number of unique music titles downloaded from a log file which contains an entry of all music title downloaded?

 

11. What is the output of the following code?

 

            x=0;y=1;

            for( j=1;j<4;j++){

                        x=x+j;

                        y*=j;

            }

 

12. If the probability of work done by three persons are 1/3, 2/5, 5/12. Then what is the probability that the work is completed.

 

13. When will you use shell script/Perl ahead of C/C++?

 

14. Write 1,3,6,4 using +,-,*,/ to get 24 (no repeat of numbers)

 

15. When you deliver your C++ headers and C++ library of a class (what all can you change in the class so that application using your class does not need to recompile the code)