Computer Applications
Parameters that are passed to the called method during the method call are termed as …………… parameters.
Answer
actual
Reason — Parameters that are passed to the called method during the method call are termed as actual parameters.
These are the real values provided as input to the method.
For example:
public void display(int x) {
System.out.println(x);
}
public static void main(String args[]) {
display(5); // Here, `5` is the actual parameter.
}
Related Questions
Method which reverses a given number is:
- Impure method
- Pure method
- Constructor
- Destructor
Assertion (A): Static method can access static and instance variables.
Reason (R): Static variable can be accessed only by static method.
- Assertion and Reason both are correct.
- Assertion is true and Reason is false.
- Assertion is false and Reason is true.
- Assertion and Reason both are false.
Invoking a method by passing the objects of a class is termed as:
- Call by reference
- Call by value
- Call by method
- Call by constructor
Design a class to overload a function series( ) as follows:
(a) void series (int x, int n) – To display the sum of the series given below:
x1 + x2 + x3 + ………. xn terms
(b) void series (int p) – To display the following series:
0, 7, 26, 63 ………. p terms
(c) void series () – To display the sum of the series given below:
1/2 + 1/3 + 1/4 + ………. 1/10