WorksheetsUser Defined Method - 01
Total questions: 15
Worksheet time: 15mins
What is the return type of a method that does not return any value?
int
float
void
double
What is the process of defining more than one method in a class differentiated by method signature?
Function Prototype
Function overloading
Function doubling
None of the mentioned
First line of a method which defines its name, return-type and list of parameters is known as ______________.
Function Prototype
Function Signature
Function Declaration
None of these
"void" and "return" can not be used together?
True
False
Numbers and types of arguments used to define a method forms __________________.
Function Signature
Function Prototype
Actual Parameter
None of these
Parameters used to define a method are known as ________________.
Actual Parameter
Formal Parameter
Dummy Parameter
None of these
Parameters used to call a method are known as ____________
Actual Parameter
Formal Parameter
Dummy Parameter
None of these
During method call value or address of Actual parameter are copied to formal parameter?
True
False
Three jump statements of java are break, continue and _______________?
void
return
static
public
A method may have any number of return statement?
True
False
A method may return any number of values?
True
False
The method which does not change value of its arguments, are known as _____________?
Pure Method
Impure Method
Computational Method
Procedural Method
Calling of a method using arguments of primitive data type is known as ___________"
Call by Reference
Call by Value
Pure Method
Impure Method
In "Call by value" value of actual parameters are not modified?
True
False
Function Overloading is used to implement concept of ____________?
Data Abstraction
Inheritance
Polymorphism
Encapsulation
