CPA-21-02 Actual Exam Questions

Last updated on Dec. 19, 2024.
Vendor:C++ Institute
Exam Code:CPA-21-02
Exam Name:CPA – C++ Certified Associate Programmer
Exam Questions:40
 

Topic 1 - Exam A

Question #1 Topic 1

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

  • A. It prints: 4
  • B. It prints: 1
  • C. It causes a compilation error
  • D. It prints: 0
Reveal Solution Hide Solution   Discussion   4

Correct Answer: D 🗳️

Question #2 Topic 1

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

  • A. It prints: 1
  • B. It causes a compilation error
  • C. It prints: –1
  • D. It prints: 0
Reveal Solution Hide Solution   Discussion   1

Correct Answer: A 🗳️

Question #3 Topic 1

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

  • A. It causes a compilation error
  • B. It prints: 9.9
  • C. It prints garbage characters
  • D. It prints: 9
Reveal Solution Hide Solution   Discussion   1

Correct Answer: B 🗳️

Question #4 Topic 1

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

  • A. It prints: 5.2110.0
  • B. It prints: 5.210.0
  • C. It prints: 52.10
  • D. It prints: 5210
Reveal Solution Hide Solution   Discussion   1

Correct Answer: C 🗳️

file Viewing page 1 out of 10 pages.
Viewing questions 1-4 out of 40 questions
Next Questions
Browse atleast 50% to increase passing rate cup
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago