Microsoft Interview Questions
- 0of 0 votes
AnswersQuestion asked in microsoft written test :
- Anonymous November 22, 2010
Write a function which finds a substring in a string and replaces all such occurances with another string. Prototype of the function :
char* FindReplace(char* src, char* find, char* replace);| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test C - 0of 0 votes
AnswersGiven an array containing lower case and upper case alphabets and numbers, how can you sort/arrange the array in one single pass using just one variable for swapping such that the resultant array should put the input elements into 3 buckets in the following fashion -
- YT2010 November 18, 2010
Input - aA1B23Cbc4
Output - abcABC1234
Note - ordering doesn't matter
the output could be -
ABC1234abc or 1234abcABC
You just have to arrange the data into 3 buckets in single pass using just one temp variable for swapping. Expected runtime - o(n)| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Arrays - 1of 1 vote
AnswersSuppose here are n processes in the system and each one needs k instances of a resources to complete. What would be the minimum number of resources that you should keep in the system to ensure no deadlock in the system.]
- dev November 06, 2010
a.n*k
b.n*k-n+1
c.n*k+1
d.n*k*k
e.None of the above| Report Duplicate | Flag | PURGE
Microsoft Developer Program Engineer Operating System - 0of 0 votes
Answers3) How would you find the phone number of an interview candidate if you don't have it on the resume?
- dmg22 November 03, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer - 0of 0 votes
Answers2) How would you test a calculator?
- dmg22 November 03, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer - 0of 0 votes
Answersphone interview
- dmg22 November 03, 2010
1) What are your goals?| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer - 0of 0 votes
AnswersWrite code for Ceaser Cipher Algorithm to encrypt/decrypt messages.
- Mi Jalgaonkar November 02, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer - 0of 0 votes
AnswersWrite an Algorithm for Finding Siblings in a Binary Search Tree.
- Rahul Telang November 02, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm - 0of 0 votes
AnswersHow to find duplicate words in a string and their frequency
- jobseeker October 28, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm - 0of 0 votes
AnswersImplement a circular queue using an array. Implement enque and deque.
- Anonymous October 28, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm - 0of 0 votes
AnswersHow will you delete duplicate odd numbers from a linked list? (delete only duplicates, keep one copy, list is not sorted) Interviewer was expecting O(n) answer. He didn't say anything clear about the extra space.
- Anonymous October 27, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm C Data Structures - 0of 0 votes
AnswersGiven two strings, find the number of occurrences of one within the other . eg s1=" the cow ran over the dog" s2="the" answer =2. Also, take care of repetitions eg. if s1= "ABCBCBC" and s2="BCBC" then answer=2
- Soanli October 24, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Algorithm - 0of 0 votes
AnswersGiven a n array of positive and negative integers, find the subarray with max sum in O(n) and one loop.
- Soanli October 24, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Algorithm - 0of 0 votes
AnswersHow do you test function Add that adds two linked lists?
- Soanli October 24, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Linked Lists - 0of 0 votes
AnswersFind the frequency of each letter in a string. then test it.
- Soanli October 24, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Algorithm - 0of 0 votes
AnswersHow do you describe a printer to your Grandma?
- Anonymous October 22, 2010
How do you describe pointers to your Grandma?| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Behavioral - 0of 0 votes
Answersfind one missing card from deck of 51 card
- movence October 18, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Coding - 0of 0 votes
AnswersAfter writing the code I was asked to turn over the paper and create/draw ten test cases to test my program.
- M October 17, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Testing - 0of 0 votes
AnswersWrite a function that takes in two rectangles and returns true if the overlap and false if they do not.
- M October 17, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Coding - 0of 0 votes
Answersgiven eight 8s: 8 8 8 8 8 8 8 8, add any number of "+"s between the 8's to make the sum equals 1000.
- Anonymous October 16, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Brain Teasers - -1of 1 vote
Answersgiven 5/2=3, what will be the output of 10/3?
- Anonymous October 16, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Brain Teasers - 0of 0 votes
AnswersThis was only technical question my interviewer was asking to every candidate he interviewed
- sachin323 October 13, 2010
What kind of questions u will ask to me if u have to design a Queue for me ?
i answered as
1) for data type u want it
he said int
2) It is going to contain very large numbers of objects
he said no
3)do u want to dynamically expanding
he said no , lets keep it simple
4)do want functionality of accessing any element in queue like At() function
interviewer : yes
5)Do u want min and max element functions
interviewer : yes
After this he kept saying what else what else and i was blank
he mentioned asking about environment would have been a good question like do want this queue for kernel for application or for Database
then he asked me to write a class which will implement this but he was rushing a lot kept saying we have very less time left so i end up writing queue full , queue empty , insert and pop conditions only
i must say i was bit disappointed by this interview as from CareerCup i have prepared for alot of coding question and from these kind of questions will everybody answer easily , how will they screen candidates| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Data Structures - 0of 0 votes
AnswersTell me any product in tech u dont like ? and y
- sachin323 October 13, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Behavioral - -1of 1 vote
AnswersWhat technologies u know ? rate ur self on those
- sachin323 October 13, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Behavioral - 0of 0 votes
AnswersWhat kind of products/project at MS u would like to work on and why?
- sachin323 October 13, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Behavioral - 0of 0 votes
AnswersWhere do u see urself in MS after 3 years ?
- sachin323 October 13, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Behavioral - 0of 0 votes
AnswersSo what improvement will you do to system u worked at internship ?
- sachin323 October 13, 2010| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Behavioral