If you wrote a program asking the user to enter a color (such as red, blue, etc.) would it be possible to use a switch statement to compare the user’s color to a program color? (In other words, could you use as case statement like this? case “red”:)
What will be an ideal response?
No, you could not use string “red” in a case statement. The switch only allows integer or characters to be compared in a case statement.
You might also like to view...
The annotation ________ indicates that a private instance variable should be serialized.
a. XMLElement b. Element c. Marshal d. Serialize
Which of the following are software packages containing drivers, service packs, or security updates that are applied to an image during the offlineServicing configuration pass of the installation.
A. Configuration sets B. Distribution shares C. Image sets D. Offline updates
Explain the difference between the representation of a decision structure and a loop in a flowchart.
What will be an ideal response?
What items are considered to comprise the state of a process?
What will be an ideal response?