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

Note! Following CPA Exam is Retired now. Please select the alternative replacement for your Exam Certification. The new exam code is CPA-21-02
Last Week Results
32 Customers Passed C++ Institute
CPA Exam
Average Score In Real Exam
86.7%
Questions came word for word from this dump
88.6%
C++ Institute Bundle Exams
C++ Institute Bundle Exams
 Duration: 3 to 12 Months
 3 Certifications
  7 Exams
 C++ Institute Updated Exams
 Most authenticate information
 Prepare within Days
 Time-Saving Study Content
 90 to 365 days Free Update
$249.6*
Free CPA Exam Dumps

Verified By IT Certified Experts

CertsTopics.com Certified Safe Files

Up-To-Date Exam Study Material

99.5% High Success Pass Rate

100% Accurate Answers

Instant Downloads

Exam Questions And Answers PDF

Try Demo Before You Buy

Certification Exams with Helpful Questions And Answers

C++ Certified Associate Programmer Questions and Answers

Question 1

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

Buy Now
Question 2

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

#include

using namespace std;

#define DEF_A 0

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

cout << DEF_A;

return 0;

}

Options:

A.

It prints: 1

B.

It prints: 0

C.

It prints: ?1

D.

Compilation error

Question 3

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

#include

using namespace std;

int op(int x, int y)

{

int i;

i = x + y;

return i;

}

int main()

{

int i=1, j=2, k, l;

k = op(i, j);

l = op(j, i);

cout<< k << "," << l;

return 0;

}

Options:

A.

It prints: 1,2

B.

It prints: ?1,1

C.

It prints: 1,1

D.

It prints: 3,3