Basic Input/Output
- When will the cin can start processing of input?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
After pressing return key
- Which operator is used for input stream?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The operator of extraction is >> and it is used on the standard input stream.
- Where does a cin stops it extraction of data?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
cin will stop its extraction when it encounters a blank space.
- Which is used to get the input during runtime?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
cin is mainly used to get the input during the runtime.
- What is the output of this program?
#include <iostream>
using namespace std;
int main ()
{
int num;
cout << "Please enter a Number: ";
cin >> num + 10;
return 0;
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
We are not allowed to do addition operation on cin.