Structure Used One Error Cannot Occur B Infinite Loop Cannot Take Place C Body Loop Exec Q23432505

Hore 15.If a do wtile structure is used a An of-by-one err cannot occur b An innte loop cannat take pisoe c. The body of the loop will evecaute at least once d. Counter controled iteraton is not poesibla 16. Which of the tolowing dats types canor be used to represent integers? b. long e string 7 A switch statement should be used a To replace all if. eise statements a a double se d As a mutiple-solection structure. conditon2 evak oes to precederce than thhe ta) operator 21. The for loop statements are used in senine c terution annd the wia steners eounder controled itean True b Fabe 22 Which of the folowing is not ove of the G++ coteal structures? b. switch C. break d do...while n An expression contaning the iD tase, temer or both d ns operands Getrn b. The default case is optional in the switch selection structure c. The break statement is used to exit the switch statements. The break statevent 23. Which of the foilowing statement is false? not required when the default case is the last case d. The expression (x y 8 a x b) s true f either the expression xo y is trus or the b is true. expression a

c++

If a do… while structure is used a. An off-by-one error cannot occur b. An infinite loop cannot take place. c. The body of the loop will execute at least once. d. Counter-controlled iteration is not possible. Which of the following data types cannot be used to represent integers? a. short b. long c. string d. char A switch statement should be used. a. To replace all if.. else statements. b. As a single-selection structure c. As a double-selection structure. d. As a multiple-selection structure In a logical (&&) operator, if conclusion 1 is true, condition 2 is false, then condition 1(&&) condition2 evaluate to: a. True b. False In a logical operator, if conclusion 1is true, conditional2 is false, then condition 1 condition2 evaluates to a. True b. False The operator a. Has higher than the (&&) operator b. Association from right to left c. Stops evaluation upon finding one condition to be true d. Has at least four conditional statements. The for loop statements are used in controlled iteration and the while statements are used for counter controlled iteration a. True b. False Which of the following is not one of the C++ control structures? a. If b. switch c. break d. do… while Which of the following statement is false? a. An expression containing the is false, if either or both of its operands are true. b. The default case is optional in the switch selection structure. c. The break statement is used to exit the switch statements. The break statement is not required when the default case is the last case. d. The expression (x > y && a y is true or the expression a Show transcribed image text

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *