Question)Assume x = 6 and y = 7 .What is the result of (!(y == x))
Options)
Explanation) The answer is pretty straight forward . x=6 and y=7 so y == x is false. Negation ( ! ) of false is true and hence our final result is True. Remember brackets have higher preference than any of the operators.
Options)
- True
- False
Explanation) The answer is pretty straight forward . x=6 and y=7 so y == x is false. Negation ( ! ) of false is true and hence our final result is True. Remember brackets have higher preference than any of the operators.
No comments:
Post a Comment