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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post 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 33 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply