Bloomberg LP Interview Question






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

how its c can any one xplain me pls..

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

(1*16^1)+2=18

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

std::cin >> std::hex >> n;
// input value using hexadecimal base format
// 12(hex) = 18(dec)

std::cout << std::hex<< n;
// output use hex: 12

std::cout << n;
// output use dec: 18

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

c

- Anonymous December 12, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Why do they ask questions like it in interviews? What insight does it provide for the problems they face and expect to solve in future? It's sad:-( because it seems like a display of snobber:-(

- Anonymous December 12, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Why do they ask questions like it in interviews? What insight does it provide for the problems they face and expect to solve in future? It's sad:-( because it seems like a display of snobber:-(

- Anonymous December 12, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I think this is for online test, not for interview

- Anonymous December 12, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

totally agree, it must be from their online c++ test.

- Anonymous December 15, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

this is the most useless question i have ever seen

- Anonymous December 28, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

I dont think the question is pretty obvious.... When you see a hex in the statement it is pretty obvious that the input is being taken in hexadecimal format

- abhimanipal May 07, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

The answer is C

- dnyanehswari December 28, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

This code will give compilation error since setprecision is not a member of std.

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

Yeah the code does not compile since setprecision is not a member of std

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

setprecision is a manipulator for floating point values. you need to include <iomanip> (which by the way is part of std namespace). So setprecision is definitely a member of std.

- eric May 25, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

setprecision is a manipulator for floating point values. you need to include <iomanip> (which by the way is part of std namespace). So setprecision is definitely a member of std.

- eric May 25, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

thank you, Eric

- Anonymous June 06, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

thank you, Eric

- Anonymous June 06, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The program takes user inputs and store it in n. It will output 18 only if the user inputs 12.

- ly February 26, 2011 | 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