Microsoft Interview Question






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

Test cases:
1. bounary - illegal times: check boundaries:
illegal hour - 24, -1, -2,, 25
illegal minute - 60, -1, -2, 61
illegal second - 60, --1, -2, 61
2. acceptance / Functionality - check that the set time is equal the current time (with valid time paramters)
3. accessibility - none
4. load - N\A
5. stress - NA
6. security - NA
7. platform - execute the function on different OS
8. Performance - the time is set in a second (check with the func function, that the time is set after a second)

Henrick,
can you give you answer? or the expected answer.

Thx,
Eila

- Eila June 11, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Accessibility - execute the function from different processes at the same time

- Eila June 11, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

You should also check if the function pointer passed should not be NULL or is not a correct pointer.

- gauravk.18 February 17, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1. facility testing (test whether program is doing what it is indended to do): i.e., whether func is indeed called

2. usability testing: check that the function outputs (if any) are meaningful, nonabusive;
error messages are straightforward

3. security: check that 'setTime' cannot invoke a function residing in a privileged region if current user privileges are not enough (i.e., it does not break privilege rules)

4. compatibility: check whether this function works with older operating systems

- pavel.em June 10, 2008 | 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