Weekend Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Note! The CPA Exam is no longer valid. To find out more, please contact us through our Live Chat or email us. The CPA-21-02 Exam is the new exam code.

C++ Institute CPA Exam With Confidence Using Practice Dumps

Exam Code:
CPA
Exam Name:
C++ Certified Associate Programmer
Vendor:
Questions:
220
Last Updated:
Mar 14, 2025
Exam Status:
Stable
C++ Institute CPA

CPA: C++ Institute Other Certification Exam 2025 Study Guide Pdf and Test Engine

Are you worried about passing the C++ Institute CPA (C++ Certified Associate Programmer) exam? Download the most recent C++ Institute CPA braindumps with answers that are 100% real. After downloading the C++ Institute CPA exam dumps training , you can receive 99 days of free updates, making this website one of the best options to save additional money. In order to help you prepare for the C++ Institute CPA exam questions and verified answers by IT certified experts, CertsTopics has put together a complete collection of dumps questions and answers. To help you prepare and pass the C++ Institute CPA exam on your first attempt, we have compiled actual exam questions and their answers. 

Our (C++ Certified Associate Programmer) Study Materials are designed to meet the needs of thousands of candidates globally. A free sample of the CompTIA CPA test is available at CertsTopics. Before purchasing it, you can also see the C++ Institute CPA practice exam demo.

C++ Certified Associate Programmer Questions and Answers

Question 1

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

#include

using namespace std;

int main()

{

long int x,y=10;

double d;

d = 3.99;

x=(int) d;

cout << x <<", ";

d=float (y);

cout << d;

return 0;

}

Options:

A.

It prints: 3, 10

B.

It prints: 3.99, 10

C.

It prints: 4, 10.0

D.

It prints: 4, 10

Buy Now
Question 2

Which code, inserted at line 10, generate the output "50"?

#include

using namespace std;

class Base {

int age;

public:

Base () {

age=5;

};

//insert code here

void Print() { cout << age;}

};

void setAge(Base &ob) {ob.age = 0;}

int main () {

Base a;

a.Print();

setAge(a);

a.Print();

return 0;

}

Options:

A.

friend void setAge(Base ob);

B.

friend void setAge(Base *ob);

C.

friend void setAge(Base &ob);

D.

None of these

Question 3

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

#include

using namespace std;

class BaseClass

{

public:

int *ptr;

BaseClass(int i) { ptr = new int(i); }

~BaseClass() { delete ptr; delete ptr;}

void Print() { cout << *ptr; }

};

void fun(BaseClass x);

int main()

{

BaseClass o(10);

fun(o);

o.Print();

}

void fun(BaseClass x) {

cout << "Hello:";

}

Options:

A.

It prints: Hello:1

B.

It prints: Hello:

C.

It prints: 10

D.

Runtime error.