Computer Science - Object Oriented Programming Using C++ - Discussion

3. 

The two statements that can be used to change the flow of control are

[A]. if and switch
[B]. if and while
[C]. switch and do-while
[D]. break and continue
[E]. None of the above

Answer: Option A

Explanation:

No answer description available for this question.

Stuti said: (Aug 24, 2014)  
Why not C. Break and continue ?

Rakhi said: (Sep 29, 2014)  
Yes. I too have same doubt. Which is correct?

Sharon said: (Nov 23, 2015)  
Because switch is the function that is used to control the "flow of control".

Sharon said: (Nov 23, 2015)  
Because if and switch statements are the two statements that are used to control of change the flow of control.

Ali said: (Nov 30, 2015)  
There is a statement not function so break and continue is right.

Renuka said: (Dec 26, 2016)  
Break and continue flow control statement that's why I think D option is correct.

Wazir Sikandar said: (Mar 15, 2017)  
Switch and break statement controls data flow.

So A answer is wrong.

Shaheen K M said: (Mar 30, 2017)  
The correct answer is Option D.

Sumaiya said: (Jan 20, 2018)  
D is right! Because break and continue help to controles flow of data not if & swich.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.