×

Special Offer! Sale of the Month | Extra 20% OFF - Ends In Coupon code: TEL20

Free Practice C++ Institute CPA-21-02 Exam Questions 2025

Stay ahead with 100% Free CPA C++ Certified Associate Programmer CPA-21-02 Dumps Practice Questions

Page:    1 / 52      
Total 257 Questions | Updated On: Apr 23, 2025
Add To Cart
Question 1

What is the output of the program given below? #include using namespace std; int main (int argc, const char * argv[]) { enum state { ok, error, warning}; enum state s1, s2, s3, s4;  s1 = ok; s2 = warning; s3 = error; s4 = ok; cout << s1<< s2<< s3<< s4; return 0; }


Answer: C
Question 2

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

#include

using namespace std;

void print(char *c);

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

{

print("Test");

return 0;

}

void print(char *c)

{

cout<

}


Answer: A
Question 3

Which of the following expressions decrement variable i by 2? (Choose two.) 


Answer: B,C
Question 4

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



Answer: B
Question 5

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

#include

using namespace std;

void print(char *c);

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

{

print("Test");

return 0;

}

void print(char *c)

{

cout<

}


Answer: A
Page:    1 / 52      
Total 257 Questions | Updated On: Apr 23, 2025
Add To Cart

© Copyrights TheExamsLab 2025. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the TheExamsLab.