English

A method can return ______ (one/multiple) variables.

Advertisements
Advertisements

Question

A method can return ______ (one/multiple) variables.

Fill in the Blanks
Advertisements

Solution

A method can return one variables.

Explanation:

A method can return only one value using the return statement.
If multiple values are needed, they can be returned by using an array or an object.

shaalaa.com
  Is there an error in this question or solution?
Chapter 3: User-Defined Methods - Exercises [Page 91]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 3 User-Defined Methods
Exercises | Q 2. (v) | Page 91
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×