Weekend Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = simple70
Pass the C++ Institute C++ Certified Professional Programmer CPA-21-02 Questions and answers with ExamsMirror
Exam CPA-21-02 Premium Access
View all detail and faqs for the CPA-21-02 exam
481 Students Passed
87% Average Score
91% Same Questions
What happens when you attempt to compile and run the following code?
#include
using namespace std;
int main (int argc, const char * argv[])
{
int tab[5]={1,2,3};
for (int i=0; i<5; i++)
cout < return 0; }
What will be the output of the program?
#include
#include
using namespace std;
int fun(int);
int main()
{
float k=3;
k = fun(k);
cout< return 0; } int fun(int i) { i++; return i; }
What happens when you attempt to compile and run the following code?
#include
using namespace std;
int op(int x, int y);
float op(int x, float y);
int main()
{
int i=1, j=2, k;
float f=0.3;
k = op(i, j);
cout<< k << "," << op(0, f);
return 0;
}
int op(int x, int y)
{
return x+y;
}
float op(int x, float y)
{
return x?y;
}
What happens when you attempt to compile and run the following code?
#include
using namespace std;
int main()
{
int i = 5;
do {
i??;
cout<
}
while(i >= 0);
return 0;
}
What will happen when you attempt to compile and run the following code?
#include
#include
using namespace std;
string fun(string, string);
int main()
{
string s="Hello";
cout << fun(s, " World");
return 0;
}
string fun(string s1, string s2)
{
return s1+s2;
}
A condition expression used by if(), while(), and do-while() must evaluate to and only to:
What happens when you attempt to compile and run the following code?
#include
using namespace std;
namespace myNamespace1
{
int x = 5;
int y = 10;
}
namespace myNamespace2
{
float x = 3.14;
float y = 1.5;
}
int main () {
namespace newname = myNamespace1;
using namespace newname;
cout << x << " ";
cout << y;
return 0;
}
What happens when you attempt to compile and run the following code?
#include
using namespace std;
int main()
{
union un
{
int x;
char c;
};
union un u1 = {10};
union un u2 = {'a'};
union un u3 = {20, 'a'};
cout< cout< cout< return 0; }
What happens when you attempt to compile and run the following code?
The following declaration:
int i = 0b10;
TOP CODES
Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.