Free C++ Institute CPA-21-02 Practice Exams Questions 2026  - TheExamsLabs

Start Preparation with the Latest and Real 100% Free C++ Certified Professional Programmer CPA-21-02 Exam Dumps Questions Practice 2026

Page:    1 / 52      
Total 257 Questions | Updated On: Jun 16, 2026
Add To Cart
Question 1

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 2

What happens when you attempt to compile and run the following code? #include using namespace std; int main() { const int x=0; const int *ptr; ptr = &x; 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 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
Page:    1 / 52      
Total 257 Questions | Updated On: Jun 16, 2026
Add To Cart

© Copyrights TheExamsLabs 2026. All Rights Reserved

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