What is the output of this program?
  1.     #include 
  2.     using namespace std;
  3.     int main ()
  4.     {
  5.         char first, second;
  6.         cout << "Enter a word: ";
  7.         first = cin.get();
  8.         cin.sync();
  9.         second = cin.get();
  10.         cout << first << endl;
  11.         cout << second << endl;
  12.         return 0;
  13.     }

first
second
Returns first 2 letter or number from the entered word
None of the mentioned
Which header file is used for reading and writing to a file?

#include
#include
#include
None of the mentioned
Which member function is used to determine whether the stream object is currently associated with a file?

is_open
buf
string
None of the mentioned
What is the output of this program?
  1.     #include 
  2.     using namespace std;
  3.     int main ()
  4.     {
  5.         int a = 100;
  6.         double b = 3.14;
  7.         cout << a;
  8.         cout << endl;
  9.         cout << b << endl << a * b;
  10.         endl (cout);
  11.         return 0;
  12.     }

100
3.14
314
All of the mentioned
What is the output of this program?
  1.     #include
  2.     #include 
  3.     using namespace std;
  4.     int main () 
  5.     {
  6.         ofstream outfile ("test.txt");
  7.         for (int n = 0; n < 100; n++)
  8.         {
  9.             outfile << n;
  10.             outfile.flush();
  11.         }
  12.         cout << "Done";
  13.         outfile.close();
  14.         return 0;
  15.     }

Done
Error
Runtime error
None of the mentioned