If you can visualise this, you are ready to attend interviews
C questions :
- When memory leak will become problem ?
- Why/when segmentation fault occurs ?
- How shared library is useful ? effect of global present in shared library in two process linked with same library.
- function pointers and use of dlsym/dlopen
- Need of const and non-const variable and functions.
- Why pointer is created with data type ?
Data structure :
- What is diff in start/head and other nodes of link list ?
- Sizeof head pointer and size of any other node in link list
- Delete node having provided number
- Tree traversal
- Difference in vector and list
- In which type of problems map is useful ?
- find time complexity of all your written program.
- How to achieve O ( log n ) complexity for search in sorted array.
C++ question :
- need of constructor, copy constructor and destructor
- Use of Virtual and advantage of virtual ?
- Problems which can occur when default argument/function overloading is used with virtual ?
- Why static method is required in class ?
- how to read data from given file(configuration) and parse it using string in c++.
- when to use template and when function overloading
- how function overloading is achieved in c++
OS questions :
- What will you choose in process/thread to create your application considering IPC and crashes.
- scheduling of process/thread on single processor and
- multiprocessor system.
- why mutex/semaphore is required and when to use it ?
- system call vs signals
Puzzles :
- You have 8 liter of water in a tank. You have two bucket 3 Litre and 5 Liter. How can you divide it half.( 4 L )
- There are 12 black and 12 white shocks in a drawer. In complete darkness how many shocks need to be taken out to get a matching pair.
- A man has to cross river with all 3 animal(2 goat and one wolf) and himself. A boat is available which can take only 3 creatures at a time including man. Wolf won't harm goat till man is nearby. Can man reach to other side of river with 2 goat and one wolf ?
Comments
Post a Comment