Solved

Switch (PhoneDigit)

Question 45

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents