We can use a switch statement to switch on strings.
举一反三
- 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.
- In a switch statement _________.
- When we press on strings, we should use the______ of the finger.
- The switch statement with different functions from the statement if (a == 1) a = b; else a ++; is ( ). A: switch(a) { case 1:a=b;break; <br/>default : a++; <br/>} B: switch(a==1) { case 0:a=b;break;<br/>case 1: a++;<br/>} C: switch(a) { default:a++;break; <br/>case 1:a=b; <br/>} D: switch(a) { default:a++;break; <br/>case 1:a=b; <br/>}
- 中国大学MOOC: We can use songs, speeches and company mission statement to motivate employees to work hard.