Page 1 of 1

6. Which of the following can be used for selection program? A. if...else B. if... then C. switch... break D. for 7. Whi

Posted: Wed Apr 27, 2022 3:09 pm
by answerhappygod
6 Which Of The Following Can Be Used For Selection Program A If Else B If Then C Switch Break D For 7 Whi 1
6 Which Of The Following Can Be Used For Selection Program A If Else B If Then C Switch Break D For 7 Whi 1 (105 KiB) Viewed 35 times
Urgent help please
6. Which of the following can be used for selection program? A. if...else B. if... then C. switch... break D. for 7. Which of the following is FALSE about switch case selection. A. The switch expression is evaluated once B. The value of the expression is compared with the values of each case C. If there is a match, the associated block of code is executed D. The break and default keywords are mandatory in switch case statement 8. What is the output produced by the following program segment? int x = 0; while (x > 7) { cout << x << ++x; } A. 0 1 2 3 4 5 6 B. 0 1 2 3 4 5 6 7 C. 0000 ... D. Nothing 9. How many times does the cout statement in the following code execute? int a=2; int b=2; while (a<10) for (int b=0; b<4; b++) { cout << a << " " << b << ""; a++; } A. 8 B. 10 C. 16 D. infinitely 10. The break statement can be used in A. while B. switch C. do.. while D. All of the above