programmes to verify C++ interview questions