C++ Quiz
English
Intermediate
How well do you know C++? This output-based and multiple-choice quiz will test your knowledge of this programming language.
Description
Tags
30
Questions
3 min
Per question
10:06
Average time
4.2
Contest Score
4.3
Community Rating
138
Participants
1. Educational explanations. 👍 Explanations cover why the correct answers are correct and why the wrong answers are wrong (when appropriate). E.g.: #q30, #q1, #q29
2. Well-used and self-made media. 👍 E.g.: #q1, #q12, #q15
Well technically & is also a bitwise and operator, which can be applied to rvalues.
1) Second operand of fstream constructor must be ios::in | ios::out, not ios::in || ios::out (one vertical bar, not two)
2) All types: fstream, ifstream, and ofstream can be answers: https://ideone.com/YmoH7h