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

Become C++ Institute Certified with updated CPA-21-02 exam questions and correct answers

Page:    1 / 52      
Total 257 Questions | Updated On: Jul 29, 2025
Add To Cart
Question 1

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 2

What happens when you attempt to compile and run the following code? #include using namespace std; int main() { int i=5; switch(i) { case 1: cout


Answer: C
Question 3

What is the output of the program given below? #include using namespace std; int main (int argc, const char * argv[]) { enum state { ok, error, warning}; enum state s1, s2, s3, s4;  s1 = ok; s2 = warning; s3 = error; s4 = ok; cout


Answer: C
Question 4

What happens when you attempt to compile and run the following code? #include using namespace std; int op(int x, int y); int main() { float *pf; float f=0.9; pf=&f; cout


Answer: A
Question 5

What happens when you attempt to compile and run the following code? #include using namespace std; int main() { int i, j; for(i = 0; i < 2; i++) { for(j = i; j < i + 1; j++) if(j == i) continue; else break; } cout


Answer: C
Page:    1 / 52      
Total 257 Questions | Updated On: Jul 29, 2025
Add To Cart

© Copyrights DumpsCertify 2025. All Rights Reserved

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