Basic Input/Output


  1. When will the cin can start processing of input?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    After pressing return key


  1. Which operator is used for input stream?











  1. 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.



  1. Where does a cin stops it extraction of data?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    cin will stop its extraction when it encounters a blank space.


  1. Which is used to get the input during runtime?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    cin is mainly used to get the input during the runtime.



  1. 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;
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    We are not allowed to do addition operation on cin.