Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

User Defined Method - 01

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

What is the return type of a method that does not return any value?

a)

int

b)

float

c)

void

d)

double

2.

What is the process of defining more than one method in a class differentiated by method signature?

a)

Function Prototype

b)

Function overloading

c)

Function doubling

d)

None of the mentioned

3.

First line of a method which defines its name, return-type and list of parameters is known as ______________.

a)

Function Prototype

b)

Function Signature

c)

Function Declaration

d)

None of these

4.

"void" and "return" can not be used together?

a)

True

b)

False

5.

Numbers and types of arguments used to define a method forms __________________.

a)

Function Signature

b)

Function Prototype

c)

Actual Parameter

d)

None of these

6.

Parameters used to define a method are known as ________________.

a)

Actual Parameter

b)

Formal Parameter

c)

Dummy Parameter

d)

None of these

7.

Parameters used to call a method are known as ____________

a)

Actual Parameter

b)

Formal Parameter

c)

Dummy Parameter

d)

None of these

8.

During method call value or address of Actual parameter are copied to formal parameter?

a)

True

b)

False

9.

Three jump statements of java are break, continue and _______________?

a)

void

b)

return

c)

static

d)

public

10.

A method may have any number of return statement?

a)

True

b)

False

11.

A method may return any number of values?

a)

True

b)

False

12.

The method which does not change value of its arguments, are known as _____________?

a)

Pure Method

b)

Impure Method

c)

Computational Method

d)

Procedural Method

13.

Calling of a method using arguments of primitive data type is known as ___________"

a)

Call by Reference

b)

Call by Value

c)

Pure Method

d)

Impure Method

14.

In "Call by value" value of actual parameters are not modified?

a)

True

b)

False

15.

Function Overloading is used to implement concept of ____________?

a)

Data Abstraction

b)

Inheritance

c)

Polymorphism

d)

Encapsulation