A: When a multi-level loop is nested, all levels of the loop can be closed by using a single continue statement.
B: The continue statement can be used in loops and switch statements.
C: The continue statement closes the loop early to prevent it from becoming a dead loop.
D: The continue statement can only be used in three loop statements.
举一反三
- Which of the following statements about break statements is incorrect? A: A break statement can appear in an if statement and is used to end the if statement. B: A break statement can appear in a loop statement or a switch statement. C: A break statement can be used to exit a switch statement. D: Multiple break statements can appear in the loop body of a loop statement.
- The loop body in a loop statement is allowed to contain more than one statement, which can not appear as a compound statement.
- Among the following options, the correct descriptions inclue ______. A: pass represents an empty operation, only plays a place-occupied role B: pass can only be used in conditional statements C: For the statement sequence under if, it is allowed that there is only one pass statement D: pass can be used to jump out of the loop statement
- Use the 'iterate'<br/>statement for the current loop statement to jump out of the loop.( <br/>)
- Which one of the following statements is correct? A: do statement cannot be replaced by the other iteration statements. B: do statement can only be terminated by break statement. C: do statement will be terminated when its controlling expression is non-zero. D: do statement will be terminated when its controlling expression is zero.
内容
- 0
The body of a while loop can contain at most one "break" statement and at most one "pass" statement.
- 1
Are the following statements about copyrights and patents acquired from an independent third party, correct or incorrect Statement 1: Copyrights and patents are tangible assets that can be separately identified. Statement 2: Purchased copyrights and patents are amortized on a straight line basis over 30 years. Statement 1 Statement 2()①A. Incorrect Correct ②B. Correct Incorrect ③C. Incorrect Incorrect A: ① B: ② C: ③
- 2
Two statements about spreadsheets follow.<br/>Is each statement true or false? A: Statement 1 is true, Statement 2 is false B: Both statements are true C: Statement 1 is false, Statement 2 is true D: Both statements are false
- 3
The balance sheet is one of the three (income statement and statement of cash flows being the other two) core financial statements used to evaluate a business.
- 4
7.In this logic structure, one program statement follows another. A: Sequential B: Selection C: Loop D: Random