Interview 1: 1. virtual functions, inheritance, etc..easy to answer c++ questions. Conversation was for about 20-25 minutes 2. Can't exactly recall, but it was about Binary Search Tree, pretty easy to find on the web. I think it was to do with levels in BST, I used recursion in the solution. Interviewer was happy with the solution. Overall call lasted for about 1 hour and 5 minutes including some questions I asked him. Interview 2: 1. What is mutex, semaphore? 2. What is a singleton pattern and can you write one that is thread-safe 3. Write a consumer producer problem. Producer produces 1000 objects and there are five consumers that consume 10 objects at a time in round robin fashion until all of them are consumed. This means that if consumer 1 consumes 10 objects, it has to wait for consumer 2, 3, 4, 5 to consume 10 objects each before it can consume other 10.
Developer Interview Questions
269,158 developer interview questions shared by candidates
Given a list of ones and zeros, how would you sort the list efficiently so the zeros are in the front and the ones are in the second half.
template<class T1; class T2; class T3> int Product (T1 a, T2 b, T3 c) { return a * b * c; } What is the error in the sample code above?
what is the return type of sizeof()
C#, if you set lock in a method, will you be able to do a recursive call again?
Count the number of appearance of h from given passage
Significance of STATIC in C and c++
how can I count the bit set to 1 in an integer? What if I want to optimize the process to work with several integers?
How will you find out what has happened in the network if - initially the network speed is 10Mbps but suddenly it drops down to 10Kbps.
Suppose your software requires the client to enter information into a database. What do you do if data insertion takes too long?
Viewing 1181 - 1190 interview questions