Free C++ Institute CPA-21-02 Exam Questions

Absolute Free CPA-21-02 Exam Practice for Comprehensive Preparation 

  • C++ Institute CPA-21-02 Exam Questions
  • Provided By: C++ Institute
  • Exam: CPA C++ Certified Associate Programmer
  • Certification: C++ Certified Professional Programmer
  • Total Questions: 257
  • Updated On: Dec 06, 2025
  • Rated: 4.9 |
  • Online Users: 514
Page No. 1 of 52
Add To Cart
  • Question 1
    • What happens when you attempt to compile and run the following code?

      Answer: B
  • Question 2
    • What is the output of the program? #include using namespace std; #define SQR(x)(x*x) int main(int argc, char *argv[]) { int x, y=2; x = SQR(y); cout

      Answer: B
  • Question 3
    • What happens if characters 'w', 'o', 'r', 'l' and 'd' are entered as input? #include #include using namespace std; int main() { string s1 = "Hello"; string s2; getline( cin, s2 ); cout

      Answer: A
  • Question 4
    • Which code line inserted instead of the comment below will fix the program so that it produces the expected output and does not cause any memory leak? 

      Answer: A
  • Question 5
    • Which code, inserted at line 8, generates the output "100"? #include using namespace std; int fun(int); int main() { int *x = new int; *x=10; //insert code here return 0; } int fun(int i) { return i*i; } 

      Answer: A,B
PAGE: 1 - 52
Add To Cart

© Copyrights DumpsEngine 2025. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsEngine.