Advertisement
Advertisement
C++ Quizzes, Questions & Answers
Recent C++ Quizzes
Questions: 17 | Attempts: 708 | Last updated: Feb 17, 2025
-
Sample QuestionWhat is the output of the following program fragment? cout << static_cast<double>(3)/4 << endl;
Questions: 17 | Attempts: 1183 | Last updated: Mar 21, 2025
-
Sample QuestionWhich of the following is not a valid identifier?
Questions: 18 | Attempts: 587 | Last updated: Feb 17, 2025
-
Sample QuestionWho was the programmer for Charles Babbage’s analytical engine?
Questions: 57 | Attempts: 3832 | Last updated: Oct 2, 2025
-
Sample QuestionThe base class's access specification affects the way base class member functions may access base class member variables.
Questions: 76 | Attempts: 254 | Last updated: Feb 17, 2025
-
Sample QuestionThe & symbol is called the indirection operator.
Questions: 10 | Attempts: 6009 | Last updated: Feb 17, 2025
-
Sample QuestionWhich of the following function that must contain in all C++ programs?
Questions: 10 | Attempts: 7529 | Last updated: Mar 21, 2025
-
Sample Question“C” was primarily developed as a
Questions: 20 | Attempts: 160 | Last updated: Mar 18, 2025
-
Sample QuestionCan we have overloaded virtual functions?
Questions: 10 | Attempts: 303 | Last updated: Feb 17, 2025
-
Sample QuestionWhat is the output of the following code class base{ public : virtual void func1()=0; void func2() { cout<<"\n In base, function2"; } }; //end of class class derived : public base{ public : void fun3() { cout<<"\n In derived , function3"; } };//end of class int main(){ derived d; d.fun3(); return 0; }
Questions: 33 | Attempts: 104 | Last updated: Feb 17, 2025
-
Sample QuestionWhat is the output of the following snippet? int a=0101; int b=101; cout<<a<<” , ”<<b;
Advertisement