chapter user defined methods
chapter user defined methods
1. double
2. class
3. float
4. void
1. actual parameters
2. formal parameters
3. informal parameters
4. void parameters
5) The parameters that are passed to the method when it is invoked are called ...........
1. formal parameters
2. actual parameters
3. informal parameters
4. void parameters
1. pure method
2. impure method
3. perfect method
4. imperfect method
1. Windows
2. Multiple programs
3. Class
4. Method or block it is declared in
8) The technique in which the change in the formal parameter gets reflected in the actual
parameter is known as ...........
1. call by reference
2. call by value
3. call by argument
4. call by method
9) In which technique are the values of actual parameters copied to the formal
parameters?
1. call by reference
2. call by value
3. call by argument
4. call by method
1. many method
2. multiple method
3. void method
4. overloaded method
16)In Java, all primitive types are passed by value and all reference types are passed by
reference.
17) You can place the return statement in a void method without any expression.
18)If a method returns a value, then it must be of the same data type as defined in the method
prototype.
22)The scope of a local variable is limited to the method or the block it is declared in.
24)An impure method always returns the same value when the same arguments are given.