Today, I want to share with all of you my little experience in Interview Questions for Software Engineer position .. and also some interesting puzzles.
Let’s start with questions
- What’s the 4 major OOP Principles ?! and What’s the definition of each one of them ?!
- What’s class ?! and What’s the difference between it and object ?!
- What’s abstract class ?! and What’s the difference between it and interface ?!
- What’s final variable, final method, and final class ?!
- What’s overloading, and overriding ?! and What’s the difference between them ?!
- What’s types of access modifiers ?! and What’s the difference between them ?!
- To prevent class from being inherited what keyword we use in C#, and in Java ?! and Why we may do that ?!
- What’s the difference between Vector and ArrayList in Java ?!
- What’s serialization in Java ?! and What is its usage ?!
- What’s managed and unmanaged code in C# ?!
- What’s checked and unchecked exceptions in Java ?!
- What’s reusability ?!
- Why SQL cursors are slow ?!
- Does C# or Java supports multiple inheritance ?!
- Why C# or Java doesn’t support multiple inheritance ?!
- Why we can’t initiate object from abstract class ?!
- What’s index in SQL ?!
- What’s indexers in C# ?!
- Why garbage collection is important ?! and How GC knows that we don’t need that variable any more ?!
- I have a SQL table with two columns one called empID and the other called managerID, and i want to get all the managers for this employee. How ?! (Hint: use recursion in SQL)
Now it is the time for puzzles 🙂
- What’s the angle between hour hand “عقرب الساعات”, minute hand “عقرب الدقائق” when it is 3:15 PM ?!
- I have two non-homogeneous ropes, and each one of them needs 1 hr to be burned .. How can i calculate using those two ropes 45 minutes ?!
- A man has 2 childrens one of them was girl, What’s the probability that the second one is girl ?! ( Hint: it is not 1/2 😀 )
- I have a customer class that contains the customer age and name .. and I have the following code .. And this code throws exception what is it ?! and Why it throw that exception ?!
- Will the following code throw exception ?! if yes, then When ?!
- I have an array that contains 11 integer number .. and the range of number in this array is from 1 to 10, there is only one number repeated and i want to know which number ?! (Don’t use the systematic way by taking the first number and comparing it to other elements and so on, because i want the solution in O(N) 😛 )
- I have N elements sorted array of integers, and i want to know if there are summation of two numbers = 1200 How ?! (Also here i don’t want the systematic way)
- I have a linked list with odd number of nodes, and i want to get the middle of this list without knowing its length. How ?!
- How to swap 2 numbers without using temp variable ?!
- How to swap 2 numbers using pointers and without using temp ?!
- I have 9 balls, and one ball is heavier than the others, and i have somthing to weight with but we are allowed to use it only twice. How can we know the ball of different weight ?!
If anyone has any other interview experience .. Share it here with us 🙂