CBSE Class 11 Computer Science Functions Notes Set B

Download the latest CBSE Class 11 Computer Science Functions Notes Set B in PDF format. These Class 11 Computer Science revision notes are carefully designed by expert teachers to align with the 2025-26 syllabus. These notes are great daily learning and last minute exam preparation and they simplify complex topics and highlight important definitions for Class 11 students.

Chapter-wise Revision Notes for Class 11 Computer Science Chapter 7 Functions

To secure a higher rank, students should use these Class 11 Computer Science Chapter 7 Functions notes for quick learning of important concepts. These exam-oriented summaries focus on difficult topics and high-weightage sections helpful in school tests and final examinations.

Chapter 7 Functions Revision Notes for Class 11 Computer Science

 Function: A function is a named unit of a group of statements that can be invoked from other parts of the program. The advantages of using functions are:

• Functions enable us to break a program down into a number of smaller and smaller and simpler units. This makes the program more organized and structured and easier to debug.

• It helps in reusability of code and thus reduces program size. If similar code is required at several places in the program, the use of a function allows this code to be written just once, and to be called wherever it is required.

• It helps to execute the same set of statements with different set of values. 

Function Declaration/Prototype: Just as any variable is declare before it is used in a program, it is necessary to declare a function to inform the compiler that the function would be referenced at a later point in the program. Function declaration is also called function prototype.

Syntax for function declaration:

<return type> <function name> ( <data type of parameter> [<parameter name>], …. );

Example: int sum ( int, int);

A declaration (prototype) tells the compiler that later on in our program we are going to write a particular function. It also informs the compiler about:

1. the type of result to be returned;

2. the identifier of the function;

3. the number and types of parameters;

It is terminated by a semicolon.

<return type>: It is the data type of the value that is returned to the calling function after the function is executed. It can be any of the data types, available in C++.

<function name>: It is the name of the function, which is given with accordance to the naming conventions used for naming an identifier. A function is called with the help of it’s name.

<data type of parameter>: These are the data types of the parameters/inputs that the function receives when it is called. In function declaration it is optional to give the name of the parameters. The different data types specify to the compiler, the total number of parameters, and the data type of these parameters that the function will receive, when it is called (invoked).

Function definition: The function definition contains the function header and the function body i.e. the set of statements which are executed when the function is called.

Syntax for function definition:

<return type> <function name> (<data type of parameter> <name of <parameter>, …. )

{

Statement 1;

Statement 2;

:

return ( value / variable / expression );

}

Example:

int sum ( int a, int b)

{

int s = a + b;

return s;

}

Note: The return statement is used to return a value to the calling function. It is always the last statement in the function definition (if the function has return type). The data type of the value returned should match with the return type of the function.

// Example 1

// Program to find the factorial of a number using a function Fact ()

#include<iostream.h>

#include<conio.h>

long Fact( long); // Function Prototype

void main()

{

long num;

clrscr();

cout<<”\n\tEnter a No. : “;

cin>>num;

cout<<num<<”! = ”<<Fact(num); // Function call with num as an actual parameter

getch();

}

// Definition of function

long Fact (long N) // Function header with as a Formal parameter

{

long I, f=1;

Function Body

for( i=1; i<=N; i++)

f = f * i;

return f;

}

class_12_computer_concept_5

Order of Execution in the above program

main() // Execution starts from the main()

Function call to Fact() // Control is passed to the function definition of Fact()

Execution of the Fact() // All the statements in the function Definition of Fact() are executed

Execution of statement getch() // Control returns to the main(), to the statement which follows the function call statement of Fact()

Function Header: It is the first line of the function definition, which specifies the following:

• Return type of the function

• Name of the function

• Name of the parameters, along with their data types 

Note: It is not terminated with semicolon.

Function Body: It is the set of statements, which are executed when the function is called.
 
Function Call: It is the statement in the calling function, through which the control is passed to the function definition of another function. This will execute the statements is the called function and then the control is returned back to the statement in the calling function, which follows the function call statement. The function call consists of the function name, followed by actual parameters, if any, enclosed in parentheses.
 
Calling Function: The function, which calls a function is called the calling function. In the above example main() is the calling function.
 
Called Function: The function which is called by anther function is known as the called function.
 
Formal Parameter: The parameters mentioned in the function header are called formal parameter.
 
Actual Parameter: Values/Variables which are used while making a call to the function are called actual parameter.
 
Difference between call by value and call by reference

 CBSE Class XI Computer Science Functions (1) 1

// Program to illustrate the invoking of a function using call by value
// and call by reference methods
#include<iostream.h>
#include<conio.h>
// Function to swap the values of two variables,
// where both the parameters are value parameters
void swapv ( int a, int b)
{
int temp = a;
a = b;
b = temp;
cout<<” Displaying the formal parameters of swapv () function “<<endl;
cout<<a<<”\t”<<b<<endl;
}
// Function to swap the values of two variables,
// where both the parameters are variable parameters
void swapr( int&b, int&b)
{
int temp = a;
a = b;
b = temp;
cout<<” Displaying the formal parameters of swapr () function “<<endl;
cout<<a<<”\t”<<b<<endl;
}
void main()
{
clrscr();
int x=5, y=7;
swapv(x,y);
cout<<”The values of actual parameters after calling the swapv() function”<<endl;
cout<<x<<”\t”<<y<<endl;
swapr(x,y);
cout<<”The values of actual parameters after calling the swapr() function”<<endl;
cout<<x<<”\t”<<y<<endl;
getch();
}
CBSE Class XI Computer Science Functions (1) 2
Please click the link below to download pdf file for CBSE Class XI Computer Science Functions

CBSE Class 11 Computer Science Chapter 7 Functions Notes

Students can use these Revision Notes for Chapter 7 Functions to quickly understand all the main concepts. This study material has been prepared as per the latest CBSE syllabus for Class 11. Our teachers always suggest that Class 11 students read these notes regularly as they are focused on the most important topics that usually appear in school tests and final exams.

NCERT Based Chapter 7 Functions Summary

Our expert team has used the official NCERT book for Class 11 Computer Science to design these notes. These are the notes that definitely you for your current academic year. After reading the chapter summary, you should also refer to our NCERT solutions for Class 11. Always compare your understanding with our teacher prepared answers as they will help you build a very strong base in Computer Science.

Chapter 7 Functions Complete Revision and Practice

To prepare very well for y our exams, students should also solve the MCQ questions and practice worksheets provided on this page. These extra solved questions will help you to check if you have understood all the concepts of Chapter 7 Functions. All study material on studiestoday.com is free and updated according to the latest Computer Science exam patterns. Using these revision notes daily will help you feel more confident and get better marks in your exams.

Where can I download the latest PDF for CBSE Class 11 Computer Science Functions Notes Set B?

You can download the teacher prepared revision notes for CBSE Class 11 Computer Science Functions Notes Set B from StudiesToday.com. These notes are designed as per 2025-26 academic session to help Class 11 students get the best study material for Computer Science.

Are these Computer Science notes for Class 11 based on the 2026 board exam pattern?

Yes, our CBSE Class 11 Computer Science Functions Notes Set B include 50% competency-based questions with focus on core logic, keyword definitions, and the practical application of Computer Science principles which is important for getting more marks in 2026 CBSE exams.

Do these Class 11 notes cover all topic-wise concepts for Computer Science?

Yes, our CBSE Class 11 Computer Science Functions Notes Set B provide a detailed, topic wise breakdown of the chapter. Fundamental definitions, complex numerical formulas and all topics of CBSE syllabus in Class 11 is covered.

How can I use CBSE Class 11 Computer Science Functions Notes Set B for quick last-minute revision?

These notes for Computer Science are organized into bullet points and easy-to-read charts. By using CBSE Class 11 Computer Science Functions Notes Set B, Class 11 students fast revise formulas, key definitions before the exams.

Is there any registration required to download Class 11 Computer Science notes?

No, all study resources on StudiesToday, including CBSE Class 11 Computer Science Functions Notes Set B, are available for immediate free download. Class 11 Computer Science study material is available in PDF and can be downloaded on mobile.