Friday, October 14, 2011

Morgan Stanley

Hello!!
Sorry for keeping hooked up for 1.5 years.
Was busy in.........(actually i have no excuse :P).
I am a fourth year student now, have learned so much in 3 years. Companys have started visiting our college.N this is the time to show wat i hav learned.


First company to visit our college was Morgan stanley.
Apti was nice. They had three sections: 1st on data structures, OS,sql(10 ques). 2nd section was on C/C++/java (30 questions on any 1 language), 3rd section(10 ques on quant).
Only 2nd section was easy i felt.
Got shortlisted for interview.

Technical Interview (1st round):

1. Tell me about urself.

2. o/p of sizeof(void)?

3. o/p of sizeof(void*)?

4. o/p of sizeof(s)?
struct s{
int i;
char* j;
};

5. o/p of sizeof(s);
struct s{
};

6. Difference between structures and classes?
I said - str has public members where as classes have private.


7. #define class struct
will it compile? or Is it correct?
yes.

8. Can Structures hav functions ??
yes.

9. Structures have constructors?

10. You hav to read a book(a file) and give count(how many times it occurred) of all words that occurred in it.
Ex. FILE contains-
Apurva is a nice girl bt she dint get selected in Morgan
Apurva is a cute girl.
Here Apurva , is , a, girl has occurred twice.

I told him something bt he said give an efficient code...
Then he asked - give me 50 topmost occurring words in the file. I said @#$$@!#@$#$#. His reply - i m not convinced :P

11. int A[] = { contains millions of elements} //m elements
int B[] = { contains millions of elements} //n elements

Display all elements that are in array A bt not in B.
Constraint:- arrays contain duplicates, it is not sorted.
Later he said without any constraint give algo (i.e arrays r sorted n no duplicates).

I made a nested loop to find A-B. He asked me its complexity , i said (n^2). so he asked me to make it efficient...
...he said make it in order of O(m+n)

12. what are ur fav. subjects?
Sir i like C prog language, OS...... he was looking at me(may b he was waiting for me to say more subjects).....sir maths( n in low voice till 12th standard ). He laughed out madly after hearing till 12th. ;).

13. OK you like OS. what is process?

14. U might be familiar with windows...... u press ctrl+alt+delete, u ll find services tab there, are they processes ?
I said yes.

15. Name any process that is present when OS is running.
Sir explorer.exe

16. What if u delete that? Is ur OS still running after deleting it?

17. How ll you start that process again?

18. Process A is running, it becomes inactive n Process B starts executing. Describe the scenario.... what is happening ??

19. Do u want to ask anything abt Morgan stanley?

I remember this much only n its around 95% of questions which were asked.

Others were asked on java,microprocessor and other subjects also....

Couldn't get through 2nd round of interview.

1 comment:

  1. till 12th. :P
    but its a good blog on sharing interview experiences.
    GOOD JOB :)

    ReplyDelete