हिंदी

When the same method has to be called repeatedly with different values, the method call is placed inside a ______ (loop/conditions).

Advertisements
Advertisements

प्रश्न

When the same method has to be called repeatedly with different values, the method call is placed inside a ______ (loop/conditions).

रिक्त स्थान भरें
Advertisements

उत्तर

When the same method has to be called repeatedly with different values, the method call is placed inside a loop.

Explanation:

A loop (like a for or while loop) is used to repeat a block of code multiple times. Placing a method call inside a loop allows you to run it repeatedly with a new value during each turn, whereas conditions (if-else) only execute a piece of code once.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 3: User-Defined Methods - Exercises [पृष्ठ ९१]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 3 User-Defined Methods
Exercises | Q 2. (vi) | पृष्ठ ९१
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×