Interview Question for Testing / Quality Assurances






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

(x<<3)-x

- Musheka January 16, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Meaning multipying by 8 then subtracting . Perfect :) Lesser perfect ans:
x + (x << 1) + (x<<2) = x*7

- arnab.banerjee.82@gmail.com January 17, 2010 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

geeksforgeeks.org/?p=532

- Gautham January 22, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Totally depends on the processor.

- Anonymous January 16, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

x=x*7

- Musheka January 16, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

How thoughtful!

- eiffel January 17, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

LOL

- Anonymous February 08, 2010 | Flag
Comment hidden because of low score. Click to expand.
-1
of 1 vote

hahaha..utter stupidity from musheka

- Honey February 18, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

As much as this answer looks silly, it may well be true in some cases. Writing x*7 may be the fastest way to multiply by 7 because the compiler will often optimize it to the fastest way for the particular machine.

- eugene.yarovoi July 17, 2012 | Flag


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