New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

C++ Institute CPP Exam - Topic 2 Question 39 Discussion

Actual exam question for C++ Institute's CPP exam
Question #: 39
Topic #: 2
[All CPP Questions]

What happens when you attempt to compile and run the following code?

#include

using namespace std;

int main ()

{

float f1 = 10.0;

float f2 = 10.123;

cout<

return 0;

}

Program outputs:

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Norah
4 months ago
Definitely not a compilation error, that's for sure!
upvoted 0 times
...
Darrel
4 months ago
No compilation error here, just a clean run!
upvoted 0 times
...
Noel
4 months ago
Wait, really? I thought it would show "10.0" for f1.
upvoted 0 times
...
Erinn
4 months ago
I agree, that's what I got too!
upvoted 0 times
...
Mari
5 months ago
The output will be "10 10.123".
upvoted 0 times
...
Cherelle
5 months ago
This question seems pretty straightforward. I'm confident I can identify two good use cases for IoT devices.
upvoted 0 times
...
Avery
5 months ago
The key here is that the Sprint burndown chart gives the Product Owner visibility into the team's progress. By showing the work remaining, it helps them understand if the team is on track to complete the Sprint commitments. That's the real value.
upvoted 0 times
...

Save Cancel