Deal of The Day! 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

Posted by Leota on May 09, 2022 at 07:45 AM

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:

Suggested Answer: D

Get Premium CPP Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
7 comments · newest first
NO
Norah 11 months ago
Definitely not a compilation error, that's for sure!
DA
Darrel 12 months ago
No compilation error here, just a clean run!
NO
Noel 12 months ago
Wait, really? I thought it would show "10.0" for f1.
ER
Erinn 12 months ago
I agree, that's what I got too!
MA
Mari 1 year ago
The output will be "10 10.123".
CH
Cherelle 1 year ago
This question seems pretty straightforward. I'm confident I can identify two good use cases for IoT devices.
AV
Avery 1 year 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.
0/2000 characters

Save Cancel