MULTIPLE CHOICE QUESTIONS AND ANSWERS
- Object _______ and operator _______ are used for reading.
- cin >>
- cout >>
- cin <<
- cout <<
- none of the above
Answer: (a)
- For reading with cin object, we need to include __________file.
- conio.h
- fstream.h
- stdio.h
- iostream.h
- none of the above
Answer: (d)
- Manipulators without parameters such as endl, hex, dec etc are defined in __________ file.
- iomanip.h
- conio.h
- io.h
- fstream.h
- none of the above
Answer: (e)
- Of the following, _________ is not a manipulator.
- dec
- scientific
- endl
- flush
- hex
Answer: (b)
- Of the following _________ is not an ios flag.
- dec
- showbase
- hex
- flush
- None of these
Answer: (d)
- Statement cin >> ch ; will start executing when we press _______ key.
- any
- any character
- only character
- escape
- enter ...
Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.