GrabCert
HomeExamsProvidersAbout
Sign InSign Up
Home/Exams/C++ Institute C++ Certified Professional Programmer/Question #4
#4Multiple Choice

What will happen when you attempt to compile and run the code below, assuming that you enter the following sequence: one two three<enter>?
#include <iostream>
#include <string>
using namespace std;

int main ()
{
string a;
cin>>a;
cout<<a<<endl;
return 0;
}
Program will output:

Previous
Question 4 of 228
Exam CPP Topic 1 Question 4
Back to all questions
Next
GrabCert

Your trusted source for certification exam preparation. Pass your exams with confidence.

Quick Links

  • Home
  • Exams
  • Providers

Legal

  • About
  • Contact Us
  • Refund Policy
  • Privacy Policy
  • Terms of Service

© 2026 GrabCert. All rights reserved.

Sign InSign Up