Microsoft Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

Function testing:
------------------
valid test cases:
-----------------
insert exact change and try to get item. expect no change return
insert more money and try to get item. expect exact change return
if the vending machine reads card, insert the appropriate card and try to get a drink
invalid test cases:
-------------------
insert less money and try to get item.
without inserting money , try to get item
insert right amount of money , make an invalid choice (one not present in the snack racks)
if the vending machine reads card, insert your drivers licence and try to get a drink
try to insert a paper of same dimensions as a dollar bill
try to insert 50,100,500,1000 dollar bill
try to insert 1 Cent
try to insert money and without inserting a choice, press change return (sometimes i do this to get quarters for my laundry machine. well .. if i were to design this, i would disallow this)
try to insert right amount of money, choose a snack that the vending machine is out of
insert a canadian dollar in a machine that accepts only US dollars

Performace:
-----------
Measure the average time it takes to dispense an item using stop watch

stress testing:
---------------
without inserting the money kick the machine
insert the money and kick the machine
insert 100 dollars (20 $5 bills) and keep making choice s continuosly

globalization testing:
-----------------------
if i were to take the machine to India, what would i need to modify ? Probably label the snack racks in Hindi..
Modify the currency reader to Rupees..Change the power unit..

security:
---------
try to rob the vending machine..use a crow bar to break it down..it might call 911..it might sound alarm..or it might just give up


This is all I can think of, if any one comes with cases other than these please do post.

- srihari January 15, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Testing and design are different phases. For design, you need to consider the function/non-functional requirements, quality requirements, and user-interface requirements to name a few.

- Jack January 16, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Multiplatform?: Different language if shipped to different country?

Multithreaded safe?: Input money, and press two choice button at the same time? Input money, and press "coin return" and choice button at the same time?

Interface safe?: Height suitable for both adults and kids?

- Hui March 01, 2006 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More