Student Co B D Never Q1 Choose Correct Answer 1 Must Use One Following Parentheses Braces Q43835432
Student CO B D. never Q1: Choose the correct answer 1. We must use one of the following parentheses (braces) in the while statement A ) D. 2. In C++, for is Reserved word (keyword) B. Library C. User-defined identifier D. None of the mentioned J. How many times the following loop prints “CH”? int = 0; while ( <3) cout<“CH” <<endl; A Twice B. Once C.Three times 4. What is the output of the following program segment? int-Sp-120; do q- 2; while (q <p cout<< ” “cint(‘F’): A. 80 70 B. 160 70 C. 160 F D. 80 F 5. The while loop: R-0; while (R 10) R++; is terminated if A.R>10 BR<10 CR>10 D. R 10 6. What is the output of the following program segment? forint num ; num<10; num++) Tifnum 2-0) continue, cout<num: A. 0123456789 B. 13579 C. 02468 D. None of the mentioned 7. Which of the following array declaration and initialization is incorrect? A. int list 5-15.5,6,79, 42); C. double W[5)-(2.3333): B. int sum[4=15.6.7.4.3: D. double list 1-12, 4, 6, 99, 12, 4); 02: what is the output of the following C++ statements 13 points C++ statements Output const int NUM-151 Int b = 3.5 do for int i i 3 ; ++) if (UMi ++b) cout<< 2<<” ; while ( bNUM: int x.y. -41 yes +63 whileliz-x)14) 0) cout<<<<” ” 7) int x – 2. 2. 2; while x–> 5) fix ! 0 cout<<x*2<<” “; else cout< /2<<” “; in 3-1.5: for(int i=1, 1-14; 1-3) – iFri14– 1–13 continue; j++++ cout<ci ” cout<<<endl; int x-33.5; int y-23.5; doi cout<< x/y <cendl; x-y: y/-2; I while y>0); int J. L i =1 fort ;i+1<20; i++) for(-1; )( )++cout<< “: if() — Lybreakil int J, matrix (41141=1 (1,2,3,4), (5,6), 17,8,9,10)) for(j = 0; < 3; i++) { for (int k = 0; kc k++) cout << matrix[k] ] << ” “; cout << “n”; } Show transcribed image text Student CO B D. never Q1: Choose the correct answer 1. We must use one of the following parentheses (braces) in the while statement A ) D. 2. In C++, for is Reserved word (keyword) B. Library C. User-defined identifier D. None of the mentioned J. How many times the following loop prints “CH”? int = 0; while (
Expert Answer
Answer to Student CO B D. never Q1: Choose the correct answer 1. We must use one of the following parentheses (braces) in the whil…
OR