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.
- The body of a while loop can contain at most one "break" statement and at most one "pass" statement.
- What is the following statement about continue statement that is correct? 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 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.
- Accounts payable appear on which of the following statements? ( ) A: Balance sheet. B: Income statement. C: Statement of owner's equity. D: Statement of cash flows.
内容
- 0
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
- 1
Translate the following sentence into Chinese."A profit statement is also known as a profit and loss statement, an income statement, an income and expense statement or an operating statement."
- 2
For a job application, you can include a number of elements from your PEP in your personal statement. Which element of your PEP would you NOT include in your personal statement?( ) A: Enterprise statement B: Positioning statement C: Strengths D: 720 feedback E: Identity statement
- 3
Suppose you are applying to Harvard and you are asked to provide a personal statement. Which sentence below could appear in your personal statement?
- 4
The simplest C selection statement is the one-way if statement.
