Tip 1 - Practice Atleast 250 Questions from geeks from geeks and coding ninjas
Tip 2 - Ex- Do atleast 2 good projects
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume and be confident.
3 sections. 20 min each.
section 1: 20 aptitude questions and was really hard. Avg no of questions solved is 4.
section 2: 20 (C++ & Java) oops related questions and other output questions too. (level was good. G-Facts)
In C++: mainly Virtual functions, virtual destructor, copy constructor, initializer list, virtual inheritance questions, inner classes, etc.
In java: mainly inner classes, Base reference, and Child object concept, overriding questions, etc.
section 3: Write running code for the following problem:
Find 2 nos in a sorted array whose DIFFERENCE is given no K



Traverse the array from left to right, and for each element arr[i], binary search for arr[i] + n in arr[i+1..n-1]. If the element is found, return the pair.
Started with a simple question and moved in depth.
What is a dangling reference?
Moved on to what happens when we access it?
How to handle it? I said we can use reference count or std::auto_ptr to avoid dangling references. He was happy with the auto_ptr smart pointer concept.
Then what happens when another auto_ptr assigns previously assigned auto_ptr (i.e when we use assignment operator in auto_ptr)? I said only one auto_ptr can hold an object, so the old auto_ptr will point to NULL.
Now, what happens when Old auto_ptr tries to access an object (i.e NULL). I said runtime exception and program may crash.
Name the type of exception. I said maybe segmentation fault.

• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.
What is Zombie process? Write code to create Zombie process.
What is Orphan process? Write code in C to create Orphan process too.
One query. Given a table having attributes stud_name, English, phy, chem., maths. Write a query to display the name of student in descending order of their aggregate marks.



For given 2D array :
[ [ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ] ]
After 90 degree rotation in anti clockwise direction, it will become:
[ [ 3, 6, 9 ],
[ 2, 5, 8 ],
[ 1, 4, 7 ] ]

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?