Computer Science, asked by amandeep347kaur, 4 months ago

EXERCISE
Part A : Objective Type Questions
1. The header is divided into return type, method name and the parameter list and is called as the
2.
of the method.
(a) exception list
(d) signature
Ans.
3
(d) signature
Ans
.
3. The .........
(d) leave blank
An
(d) Class variables
A
(b) prototype
(c) header
2. The list of parameters along with their data types is called the method.
(a) exception list
(b) prototype
(c) header
type is used if the method does not return any value.
(a) void
(b) null
(c) zero
4.
particular function or block.
(a) Global variables (b) Local variables (c) Instance variables
5. The parameters passed on the method call are called ............................. parameters.
(a) actual
(b) formal
(c) global
(d) local
6.
the current state.
(a) Pure functions (b) Accessor functions (c) Both a and b
7. When the parameters passed are of array or class types, it is known as
(a) call by value
(b) call by reference (c) call by address
8. A function can return maximum ......... ........... value to the called function.
(b) one
(c) zero
(d) None of these
(d) none of these
(a) any
(d) none of these
called method ...........
(a) underloading
(b) overhauling
(c) overloading
(d) all of these
... are those variables that are defined within a method or a block and accessed only within m
are those functions that only return the state of an object and does not make any changes
9. When more than one method with the same name exists in the same program with different signatures, this:​

Answers

Answered by hrmnhoney94
1

Explanation:

  • 1) exception list
  • 2) signature
Similar questions