Advertisements
Advertisements
Question
If ((p > q) && (q > r)) then:
(where p, q and r are three integer numbers)
Options
q is the smallest number
q is the greatest number
p is the greatest number
None
MCQ
Solution
p is the greatest number
Explanation:
Assuming that the && operator gives 'true', the criteria (p > q) and (q > r) should hold true. Thus, p is the biggest number.
shaalaa.com
Is there an error in this question or solution?