मराठी

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×