Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
sale

Want to Unlock All Questions for this Exam?

Full Exam Access, Discussions, No Robots Checks

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

The questions for CPA-21-02 were last updated on June 10, 2024.
  • Viewing page 1 out of 10 pages.
  • Viewing questions 1-4 out of 40 questions

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   2

Correct Answer: C 🗳️

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  

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 🗳️

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.

SaveCancel
Loading ...