Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

C++ Institute Exam CPA-21-02 Topic 4 Question 19 Discussion

Actual exam question for C++ Institute's CPA-21-02 exam
Question #: 19
Topic #: 4
[All CPA-21-02 Questions]

How many times will "HELLO" be printed?

#include

using namespace std;

int main()

{

for(int i=?1; i<=10; i++)

{

if(i < 5)

continue;

else

break;

cout<<"HELLO";

}

return 0;

}

Show Suggested Answer Hide Answer
Suggested Answer: A, B

Contribute your Thoughts:

Shanice
5 days ago
I'm not sure, but I think the answer is A) 1 as well
upvoted 0 times
...
Elena
7 days ago
I agree with Providencia, because the loop will only print 'HELLO' once when i=5
upvoted 0 times
...
Providencia
8 days ago
I think the answer is A) 1
upvoted 0 times
...

Save Cancel