Save 15% on 2 packs BUY2 · 20% on 3+ BUY3

Skip to content
C++ Institute CPA Exam Practice Questions, practice question pack
I am grateful to this site for providing such premium quality education which allowed me to pass my CISSP exam by a score of 960/1000.
angelinaCISSP
Pass, or your money backFail the exam after using this pack and we refund it, or swap it for any other pack. How the guarantee works

C++ Institute CPA Exam Practice Questions

Every question comes with the correct answer and a clear explanation.

  • 99% pass rate
  • 40 questions
  • 2 PDFs

US$39Pay in your own currency at checkout

Delivered to your email within 24 hours.

  • Free updates for lifeEvery new version of this pack, emailed to you free.
  • Secure checkoutPayPal or card. Pay once, no subscription.
  • Questions-only copyA second PDF without the answers, for timed practice runs.

What’s insideFAQ

Try before you buy

Four of the 40 questions in this pack

Question 1

The following declaration: int i = 0b10;

Not this one. Try another answer.

Why A is wrong

Binary literals with the 0b prefix are valid in C++.

Not this one. Try another answer.

Why B is wrong

The digits after 0b are read in base 2, not base 10.

Right, C is the answer.

Why C is right

The prefix 0b marks a binary literal, so 0b10 is the binary number 10, which equals 2 in decimal. The variable i is initialized with the value 2.

Not this one. Try another answer.

Why D is wrong

Octal literals start with a 0 followed by octal digits, without the letter b.

Question 2

The following declaration: int i = 010;

Not this one. Try another answer.

Why A is wrong

The leading 0 makes the literal octal, so it is not read as decimal 10.

Not this one. Try another answer.

Why B is wrong

A binary literal needs the 0b prefix.

Not this one. Try another answer.

Why C is wrong

010 is a valid octal literal.

Right, D is the answer.

Why D is right

An integer literal that starts with 0 is octal. 010 is the octal number 10, which is one eight and zero ones, so i is initialized with the decimal value 8.

Question 3

Which of the following operators accept integer arguments only? (Choose two.)

Right, A is one of the answers.

Why A is right

The bitwise OR operator | and the bitwise complement operator ~ work on the individual bits of their operands, so they accept only integer types. Using them with floating-point operands is a compilation error.

Not this one. Try another answer.

Why B is wrong

The logical OR operator works on any operand that converts to bool, including floating-point values and pointers.

Right, C is one of the answers.

Why C is right

The bitwise OR operator | and the bitwise complement operator ~ work on the individual bits of their operands, so they accept only integer types. Using them with floating-point operands is a compilation error.

Not this one. Try another answer.

Why D is wrong

The logical NOT operator works on any operand that converts to bool, including floating-point values and pointers.

Question 4

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

Not this one. Try another answer.

Why A is wrong

i &= 0x03 clears all but the two lowest bits of i, which is not a subtraction of 2.

Right, B is one of the answers.

Why B is right

i -= 2 subtracts 2 from i in one compound assignment. The pair of statements --i; i--; decrements i by 1 twice, which also lowers it by 2 in total.

Right, C is one of the answers.

Why C is right

i -= 2 subtracts 2 from i in one compound assignment. The pair of statements --i; i--; decrements i by 1 twice, which also lowers it by 2 in total.

Not this one. Try another answer.

Why D is wrong

Applying the prefix and postfix decrement to i in a single expression does not compile, because the postfix result is not a modifiable value.

How much of the C++ Institute CPA bank is free?

40 questions in the bank

  • Free sample: 12 questions12 real questions, every answer explained, in one PDF.Download PDF
  • Full pack, US$39All 40 questions. Plus the questions-only PDF, free updates for life, refund if you fail.Get the full pack

CPA exam questions with answers: all 40 for C++ Institute CPA.

  • 40 questions mapped to the CPA-21-02 exam syllabus
  • Answers and explanations for every question, including the wrong options
  • A questions-only PDF for timed practice runs
  • Email delivery: sent to your email within 24 hours
  • Free updates for life
  • Pass or your money back

The CPA exam costs US$325. This pack is US$39, paid once.

CPA exam questions: the short answers

How many questions are on the CPA exam?
The C++ Institute lists 40 single and multiple-choice questions in 65 minutes, plus about 10 minutes for the non-disclosure agreement and tutorial.

What score do I need to pass?
70%. Each question carries its own point value, up to 200 points in total, and your points are converted to a percentage.

How much does the exam cost?
From USD 325 for the exam, or from USD 375 with a retake. There are no prerequisites.

What makes the CPA exam hard

Classes and namespaces carry the most weight, 29%. Block 5 has 10 of the 40 items, so constructors, inheritance, polymorphism, access control and namespaces need the most study time, and harder items are worth more points.

Types and operators come next at 24.5% (9 items), then control flow and exceptions at 18% (8 items), functions and preprocessor directives at 17.5% (9 items) and pointers at 11% (4 items). Many questions show a short program and ask what it prints, so practise tracing code by hand: operator precedence, post-increment and default output formatting all matter.

About the exam

CPA (C++ Certified Associate Programmer) is the C++ Institute's associate-level certification, between CPE and CPP. It checks that you can write and read C++ code using syntax, program logic, memory management, exceptions, preprocessor directives and object-oriented features. The exam is 40 questions in English, taken in 65 minutes.

Before you buy

What you get for US$39

  • All 40 questions, each with the correct answer and why the other options are wrong
  • 2 PDFs: the full pack, plus a questions-only copy for timed practice
  • Delivered to your email within 24 hours
  • Updated once a month, with free updates for life, emailed to the address you used at checkout

How a question works

Example: tap an answer, it is marked right or wrong, and the reason for that answer appears under the options.

What do I get?

Every pack comes as 2 PDFs: one with every answer explained, and a questions-only copy for timed practice. Both are delivered to your email within 24 hours, and every pack includes free updates for life.

How often are the questions updated?

Question sets are updated once a month.

Will I receive updates after purchasing?

Yes. All PDF purchases include lifetime updates. Updated versions are emailed automatically to the email address used during checkout.

What if an answer looks wrong?

We correct mistakes as we find them, and the monthly update sends those fixes to you. No question bank this size is ever completely flawless, so if something still looks off to you, check it against the vendor's own documentation and send it to support@certstash.com. We reply to every message, and the fix ships in the next update, free, for life.

Are your materials enough to pass the exam?

Most candidates use them as their main practice source. If you study with them and still fail, we refund you in full.

What happens if I fail my exam?

You get your money back. Sit the exam 7 to 30 days after buying, then email support@certstash.com within 7 days of the exam with your order number and a copy of your official score report showing the fail. Full terms are in the refund policy.

Do you have discount codes?

Yes, when you buy more than one exam pack. For 2 packs, use code BUY2 for 15% off. For 3 or more packs, use code BUY3 for 20% off. Enter the code in the discount box at checkout.

What payment methods do you accept?

Visa, Mastercard and other cards, Apple Pay, Google Pay and PayPal.

Do you offer shipping?

No. All products are digital downloads. There is no physical shipping.

I did not receive my order after payment.

Contact support@certstash.com with your order number and payment confirmation details.