हिंदी

If int a = 27, b = 4, c = O; then c = a%b; results in 3. - Computer Applications

Advertisements
Advertisements

प्रश्न

If int a = 27, b = 4, c = O; then c = a%b; results in 3.

विकल्प

  • True 

  • False

MCQ
सत्य या असत्य

उत्तर

This statement is True.

Explanation:

The % operator is the modulus (remainder) operator, producing the remainder of a division by b.

  1. When 27 is divided by 4, the quotient is 6, with a leftover of 3.
  2. So, c = 27% 4 gives c = 3. 
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.04: Operators in Java - EXERCISES [पृष्ठ ४३]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.04 Operators in Java
EXERCISES | Q II. 6. | पृष्ठ ४३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×