Example C++ programming exam tests