4. Rewrite the following C++ code using if...else statement June 2018 Score 3 switch (choice) { case 1: cout<<"One"; break; case 0: cout<<"Zero"; break; default: cout<< "End” break; }
5. Write the output of the following code. Justify your answer. June 2018 Score 3 for(i=1;i<=5;++i) { cout<<'\t'<<i; if(i==3) break; }
6. Define Jump Statements. Explain about any two. March 2018 Score 3
7. Explain about nested loops. March 2018 Score 3
8. What is tokens in C++. March 2020 Score 2
9.Write the use of break statement in C++. March 2020 Score 2
10. Rewrite the following code using for loop. March 2020 Score 2 sum=0; i=0; while(i<10) { sum=sum+i; i=i+1; } cout<<"sum = "<<sum;
14. Rewrite the following code using for loop. March 2019 Score 2 int x=1; start: cout<<x; x=x+5; if(x<=50) goto start;