Adobe Interview Experience | Set 46 (For Internship)

The interviewer first asked me to tell sumthing about myself. Then he asked my favorite subjects

  1. what are virtual functions in C++? how are calls to virtual functions resolved at runtime?
  2. what is the need for virtual destructors?
  3. if there are virtual destructors then why there are no virtual constructors?
  4. there are n mountains. you are given a 1d array A where A[i] represent the height of mountain i+1. how will you find a valley in that array.( A valley is a value in array which is smaller than both its left and right neighbors ).
    Ans 4 this question is similar to finding peak element in an array, given on geeks for geeks
  5. he asked me the famous puzzle in which there are 1000 identical bottles. one of them contains poison. A person after drinking the poison dies after 24 hours. You have to identify the poisonous bottle in 1 day. minimum no of prisoners needed to find the poisonous bottle.
    ans 10( 1000 can be represented in binary using 10 bits .)

If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above




Write your Interview Experience or mail it to contribute@geeksforgeeks.org



My Personal Notes arrow_drop_up


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.