Microsoft Interview Question
1,062 Interview Reviews |
Back to all Microsoft Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Development Engineer In Test at Microsoft:
Write a function to list all documents under your C: drive.
See more for this Microsoft Software Development Engineer In Test Interview
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (1)
Members can
answer or comment on this question
–
Join Now (It's Free) or
Sign In



0 of 0 people found this helpful
by Anonymous:
It'd go something like (ya sorry for the bad coding standard here)
function ListofDocuments SearchFolder(folder name)
var tempDocuments = new ListofDocuments();
For each folder in current folder
tempDocuments =+ SearchFolder(thisFolder)
Loop
tempDocuments += get documents from current folder
return tempDocuments
End
Now run:
print SearchFolder("C:\")