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

Absolute Free CPA-21-02 Exam Practice for Comprehensive Preparation 

  • C++ Institute CPA-21-02 Exam Questions
  • Provided By: C++ Institute
  • Exam: CPA C++ Certified Associate Programmer
  • Certification: C++ Certified Professional Programmer
  • Total Questions: 257
  • Updated On: Jul 24, 2026
  • Rated: 4.9 |
  • Online Users: 514
Page No. 1 of 52
Add To Cart
  • Question 1
    • What is the output of the program if characters 'h', 'e', 'l', 'l' , 'o' and enter are supplied as input? #include #include using namespace std; void f(); int main() { f(); return 0; } void f() { char c; c = cin.get(); cout

      Answer: A
  • Question 2
    • What happens when you attempt to compile and run the following code? #include using namespace std; int main() { const int x=0; const int *ptr; ptr = &x; cout

      Answer: A
  • Question 3
    • 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

      Answer: C
  • Question 4
    • What happens if characters 'w', 'o', 'r', 'l' and 'd' are entered as input? #include #include using namespace std; int main() { string s1 = "Hello"; string s2; getline( cin, s2 ); cout

      Answer: A
  • Question 5
    • What happens when you attempt to compile and run the following code? #include #include using namespace std; class A { protected: int y; public: int x, z; A() : x(1), y(2), z(0) {} A(int a, int b) : x(a), y(b) { z = x * y;} void Print() { cout

      Answer: A
PAGE: 1 - 52
Add To Cart

© Copyrights DumpsEngine 2026. All Rights Reserved

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