100+ Free C++ CPA Practice Questions
Pass your C++ Institute Certified Associate Programmer exam on the first try — instant access, no signup required.
Which header must be included to use std::cout for console output in standard C++?
Key Facts: C++ CPA Exam
40
Exam Questions
C++ Institute CPA-21-02 syllabus
65 min
Exam Duration
C++ Institute CPA-21-02 syllabus
70%
Passing Score
C++ Institute CPA-21-02 syllabus
$325
Exam Fee (USD)
C++ Institute pricing
Pearson VUE
Test Provider
C++ Institute / OnVUE
Lifetime
Validity
C++ Institute certification policy
C++ Institute CPA (CPA-21-02) is a 40-item, 65-minute proctored exam delivered by Pearson VUE/OnVUE, with a 70% passing score and a starting fee of USD 325 (USD 375 with one retake). Topics: types and operators (24.5%), control and exceptions (18%), functions and preprocessor (17.5%), pointers (11%), and classes and namespaces (29%). The certification is issued for life with no recertification required.
Sample C++ CPA Practice Questions
Try these sample questions to test your C++ CPA exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 100+ question experience with AI tutoring.
1Which header must be included to use std::cout for console output in standard C++?
2What does the following snippet print? #include <iostream> int main() { int x = 5; int y = 2; std::cout << x / y << " " << x % y; return 0; }
3Which statement about C++ identifiers is TRUE?
4What does the following code print? #include <iostream> int main() { int a = 10; int b = 3; std::cout << a + b * 2; return 0; }
5Which of the following is the correct way to declare a constant integer in C++?
6What is the output of the following code? #include <iostream> int main() { int i = 5; std::cout << i++ << " " << ++i; return 0; }
7Which of these is NOT a fundamental built-in type in C++?
8What does this snippet print? #include <iostream> int main() { bool b = 5; std::cout << b << " " << !b; return 0; }
9Which statement about a C++ literal like 3.14 is TRUE?
10What does this code print? #include <iostream> int main() { int a = 7; int b = 4; std::cout << (a > b ? a : b); return 0; }
About the C++ CPA Exam
The C++ Institute CPA (CPA-21-02) credential validates the candidate's ability to write, debug, and run programs in C++ at the associate level. The exam covers C++ types and operators, control flow and exceptions, functions and the preprocessor, pointers and dynamic memory, plus introductory OOP with classes, inheritance, polymorphism, virtual functions, and namespaces.
Questions
40 scored questions
Time Limit
65 minutes
Passing Score
70%
Exam Fee
$325 USD (C++ Institute)
C++ CPA Exam Content Outline
Classes and Namespaces
OOP fundamentals: class design, access specifiers, constructors and destructors, inheritance, polymorphism with virtual functions, casting, and namespace usage.
Types and Operators
Built-in types, literals, std::string operations, arrays and std::vector basics, type casting, declaration modifiers, and the full set of C++ operators.
Control Flow and Exceptions
if/else, switch, while, do-while, and for loops, break and continue, plus exception handling with try, catch, throw, and standard exception hierarchies.
Functions and Preprocessor Directives
Function definitions, parameter passing by value and reference, default arguments, overloading, recursion, inline functions, and #include / #define / conditional compilation.
Pointers and Dynamic Memory
Pointer declaration and dereferencing, pointer arithmetic, the relationship between arrays and pointers, and dynamic memory management with new and delete.
How to Pass the C++ CPA Exam
What You Need to Know
- Passing score: 70%
- Exam length: 40 questions
- Time limit: 65 minutes
- Exam fee: $325 USD
Keys to Passing
- Complete 500+ practice questions
- Score 80%+ consistently before scheduling
- Focus on highest-weighted sections
- Use our AI tutor for tough concepts
C++ CPA Study Tips from Top Performers
Frequently Asked Questions
What is on the C++ Institute CPA exam?
CPA-21-02 tests C++ fundamentals at the associate level: types and operators (24.5%), control flow and exceptions (18%), functions and preprocessor directives (17.5%), pointers and dynamic memory (11%), and classes and namespaces (29%) including inheritance, polymorphism, virtual functions, and casting. It does not go deep into templates, the STL beyond std::string and std::vector basics, or advanced exception design — those belong to the CPP follow-on exam.
How long is the CPA exam and how many questions does it have?
The C++ Institute CPA-21-02 exam consists of 40 single-select and multiple-select questions delivered in 65 minutes, plus about 10 additional minutes for the non-disclosure agreement and tutorial. Each question carries a weight that depends on its complexity, and your final score is normalized to a percentage out of 200 total points.
What is the passing score for C++ CPA?
You must score 70% or higher on the CPA-21-02 exam to pass. Because items are weighted, the 70% threshold is calculated against the total points earned across all 40 questions, not a simple count of correct answers.
How much does the C++ Institute CPA exam cost?
The CPA-21-02 exam starts at USD 325 for a single attempt or USD 375 for the exam plus one retake voucher. Candidates who complete the official CPA self-study course on the C/C++ Education Platform can earn a 50% discount voucher, which also includes one free retake.
Where do I take the CPA exam?
You schedule and take the C++ Institute CPA exam through Pearson VUE, either at a Pearson VUE test center or through OnVUE online proctoring. You set up a Pearson VUE account at pearsonvue.com/cpp, choose CPA-21-02, and pick your delivery method and time slot.
Does the CPA certification expire?
No. C++ Institute certificates, including CPA, are issued for life with no recertification or renewal fees. Once you pass CPA-21-02 your credential remains valid permanently, although the institute reserves the right to update policies in the future.