Advertisement
Advertisement
C++ Quizzes, Questions & Answers
Recent C++ Quizzes
Questions: 10 | Attempts: 15800 | Last updated: Jun 17, 2025
-
Sample QuestionC++ was originally developed by
Questions: 50 | Attempts: 292 | Last updated: Feb 17, 2025
-
Sample QuestionWhat function initalizes variables in a class:
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: 10 | Attempts: 968 | Last updated: Mar 22, 2025
-
Sample QuestionIdentify the correct statement
Questions: 10 | Attempts: 4092 | Last updated: Mar 21, 2025
-
Sample QuestionWhat is the correct value to return to the operating system upon the successful completion of a program?
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; }
Questions: 19 | Attempts: 5107 | Last updated: Aug 10, 2025
-
Sample QuestionIn the following declaration, what is the return type?int myMethod(int count, double value) { return 4;}
Advertisement