English

If (a < b andand a < c) (where a, b and c are three integer numbers) - Computer Applications

Advertisements
Advertisements

Question

If (a < b && a < c)

(where a, b and c are three integer numbers)

Options

  • a is the greatest number

  • a is the smallest number

  • b is the greatest number

  • None

MCQ

Solution

a is the smallest number

Explanation:

Assuming the && operator returns 'true', both criteria (a < b) and (a < c) should be true. Hence, an is the smallest of the three numbers.

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. 5. | Page 98
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×