switch (phoneDigit){ case 1: num = 1; break; case 2: num = 2; break; case 3: num = 3; break; case 4: num = 4; break; default: num = 0; break;}
Looking at the example above, what happens if the break is omitted?
A. a syntax error is generated
B. num is always assigned 0
C. num is never assigned a value
D. num is assigned 1
Answer: A
Computer Science & Information Technology
You might also like to view...
Most modern ultrabooks do not contain an optical drive
Indicate whether the statement is true or false
Computer Science & Information Technology
Where is the Template gallery located?
A) Formulas tab B) Data tab C) Backstage D) Insert tab
Computer Science & Information Technology
To launch VBA in Microsoft Excel, click the ________ tab and then click Visual Basic in the Code group
A) DESIGN B) VIEW C) INSERT D) DEVELOPER
Computer Science & Information Technology
Which field property dictates whether the completeness check will trigger an error?
A. Required B. Validation Rule C. Indexed D. Validation Text
Computer Science & Information Technology