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
Correct Answer:
Verified
Q42: What is the rule for lining up,
Q46: Which of the following statements regarding curly
Q48: if (a > 10)
if (b > 10)
if
Q52: if (amount > 1000)
result = 1;
else
if (amount
Q53: switch (phoneDigit)
{
case 1:
num =
Q53: if (aValue < largest ) result =
Q56: if (examScore > 89)
grade = 'A';
Q56: if (a > 10)
if (b > 10)
if
Q59: if (examScore > 89);
grade = 'A';
Using
Q60: Placing a semicolon onto the end of
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents