Vendor: C++ Institute
Certifications: C++ Programming
Exam Name: CPA - C++ Certified Associate Programmer
Exam Code: CPA-21-02
Total Questions: 257 Q&As ( View Details)
Last Updated: Mar 16, 2025
Note: Product instant download. Please sign in and click My account to download your product.
VCE
C++ Institute CPA-21-02 Last Month Results
CPA-21-02 Q&A's Detail
Exam Code: | CPA-21-02 |
Total Questions: | 257 |
Single & Multiple Choice | 257 |
CertBus Has the Latest CPA-21-02 Exam Dumps in Both PDF and VCE Format
CPA-21-02 Online Practice Questions and Answers
What happens when you attempt to compile and run the following code?
#include
using namespace std;
class A
{
public:
virtual void Print()=0;
};
class B:public A
{
public:
virtual void Print(){ cout<< "B";}
};
int main()
{
B ob2;
A *obj;
obj = andob2;
obj?>Print();
}
A. It prints: B
B. It prints: A
C. It prints: AB
D. It prints: BA
What happens when you attempt to compile and run the following code?
#include
#include
using namespace std;
const int size = 3;
class A {
public:
string name;
A() { name = "Bob";}
A(string s) { name = s;}
A(A anda) { name = a.name;}
};
class B : public A {
public:
int *tab;
B() { tab = new int[size]; for (int i=0; i B(string s) : A(s) { tab = new int[size]; for (int i=0; i ~B() { delete tab; } void Print() { for (int i=0; i cout << name; } }; int main () { B b1("Alan"); B b2; b1.tab[0]=0; b1.Print(); b2.Print(); return 0; } A. It prints: Alan B. It prints: 111 C. It prints: 011Alan111Bob D. It prints: 0
What happens when you attempt to compile and run the following code?
#include
using namespace std;
int main()
{
int i = 4;
while(i >= 0) {
cout<
i??;
}
return 0;
}
A. It prints:"43210"
B. It prints:"3210"
C. It prints: "3210?1"
D. None of these
What is the expected output of the following program?
A. It prints: 432
B. It prints: 321
C. It prints: 4321
D. It prints: 3210
Which code, inserted at line 8, generates the output "100"?
#include
using namespace std;
int fun(int);
int main()
{
int *x = new int;
*x=10;
//insert code here
return 0;
}
int fun(int i)
{
return i*i;
}
A. cout << fun(*x) ;
B. cout << fun(10);
C. cout << fun(5) ;
D. cout << fun(y) ;
Add Comments
Valid, around 3 questions are different, d & g different as well,rest are fine
i'm very happy that i passed the exam successfully. Recommend.
This dumps is still very valid, I have cleared the written exams passed today. Recommend.
Their questions are really update. I also bought dumps from other sites but other questions are not so valid as the one I bought here. They update the dumps quite often. I was informed there is the latest update for my exam within a week after purchase. Really a great help!
update quickly and be rich in content, great dumps.
I came back to check the update 3 days before my exam and they give me the latest version. Thanks for their latest version! I passed my exam. I want to say the "update version" they gave me is really the update version. New questions added to the last version and I found all those questions in my actual exam. They really work hard to keep their questions up to date. Great job!
Yes, i have passed the exam by using this dumps,so you also can try it and you will have unexpected achievements. Recommend to all.
Thats it for this exam! Gave my test today and passed. Thank to the site. All the best!
The content is rich and the answers are accurate, so this material is enough for you to pass the exam. Try your best and do everything carefully.
The study guide, practice tests and test questions has provided me with a comprehensive study plan. Once I take and pass the certification exam I will know how effective the material is in terms of contributing to my success. Wish me luck. Testing in a week.