Easter 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, generates the output "Hello World"?

#include

#include

using namespace std;

string fun(string, string);

int main()

{

string s="Hello";

string *ps;

ps = &s;

//insert code here

return 0;

}

string fun(string s1, string s2)

{

return s1+s2;

}

Options:

A.

cout << fun(" World");

B.

cout << fun(*ps);

C.

cout << fun("Hello");

D.

cout << fun("Hello", " World");

Buy Now
Question 2

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.

Question 3

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

#include

using namespace std;

int main()

{

int i=2;

switch(i)

{

case 1:

cout<<"Hello";

case 2:

cout<<"world";

case 3:

cout<<"End";

} return 0;

}

Options:

A.

It prints: Hello

B.

It prints: world

C.

It prints: worldEnd

D.

It prints: End