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: Nov 11, 2026
Add To Cart
Question 1

What happens when you attempt to compile and run the following code?#include using namespace std;void print(char *c);int main (int argc, const char * argv[]){print("Test");return 0;}void print(char *c){cout


Answer: A
Question 2

What will be the output of the program? #include using namespace std; int fun(int); int main() { cout


Answer: A
Question 3

What is the output of the program? #include #include using namespace std; struct Person { int age; }; class First { Person *person; public: First() {person = new Person; person?>age = 20; } void Print(){ cout age; } }; int main() { First t[2]; for (int i=0; i


Answer: B
Question 4

Which of the following expressions decrement variable i by 2? (Choose two.) 


Answer: B,C
Question 5

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
Page:    1 / 52      
Total 257 Questions | Updated On: Nov 11, 2026
Add To Cart

© Copyrights DumpsCertify 2026. All Rights Reserved

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