Free C++ Institute CPA Exam Dumps Questions & Answers
| Exam Code/Number: | CPAJoin the discussion |
| Exam Name: | C++ Certified Associate Programmer |
| Certification: | C++ Institute |
| Free Question Number: | 220 |
| Publish Date: | Aug 07, 2026 |
| # of views: | 6797 |
|
|
|
What happens when you attempt to compile and run the following code?
#include <iostream>
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;
}
What happens when you attempt to compile and run the following code?
#include <iostream>
using namespace std;
class First
{
public:
First() { cout << "Constructor";}
void Print(){ cout<<"from First";}
};
int main()
{
First FirstObject;
FirstObject.Print();
}
What happens when you attempt to compile and run the following code?
#include <iostream>
using namespace std;
int main (int argc, const char * argv[])
{
int tab[5]={1,2,3};
for (int i=0; i<5; i++)
cout <<tab[i];
return 0;
}
Point out an error in the program.
#include <iostream>
using namespace std;
int main()
{
const int x=1;
int const *y=&x;
cout<<*y;
return 0;
}
| CPA Dumps Other Version | QA's | Publish Date |
| C++Institute.CPA.v2022-02-18.q137 | 137 | Feb 18, 2022 |