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, when phoneDigit has a value of 'Q', what value is stored in num?
A) 1
B) 0
C) Q
D) not enough information given
Correct Answer:
Verified
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
Q44: 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 >
Q50: When a single variable may need to
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