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
6. Which of the following can be used for selection program? A. if...else B. if... then C. switch... break D. for 7. Whi
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
6. Which of the following can be used for selection program? A. if...else B. if... then C. switch... break D. for 7. Whi
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!