Order PDF of any content from our website with a little minor Fee to donate for hard work. Online MCQs are fully free but PDF books are paid. For details: contact whatsapp +923028700085 Important notes based PDF Books are available in very little price, starting from 500/-PKR; Order Now: contact whatsapp +923028700085

Chapter 4 Control Statements MCQs

17 min Score: 0 Attempted: 0/17 Subscribe
1. . …………………….. statement provides an easy way to dispatch execution to different parts of your code based on the value of an expression.





2. . In the while and do-while loops, a ………………… statement causes control to be transferred directly to the conditional expression that controls the loop.





3. . Which of the following control expressions are valid for an if statement?





4. . By using …………………….., you can force immediate termination of the loop, bypassing the conditional expression and any remaining code in the body of the loop.





5. . The ………………………. loop is especially useful when you process a menu selection.





6. . If you need to select among a large group of values, a switch statement will run much faster than the equivalent logic coded using ……………….. statement.





7. . The ………………. is an optional case when it will be executed if the value of the expression does not match with any of the case values.





8. . The ……………………… statement at the end of each block signals the end of a particular case and causes an exit from the switch statement, transferring the control to the statement following the switch.





9. . The ………………… statement tests the value of a given variable against a list of case values and when a match is found, a block of statements associated with that case is executed.





10. . An IF-ELSE statement is also called ________________.





11. . An IF statement in Java is also a ________________statement.





12. . An ELSE statement must be preceded by ________statement in Java.





13. . The condition of an IF statement evaluates to boolean only if the expression contains?





14. . Which of the following is not a decision making statement?





15. . Which of these are selection statements in Java?





16. . Which of the following for loop declaration is not valid?





17. . ______________ is not a flow control statement in Java.





Contents Copyrights Reserved By T4Tutorials