English

If ((p > q) andand (q > r)) then: (where p, q and r are three integer numbers) - Computer Applications

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?
Chapter 1.08: Conditional Statements in Java - EXERCISES [Page 98]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.08 Conditional Statements in Java
EXERCISES | Q I. 3. | Page 98
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×