I have not actually been interviewed by Microsoft (yet), but here are some of the answers I’d like to give to some of the questions that they’ve been known to ask:
Why is a manhole cover round?
Don’t you mean a person-hole cover? Either way, it is because the person hole is round.
How are M&Ms made?
They’re made in the M&Ms factory.
How many manhole covers are there in the USA?
I really think you mean person-hole covers. Anyway – roughly 1 for each hole.
One train leaves Los Angeles at 15mph heading for New York. Another train leaves from New York at 20mph heading for Los Angeles on the same track. If a bird, flying at 25mph, leaves from Los Angeles at the same time as the train and flies back and forth between the two trains until they collide, how far will the bird have traveled?
Does it really matter? I think the stupid bird will be dead, anyway.
How would you redesign an ATM?
I would design it to give me lots of money when I typed in a secret code.
What is the difference between an Ethernet Address and an IP address?
You can’t wash your hands in a… no, wait, that’s buffaloes and bisons.
If you could add any feature to Microsoft Word, what would it be?
I would say that I’d make it debit money out of people’s bank accounts and into mine, except that Microsoft has already done that for their own bank account whenever there is an upgrade.
There is a room with a door (closed) and three light bulbs. Outside the room there are three switches, connected to the bulbs. You may manipulate the switches as you wish, but once you open the door you can’t change them. Identify each switch with its bulb.
I’d disconnect the switches. Then I could easily identify that none of the switches actually connected to the bulbs.
Give me an algorithm to shuffle a deck of cards, given that the cards are stored in an array of ints.
52-card pick-up.
How would you test a keyboard?
I wouldn’t – I’d throw it away. Keyboards cost next to nothing these days. It would be cheaper to buy a new keyboard than waste my time trying to test one.
The interviewer hands you a black pen and says nothing but “This pen is red.”
I’d say, “thanks for the pen”, and take it home with me.
Write a function to print Write a function to print the Fibonacci numbers. .
void printFibNumbers() {
print "The Fibonacci numbers."
}
Explain a scenario for testing a salt shaker.
Chips! Sometimes called “french-fries” or “fries”, they’re pieces of potato that have been deep-fried.
How would you explain how to use Microsoft Excel to your grandma?
I’d shout. Very loud.
Suppose you go home, enter your house/apartment, hit the light switch, and nothing happens – no light floods the room. What exactly, in order, are the steps you would take in determining what the problem was?
I’d ask my wife what she’d done to the light – again.