Computer Applications
The advantage/s of user-defined methods are/is:
(i) Reusability
(ii) Complexity
(iii) Modularity
- Only (i)
- (ii) and (iii)
- Only (iii)
- (i) and (iii)
User Defined Methods
10 Likes
Answer
(i) and (iii)
Reason — User-defined methods promote reusability by allowing code to be written once and used multiple times, reducing redundancy. They also support modularity by breaking a program into smaller, manageable, and logically separate units, making it easier to understand, maintain, and debug.
Answered By
5 Likes
Related Questions
What is the type of error, if any, when two methods have the same method signature?
- Runtime error
- Logical error
- Syntax error
- No error
Parameters which receive the values from the called method are termed as …………… parameters.
- actual
- formal
- reference
- class
Which of the following is a valid method prototype?
- public int perform (int a;int b)
- public perform (int a, int b)
- public int perform (int a, int b)
- public perform int (int a, int b)
Which of the following is the CORRECT statement to invoke the method with the prototype int display(int a, char ch)?
- int m = display('A', 45);
- int m = display( );
- int m = display(A,45);
- int m = display(45,'A');