Given the code fragment: What is the result?
A.
Found Red Found Blue
B.
Found Red Found Blue Found White
C.
Found Red Found Blue Found White Found Default
D.
Found Red
Given the code fragment: What is the result?
A.
Found Red Found Blue
B.
Found Red Found Blue Found White
C.
Found Red Found Blue Found White Found Default
D.
Found Red
A
Answer: A
Explanation:
In case “Red” the break key word is missing and even if the second case does not match the color value the code will be executed.