×

Special Offer! Limited-Time Offer! Get 25% Off on All Certification Exams – Prepare & Pass with Confidence! Use Code:  DC25OFF  

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

Try our Free Demo Practice Tests for Comprehensive CPA-21-02 Exam 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: Jun 04, 2025
  • Rated: 4.9 |
  • Online Users: 514
Page No. 1 of 52
Add To Cart
  • Question 1
    • What is the output of the program? #include using namespace std; #define SQR(x)(x*x) int main(int argc, char *argv[]) { int x, y=2; x = SQR(y); cout << x << ", " <

      return 0;

      }


      Answer: B
  • Question 2
    • Which statement should be added in the following program to make work it correctly? using namespace std; int main (int argc, const char * argv[]) { cout<<"Hello"; }


      Answer: C
  • Question 3
    • Which of the following expressions decrement variable i by 2? (Choose two.) 

      Answer: B,C
  • Question 4
    • What is the output of the program? #include #include using namespace std; struct Person { int age; }; class First { Person *person; public: First() {person = new Person; person?>age = 20; } void Print(){ cout << person?>age; } }; int main() { First t[2]; for (int i=0; i<2; i++) t[i].Print(); }


      Answer: B
  • Question 5
    • What will be the output of the program? #include using namespace std; int fun(int); int main() { cout << fun(5); return 0; } int fun(int i) { return i*i; }


      Answer: A
PAGE: 1 - 52
Add To Cart

© Copyrights Dumpscity 2025. All Rights Reserved

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