Use the check mark Squareroot to answer the following questi
Use the check mark (Squareroot) to answer the following questions with either True or False: The label and the result of the control expression in a switch statement cannot be of type float True False If a = 0, b = 0, then the result of the expression !(a | | b) is true True False If a = 0, b = 0 then the result of the expression a | | b b
Solution
Solution:
1)
i) False (because float and non-integral types are not allowed in switch statements)
ii) False (because a=2, means true, hence the expression in the bracket gives true. Not of True will give False)
iii) True (because a=2, means true, hence the expression becomes true)
iv) False (because continue statement only forces the next iteration of the loop to take place and skips the code in between)
