Home / Board / ICSE / important Questions / Class 10 / Computer Application / User - defined Methods
Table of Contents
Ans. (b) int
Explanation:
A static method, or a class method in Java, is a method associated with the class itself rather than with a particular instance of the class.
Ans. (d) Return type ,Name and Inputs to a function
Explanation:
A function prototype is a declaration that specifies details about a function, providing information to the program about the type of value the function returns.
Explanation:
Private methods can be called only in the class in which they are defined. Outside that class they cannot be accessed.
Explanation:
Function overloading implements polymorphism. This means, it is possible to define two or more methods with the same name in the same class. It also reduces the number of comparisons in a program thereby making the program run faster.
Explanation:
class employee
{
private int basic;
public employee(int b)
{
basic = b;
double da, hra, pf, net, gross;
da = (25.0/100.0) * basic;
hra = (15.0/100.0) * basic;
pf = (8.33/100.0) * basic;
net = basic + da + hra; gross = net – pf;
System.out.println(“ Dearness Allowance “ + da);
System.out.println(“ House Rent Allowance “+ hra);
System.out.println(“ Provident Fund “ + pf);
System.out.println(“ Net pay “ + net);
System.out.println(“ Gross Pay “ + gross);
}
}
Download Mind Map of this chapter
Download NowWant to Practice Mock Tests of this chapter
Practice NowDownload Important Questions of this chapter
Download NowChapter No. | Chapter Name |
---|---|
Chapter 1 | Revision of Class IX Syllabus |
Chapter 2 | Class as a Basis of all Computation |
Chapter 3 | User - defined Methods |
Chapter 4 | Constructors |
Chapter 5 | Library classes |
Chapter 6 | Encapsulation |
Chapter 7 | Arrays |
Chapter 8 | String handling |
Chapter Wise Important Questions for ICSE Board Class 10 Computer Applications |
---|
Revision of Class IX Syllabus |
Class as a Basis of all Computation |
User - defined Methods |
Constructors |
Library classes |
Encapsulation |
Arrays |
String handling |
CBSE Important Questions Class 9
CBSE Important Questions Class 10
CBSE Important Questions Class 12
CBSE Practice Papers
CBSE Practice Papers
ICSE Important Questions Class 9
ICSE Important Questions Class 10
ICSE Practice Papers
ISC Important Questions Class 12
ISC Practice Papers
Contact Us