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

The questions for CPA-21-02 were last updated On Dec 19, 2025

At ValidExamDumps, we consistently monitor updates to the C++ Institute CPA-21-02 exam questions by C++ Institute. Whenever our team identifies changes in the exam questions,exam objectives, exam focus areas or in exam requirements, We immediately update our exam questions for both PDF and online practice exams. This commitment ensures our customers always have access to the most current and accurate questions. By preparing with these actual questions, our customers can successfully pass the C++ Institute CPA - C++ Certified Associate Programmer Exam exam on their first attempt without needing additional materials or study guides.

Other certification materials providers often include outdated or removed questions by C++ Institute in their C++ Institute CPA-21-02 exam. These outdated questions lead to customers failing their C++ Institute CPA - C++ Certified Associate Programmer Exam exam. In contrast, we ensure our questions bank includes only precise and up-to-date questions, guaranteeing their presence in your actual exam. Our main priority is your success in the C++ Institute CPA-21-02 exam, not profiting from selling obsolete exam questions in PDF or Online Practice Test.

 

Question No. 1

What happens when you attempt to compile and run the following code?

#include

#include

using namespace std;

int mult(int f, int s, int t);

int main()

{

cout << mult(1,2,3);

return 0;

}

int mult(int f, int s, int t)

{

int mult_res;

mult_res = f*s*t;

return mult_res;

}

Show Answer Hide Answer
Correct Answer: B

Question No. 2

What happens when you attempt to compile and run the following code?

#include

using namespace std;

int main()

{

int x=20;

int *ptr;

ptr = &x;

cout<<*ptr;

return 0;

}

Show Answer Hide Answer
Correct Answer: A

Question No. 3

What is the expected result of the following program?

Show Answer Hide Answer
Correct Answer: B

Question No. 4

Point out an error in the program.

#include

using namespace std;

int main()

{

char s1[] = "Hello";

char s2[] = "world";

char *const ptr = s1;

*ptr = 'a';

ptr = s2;

return 0;

}

Show Answer Hide Answer
Correct Answer: B, C

Question No. 5

What is the output of the program given below?

#include

using namespace std;

int main (int argc, const char * argv[])

{

int i=10;

{

int i=0;

cout<

}

cout<

return 0;

}

Show Answer Hide Answer
Correct Answer: C