Page 284 - ComputerScience_Class_11
P. 284
Unsolved Questions
A. Tick ( ) the correct option.
1. The return value is ………………… if n = 4
public int twice (int n)
{
int tw = n * 2;
return tw;
}
a. 8 b. 4
c. 2 d. None of these
2. ………………… is a part of method header containing only the name of the method along with parameter list.
a. Method Header b. Method Footer
c. Method Signature d. None of these
3. Which of the following is/are access specifiers?
a. public b. private
c. protected d. All of these
4. The keyword ………………… allows only the methods to be accessed by the any class.
a. public b. private
c. protected d. None of these
5. input(num): Here num is the ………………… .
a. parameter b. argument
c. method d. None of these
6. The parameters that receive the values from the caller program are known as ………………… parameters.
a. Actual b. Formal
c. Both a and b d. None of these
7. The ………………… data members are sent as parameters in Pass By Value.
a. Derived b. primitive
c. Both a and b d. None of these
8. Methods that does not change the values that are passed to it known as ………………… .
a. Impure method b. Static method
c. Pure Method d. All of these
9. A class consists of characteristics and behaviour which are used to create ………………… .
a. Method b. Constructor
c. External Wrapper d. Objects
10. The type of constructor that is created automatically ………………… .
a. Non-Parameterised constructor b. Default Constructor
c. Parameterised Constructor d. None of these
B. Fill in the blanks.
1. A ………………… is a member function having the same name as that of a class and is used to initialise the instance variables of the
objects that are created.
2. The ………………… method uses only static data members.
3. The non-static data member that is created whenever any object is generated ………………… .
4. ………………… are variables described within a class and can be used to store values whenever required.
5. The two parts of a class are ………………… and ………………… .
6. The ………………… operator, which is used to create an object or an array, allocates space in memory for storing data members of
the object or array elements.
282 Touchpad Computer Science (Ver. 3.0)-XI

