हिंदी

If m, n, p are the three integers, then which of the following holds true, if (m == n) andand (n != p)? - Computer Applications

Advertisements
Advertisements

प्रश्न

If m, n, p are the three integers, then which of the following holds true, if (m == n) && (n != p)? 

विकल्प

  • 'm' and 'n' are equal

  • 'n' and 'p' are equal

  • 'm' and 'p' are equal

  • None

MCQ

उत्तर

'm' and 'n' are equal

Explanation:

The condition (m == n) && (n != p) means:

  • m == n: m and n are equal.
  • n != p: n is not equal to p. 

So, m and n are equal, but n and p are unequal.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.08: Conditional Statements in Java - EXERCISES [पृष्ठ ९८]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.08 Conditional Statements in Java
EXERCISES | Q I. 1. | पृष्ठ ९८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×