Home / CSE MCQs / C++ - MCQs :: Input Output Streams - C++

CSE MCQs :: C++ - MCQs

  1. What is the output of this program?


    #include < iostream >

    using namespace std;

    int main () 

    int n; 

    n = 43;

    cout << hex << n << endl;

    return 0;

    }

  2. A.
    2c
    B.
    2b
    C.
    20
    D.
    50

  3. How many types of output stream classes are there in c++?
  4. A.
    1
    B.
    2
    C.
    3
    D.
    4

  5. What must be specified when we construct an object of class ostream?
  6. A.
    stream
    B.
    streambuf
    C.
    memory
    D.
    None of the mentioned