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
Answer: B
You might also like to view...
Problems using switch logic to deal with many objects of different types do not include:
a. Forgetting to include an object in one of the cases. b. Having to update the switch statement whenever a new type of object is added. c. Having to track down every switch statement to do an update of object types. d. Not being able to implement separate functions on different objects.
What is the job of the return statement?
What will be an ideal response?
Footers are not automatically created for you like headers. If you want to insert a footer on your form, you need to do so in Layout view
Indicate whether the statement is true or false
When you ________ a file that is in Compatibility Mode, you change its version to Word 2013
Fill in the blank(s) with correct word