Advertisement
Advertisement
11th Grade C++ Quizzes, Questions & Answers
Recent C++ Quizzes
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: 15800 | Last updated: Jun 17, 2025
-
Sample QuestionC++ was originally developed by
Questions: 26 | Attempts: 164 | Last updated: Feb 17, 2025
-
Sample QuestionIf the following are valid identifiers, check valid, otherwise check invalid, return
Questions: 36 | Attempts: 132 | Last updated: Mar 17, 2025
Questions: 10 | Attempts: 5476 | Last updated: Apr 21, 2025
-
Sample QuestionA variable is/are
Questions: 47 | Attempts: 479 | Last updated: Feb 17, 2025
-
Sample QuestionIf a function needs to modify more than one variable, it must
Questions: 90 | Attempts: 2691 | Last updated: Sep 1, 2025
-
Sample QuestionWhat is the output of the following function and function call? void calculateCost(int count, float& subTotal, float taxCost); float tax = 0.0, subtotal = 0.0; calculateCost(15, subtotal,tax); cout << "The cost for 15 items is " << subtotal << ", and the tax for " << subtotal << " is " << tax << endl; //end of fragment void calculateCost(int count, float& subTotal, float taxCost) { if ( count < 10) { subTotal = count * 0.50; } else { subTotal = count * 0.20; } taxCost = 0.1 * subTotal; }
Advertisement