Tip 1 : Make proper notes
Tip 2 : Revise each topic regularly
Tip 3 : Practice as much questions
Tip 1 : Make a single page resume.
Tip 2 : Highlight the tech stack used.
They asked me to introduce myself and then which technologies I am good at. Then I was asked about some OOP concepts and design patterns. In the end, the interviewer gave me a situation and asked what I would have done (This was related to automation as the role they were offering was QA Engineer).
It was all technical questions and two puzzles at the end. I was asked about OS, semaphores, context switch, multithreading. They also asked me questions about C, C++ like calloc, malloc uses, difference, syntax, comparison with new keyword in C++. Some questions about storage classes in C and their uses. What is volatile keyword.



Input:
'num1' : 1 -> 2 -> 3 -> NULL
'num2' : 4 -> 5 -> 6 -> NULL
Output: 5 -> 7 -> 9 -> NULL
Explanation: 'num1' represents the number 321 and 'num2' represents 654. Their sum is 975.
Three ants and Triangle – There are 3 ants sitting on three corners of a triangle. All ants randomly pick a direction and start moving along edge of the triangle. What is the probability that any two ants collide?
Tip 1 : Read the question carefully
Tip 2 : Take your time.
Burning ropes – How to measure 45 minutes using two ropes where each burns in 1 hour.
Tip 1 : Read the question carefully
Tip 2 : Take your time.
They had a panel of 5 interviewers and they asked me questions on DS, OOP, C, C++, OS, Linux, and DBMS.
I was asked all about static keywords in C and C++. Runtime Polymorphism and its implementation using vptr and vtable.
Next, I had to write code for finding a number of set bits in a given integer.
Then I was asked about critical section problems in OS and what is a deadlock. After this, they asked for some basic commands in Linux.
Then some questions of DBMS like ACID properties and transactions and one question to write a SQL query to find a student with the second highest marks from the table. (Similar question can be found here).
All this technical discussion went on for around 75 minutes and after that one of the interviewers started asking HR questions.
HR questions were also interesting. They were looking for abilities like critical thinking, logical reasoning, and communication skills.
I was asked some interesting questions like what would you do if you were on Titanic at the time of the accident? They were looking for details in answer. Another question was – you are given a brick, tell all possible uses that you can imagine, like – construction, as a weight.



Do not print anything, just return the number of set bits in the binary representation of all integers between 1 and ‘N’.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?