Compare how the if statement and the switch statement are alike (site 3 ways). Explain how they’re not alike (site 2 ways).
What will be an ideal response?
The if and switch statements can be used to check integer or character values. The if/else if / else statements correspond to the switch’s case/default statements. The if and switch don’t require that there is an else/default block of code. The if statement can use complicated logic in the conditional statements, switch statements typically do not. The if statement can be used to do string comparisons in their conditional statements, switch statements cannot.
You might also like to view...
Explain why context is a critical first step in tailoring.
What will be an ideal response?
Which of the following is a recommendation for installing SQL Server 2012 for optimal logical security?
A. install it on a dedicated server not shared with other services B. install it on hardware with appropriate physical access controls C. install it on a domain controller D. install it on a server with several other services
A(n) helps the user understand a control’s purpose.
a) Button b) descriptive Label c) output Label d) title bar
JTextArea method _______________ adds text to a JTextArea.
a) include b) append c) add d) inser