Download Class 10 Computer Applications Concept Summaries: ICSE Class 10 Computer Applications Chapter 04 Functions Notes and Important Questions with Answers
Explore reliable concept summaries and revision materials through the ICSE Class 10 Computer Applications Chapter 04 Functions Notes and Important Questions with Answers. Tailored for Class 10 learners, utilizing these notes for Computer Applications Chapter 04 Functions ensures thorough preparation and strengthens core academic definitions before final evaluations.
Access Chapter 04 Functions Notes and Study Material
Access the complete concept summary PDF for Chapter 04 Functions below. Regular review of these targeted notes builds familiarity with complex Class 10 Computer Applications themes and helps secure higher marks in final school evaluations.
These ICSE Class 10 Computer Applications notes on Functions cover key terms with 37 solved questions. They explain pure and impure functions, function prototype and signature, call by value and call by reference, static methods and function overloading, with complete Java programs.
Important Terms and Definitions
1. A function, also called a Method, is a block that contains executable instructions within { }, to perform specific task.
2. A function returns value which may be used for further computation.
3. Function exist as a member of a class.
4. The purpose of using function is (i) to hide implementation details, (ii) to use codes and (iii) to handle complex situation in a problem.
5. A function may be classified as (i) Pure or (ii) Impure.
6. A pure function is one which may have a return value; but cannot change the state of the parameters. It is also known as Accessor.
7. A pure function can receive values for the parameters of an object, may have a return value, but cannot change the state of the parameters of the object.
8. A function which can return value and also may change the state of an object is called Impure function or updater or mutator.
9. Impure functions are used to reset the values of the parameters.
10. A function may be defined anywhere in a program.
11. In Java, a function may be defined anywhere inside its class, either before or after the code that calls it.
12. A function name must be valid identifier and meaningful.
<access-specifier> <modifier> <return type> <Function Name> (<Parameter List>)
{
Body of a Function
}14. Access-specifier may be public, private, protected or friendly (by default).
15. Modifier may be static, final, etc.
16. Return type may be any valid type of value. It is 'void' type when no value is to be returned.
17. The parameter list is enclosed within parentheses ( ). It indicates the number, symbols and datatypes of the parameters.
18. Argument and parameter are loosely used for each other. But there is a slight difference between them. An argument is a value of a specific data type. The value is passed to the parameter which represents it. This is done during program execution.
19. During execution of a function, the value of the argument is referenced by the respective parameter symbol.
20. During method invocation, arguments are to be passed matching the number, datatype and order of the parameters in the list of the method.
21. If datatypes of the arguments are not same, they must at least be convertible to the defined type in the parameter list, by type casting.
22. During processing, specific values are provided to the parameters.
23. For substituting definite values to the parameters, the function must be called appropriately.
24. Before calling the function, variables in the form of parameters are required to be initialised.
25. Every function is said to have a signature, which refers to the number and datatypes of the parameters.
26. Values are passed to the function through the arguments.
27. Primitive type values are 'passed by value'.
28. Reference types, i.e. objects, arrays, are 'passed by reference'.
29. Thus, call by value and call by reference are the two ways of calling functions.
30. A Function Prototype is the first introduction of a function definition with
(i) return type,
(ii) number of parameters, and
(iii) the type of each parameter.
31. Function signature is a part of the function prototype.
32. In pass by value (also known as call by value) process, a working copy of the called function prototype is created with variable names different from the parameter list. The values actually transmitted are substituted in these variables.
33. In pass by reference (also known as call by reference), the reference of the passed variable, an array or object whatsoever may be is transmitted to the actual original copy of the function prototype.
34. The value of the function is returned through the return statement.
35. The function which does not return any value is referred as a 'void' function, which has 'void' as its return type.
36. When in a class, the same function name is used in defining more than one function (with same scope) which are distinct and distinguishable either by number or types of parameters, the process is said to be Function Overloading.
37. The Math class, which provides mathematical functions, belongs to the java.lang package. For using this class, java.lang.Math should be included (imported) in a program.
Questions with Answers
Question 1. What is function prototype?
Answer:
It is declaration of a function or, defining a function. A function prototype is the statement that is the first declaration of a function's name, its return type, the number and datatype and list of parameters.
Question 2. What is function signature?
Answer:
It is a part of the function prototype. It consists of the (i) number and (ii) types of the parameters of the function.
Question 3. What is the keyword that causes the control to transfer back to a function call?
Answer:
return
Answer:
| Pure Function | Impure Function |
|---|---|
| 1. Receives values of the parameters and may return a value. | 1. Receives values of the parameters and may return a value. |
| 2. State of the object does not change. | 2. The state of an object may change. |
Question 5. Mention three purposes served by functions.
Answer:
(i) Hide details of implementation,
(ii) Tackles complicated part of a problem,
(iii) Enhances code reusability.
Question 6. Where are the functions located?
Answer:
Inside classes.
Question 7. How is the type of return of a function which does not return any value referred as?
Answer:
void
Question 8. How are the parameters in the signature of a function separated by?
Answer:
By commas (,)
Question 9. What class members are not accessible directly by a static method of the class?
Answer:
Non-static members of the class.
Question 10. What purpose is served by a Function?
Answer:
Execute instructions to take specific actions.
Question 11. What is function reusability?
Answer:
A function once written, can be used many times.
Question 12. Illustrate, by an example, showing that a function executes hiding the complicate inner steps.
Answer:
Math.sqrt (2) finds square root of 2.
Question 13. How many value or values can a function return after each execution?
Answer:
None (void type function) or one value.
Question 14. Which type of function can be used in assignment statement?
Answer:
Function that returns some value.
Question 15. What are formal parameters?
Answer:
Parameters in the function prototype.
Question 16. What are actual parameters?
Answer:
The parameters in function call.
Question 17. In which type of function call does the data remain unaltered in the actual parameters?
Answer:
Call by value.
Question 18. In which type of function call are the data in the actual parameters altered?
Answer:
Call by reference.
Question 19. Distinguish between (a) call by value (b) call by reference.
Answer:
In call by value, the function called first creates one workcopy of its prototype and then copies the passed values in the function parameters. If there are changes, those remain in the workcopy and the original data remains unaltered.
Whereas, in call by reference, the called function passes the reference to the parameters in the original copy, having access to the original data. If there are changes, those are reflected in the original data.
Question 20. How are the following datatypes passed to functions?
(i) Primitive types?
(ii) Reference types?
Answer:
(i) Passed by values; (ii) Passed by reference (address)
Question 21. What is meant by passing value by address?
Answer:
It is same as passing variable by reference.
When a variable (or parameter) is declared, a place in the computer memory is reserved to take its value. This place has an address. So, a memory address is assigned to each variable.
When a variable is passed by address (or reference), instead of the value of the variable, its address is copied in the method. This changes the variable in the receiving function, which remains in effect in the calling function. Thus, the state of the function is altered.
Question 22. Distinguish between (i) static variable (ii) instance variable.
Answer:
A static variable of a class has a single field or copy in the memory and all objects have to share it. An instance variable is one data variable of a class whose multiple copies, as per necessity may be created, one for each object of the class.
public class VariableType {
public int x = 2;
public static float y = 10.0f;
public short z = 6;
}(i) Which is the class static variable?(ii) Which are the instance variables?
Answer:
(i) y
(ii) x & z.
Question 24. What is a static method?
Answer:
It is a class method which is called by the class itself and not by any instance of the class.
Answer:
class demoPureImpure {
public float x, y, z;
public demoPureImpure ( )
{
x = 12.0f; // Initialization
y = 57.0f;
z = 0.0f;
}
public float mult (float a, float b)
{
return (a * b); // Pure function
}
public void mult ( )
{
z = x * y; // Impure function
}
public void show ( )
{
System.out.println ("product of x and y = \t" + x * y); // Pure function
}
}
Question 26. Distinguish between (i) formal, and (ii) actual parameters.
Answer:
Formal parameters are those that appear in function prototype (definition).
Actual parameters are those which appear in the function call.
Question 27. The reference type string objects are passed by reference. But, if there is any change, it is not reflected back to the string. Explain, why this is so.
Answer:
The string objects are immutable. Once created, they cannot be changed, although they are passed by reference.
import java.util.*;
class findDateTime {
public static void main (String args[ ]) {
Date dateTime = new Date ( );
System.out.println ("Date and Time is =" + dateTime);
}
}(a) What does the following line do, in the program:Date dateTime = new Date ( );
(b) What will be the output of the program on 24th August at 10.15 P.M.?
Answer:
(a) It creates a Date object named dateTime and initialises it with system date and time.
(b) The program prints the day, month, date, time (24-hour format), time zone and year, e.g. Date and Time is =Tue Aug 24 22:15:17 EST (followed by the year).
(i) Define a method called howDoYouDo in a class demoMethodCall which has no parameter, no return value. Write the body of the method to just print "How do you do?".
(ii) To compute sin 70.
(iii) To generate at random an integer from 1 to 100.
Answer:
(i)
public class demoMethodCall {
public void howDoYouDo ( ) {
System.out.println ("How do you do?");
}
}(ii) Math.sin (70 * Math.PI / 180);
(iii) int number = 1 + (int) (100 * Math.random ( ));
Question 30. When same function name is used in multiple definition, what enable to distinguish them from one another?
Answer:
Their signatures, i.e. number and types of parameters.
Question 31. What is Function Overloading?
Answer:
When a computer language permits the use of a function name in several method definitions, which are distinguishable by the difference in number or types of parameters, the process is called Function Overloading.
Answer:
class volume {
public double vol (int edge) {
double c = edge * edge * edge;
return c;
}
public double vol (double rad) {
double s = (4 / 3.0) * Math.PI * rad * rad * rad;
return s;
}
public double vol (double l, double b, double h) {
double cuboid = l * b * h;
return cuboid;
}
}
Answer:
Function overloading is a feature that allows more than one function to share a common name, differing in signature, i.e. number and types of parameters.
Example:
void area (double r)
{
...
}
void area (int b, int h)
{
...
}
void area (float p, float q)
{
...
}
findthis a = new findthis ( );
findthis b = new findthis ( );
a.x = 10;
b.x = 15;
a.y = 5;
b.y = 4;
System.out.println ("a.x = " + a.x);
System.out.println ("a.y = " + a.y);
System.out.println ("b.x = " + b.x);
System.out.println ("b.y = " + b.y);Answer:
a.x = 10
a.y = 5
b.x = 15
b.y = 4
Answer:
public class swap {
int x, y;
public swap (int p, int q) {
x = p;
y = q;
}
public void interChange ( ) {
int temp = x;
x = y;
y = temp;
System.out.println (x + "\t" + y);
}
}
Question 36. Write two advantages of using functions in a program.
Answer:
(i) Function hides implementation details.
(ii) It allows reusability of code.
Question 37. Give the prototype of a function check which receives a character ch and an integer n and returns true or false.
Answer:
boolean check (char ch, int n)
Free study material for Computer Application
Download ICSE Revision Notes: Class 10 Computer Applications Chapter 04 Functions
Download Chapter Summary: Class 10 Computer Applications Chapter 04 Functions
Review targeted chapter notes for Class 10 Computer Applications Chapter 04 Functions. Built according to official ICSE guidelines, these summaries highlight high-yield topics frequently tested in school evaluations.
Concept Clarification for Chapter 04 Functions
Each chapter summary is structured around standard ICSE textbooks, allowing students to check their understanding and clarify complex ideas early in their revision.
Additional Study Resources for Class 10 Computer Applications
Explore our broader library of printable assignments, chapter notes, and mock tests designed to support continuous revision and secure higher marks in ICSE assessments.
FAQs
You can download the teacher prepared revision notes for ICSE Class 10 Computer Applications Chapter 04 Functions Notes and Important Questions with Answers from StudiesToday.com. These notes are designed as per 2026-27 academic session to help Class 10 students get the best study material for Computer Applications.
Yes, our ICSE Class 10 Computer Applications Chapter 04 Functions Notes and Important Questions with Answers include 50% competency-based questions with focus on core logic, keyword definitions, and the practical application of Computer Applications principles which is important for getting more marks in 2027 ICSE exams.
Yes, our ICSE Class 10 Computer Applications Chapter 04 Functions Notes and Important Questions with Answers provide a detailed, topic wise breakdown of the chapter. Fundamental definitions, complex numerical formulas and all topics of ICSE syllabus in Class 10 is covered.
These notes for Computer Applications are organized into bullet points and easy-to-read charts. By using ICSE Class 10 Computer Applications Chapter 04 Functions Notes and Important Questions with Answers, Class 10 students fast revise formulas, key definitions before the exams.
No, all study resources on StudiesToday, including ICSE Class 10 Computer Applications Chapter 04 Functions Notes and Important Questions with Answers, are available for immediate free download. Class 10 Computer Applications study material is available in PDF and can be downloaded on mobile.