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
Q39: When you compare characters stored in char
Q40: Which of the following is NOT one
Q41: if (value1 > value2) largestOne = value1;
Else
If
Q42: What is the rule for lining up,
Q43: When you place an if statement within
Q45: switch (phoneDigit)
{
case 1: num = 1;
break;
case
Q46: Which of the following statements regarding curly
Q47: Which of the following statements is NOT
Q48: if (amount > 1000)
result = 1;
Else
if
Q49: if (a > 10)
if (b >
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