VISUAL BASIC

INTRODUCTION TO NET

APPLICATION DEVELOPMENT

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which two of the following is not a break condition? (Select two)
A
Error status
B
Exception
C
Fail status
D
Warn status
E
Alert status
Explanation: 

Detailed explanation-1: -Answer: Switch case statements are used to execute only specific case statements based on the switch expression. If we do not use break statement at the end of each case, program will execute all consecutive case statements until it finds next break statement or till the end of switch case block.

Detailed explanation-2: -The break statement is frequently used to terminate the processing of a particular case within a switch statement. Lack of an enclosing iterative or switch statement generates an error.

Detailed explanation-3: -The break statement terminates the closest enclosing iteration statement or switch statement. The continue statement starts a new iteration of the closest enclosing iteration statement.

Detailed explanation-4: -The jump statements are the goto statement, the continue statement, the break statement, and the return statement, which are discussed in the following sections.

Detailed explanation-5: -You can use the break statement to end processing of a particular labeled statement within the switch statement. It branches to the end of the switch statement. Without break, the program continues to the next labeled statement, executing the statements until a break or the end of the statement is reached.

There is 1 question to complete.