Bloomberg LP Interview Question for Software Engineer / Developers






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

Although not the only thing, one of the most dangerous things a user can do is replace the file that is being opened by some malicious program. Therefore even before opening the file one can first perform and lstat and check the various properties of the files to make sure it is the correct file. In other words, make sure the file has not been changed.

- Bajanfella June 17, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Check the user permissions to the file and respond correspondingly
If the user tries a chmod command on the file to escalate his privileges ,reject the request
if the user tries to create a link to the file somewhere else in his directory , reject the request for sensitive files
If the user is the owner of the file only then allow to edit the file else don't
Open the file in a mode according to the privileges of the user like read-only, write-only,execute only, keep the default mode for all the files as read-only

- Anonymous December 16, 2013 | 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