Higher Test Marks with Free Online CPA-21-02 Exam Practice

Assess the CertsIQ’s updated CPA-21-02 exam questions for free online practice of your CPA C++ Certified Associate Programmer test. Our CPA 21-02 dumps questions will enhance your chances of passing the C++ Certified Professional Programmer certification exam with higher marks.

Exam Code: CPA-21-02
Exam Questions: 257
CPA C++ Certified Associate Programmer
Updated: 03 Jun, 2025
Question 1

Which statement should be added in the following program to make work it correctly? using namespace std; int main (int argc, const char * argv[]) { cout<<"Hello"; }

Options :
Answer: C

Question 2

What happens when you attempt to compile and run the following code? #include #include using namespace std; int main() { string s1[]= {"How" , "to" }; s1[0].swap(s1[1]); for (int i=0; i<2; i++) { cout << s1[i]; } return( 0 ); }

Options :
Answer: B

Question 3

Which statement should be added in the following program to make work it correctly? using namespace std; int main (int argc, const char * argv[]) { cout<<"Hello"; }

Options :
Answer: C

Question 4

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 << s1<< s2<< s3<< s4; return 0; }

Options :
Answer: C

Question 5

Which of the following operators accept integer arguments only? (Choose two.) 

Options :
Answer: A,C

Viewing Page : 1 - 26
Practicing : 1 - 5 of 257 Questions

© Copyrights CertsIQ 2025. All Rights Reserved

We use cookies to ensure that we give you the best experience on our website (CertsIQ). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the CertsIQ.