मराठी

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×