Summer Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

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
$291.2*
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

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

#include

#include

using namespace std;

struct Person {

string name;

int age;

};

class First

{

Person *person;

public:

First() {person = new Person;

person?>name = "John";

person?>age = 30;

}

void Print(){

cout<<person?>name << " "<< person?>age;

}

};

int main()

{

First t;

t.Print();

}

Options:

A.

It prints: 30

B.

It prints: John

C.

It prints: John 30

D.

It prints: John 30John 30

Buy Now
Question 2

What is the output of the program?

#include

#include

using namespace std;

int main()

{

string s1[]= {"Hello" , "World" };

for (int i=0; i<2; i++) {

cout << s1[i];

}

return( 0 );

}

Options:

A.

It prints: HelloWorld

B.

It prints: Hello

C.

It prints: WorldHello

D.

It prints: World

Question 3

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

#include

#include

using namespace std;

int f(int i);

int main()

{

int i=0;

i++;

for (i=0; i<=2; i++)

{

cout<<f(i);

}

return 0;

}

int f(int a)

{

return a+a;

}

Options:

A.

It prints: 202020

B.

It prints: 012

C.

It prints: 024

D.

It prints: 0