Date:11-Feb-2012
Company;tech Mahindra
Client:Motorola
Location:(Opp. to Christ College)
Requirement: C++,Multithreading,Unix
1st Round:(Tech Mahindra)
==========
Written Test
2nd Round (Tech Mahindra)
==========
1. Diff. b/w copyconstructor and assignment operator
2. Self reference check in assignment operator
3. strlen(),strcpy() - own implementation
4. some programs and its out put in C
5. diff b/w: const char *ptr,char const *ptr,char *ptr,const char* const *ptr;
6. o/p : a<<=1 and a>>=1
7. pointer to an array
8. int array[]={1,2,3};
array++;//what happens
9. Polymorphism: function overloading(Name mangling,why cant we overload with "return type"), Runtime polymorphism(Virtual functions)
10. Threading: process, threads
11. Linked list : reversing
12. write code for String class
3rd Round:(Motorola)
==========
1.Implement a Doubly Linked list(then changed to linked list)
2.Make that Linked list to implement a Queue
3. Asked about project; what is a core part of an FMS
4th Round:(Motorola)
==========
1. Given 32-bit number, how will u set the 3 rd bit of it
2. for(int i=0;i>0;i++)
print(i);
How ll u make the print statement to get executed.(Asked to checnge the condition..)
3. How will u stop the loop (for;;)
4. Does friend function violates encapsulation?Disadvantage of Friend functio.
5. Declare a pointer to 2-D array and allocate memory with new
6. What new idea have u proposed to your project
7. How will you find out ,whether a number is divisable by 2 or not(w/o % operaror)
5th Round:(HR- Tech Mahindra)
===========
1. tell me briefly about u
2. why do look for chnage
3. reason for break in education
4. Salary expectation