Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Functions Class 11 Computer Science Chapter 7 CBSE Notes 2025-26

ffImage
banner
widget title icon
Latest Updates

Computer Science Notes for Chapter 7 Functions Class 11- FREE PDF Download

CBSE Class 11 Computer Science Notes Chapter 7 are designed to make your exam revision easier. This chapter covers essential concepts and practical knowledge about functions, helping you build a solid understanding to excel in your Computer Science exams.


All important topics of Chapter 7 are summarized clearly, including function definitions, parameters, and their applications. You’ll find these notes helpful for quick recall and structured learning before your CBSE exams.


Vedantu’s revision notes make your study plans more efficient, giving you confidence with concise explanations and easy-to-understand language. Prepare smarter and get ready for your Class 11 Computer Science assessments comfortably.


Revision Notes for Class 11 Computer Science Chapter 7 Functions

Functions are an important concept in Python programming, helping you write simple, organized, and reusable code. When problems get complicated, a program can become lengthy and difficult to manage. To avoid this, complex problems are divided into smaller parts called functions. Each function carries out a specific task, making the code cleaner and easier to debug. In modular programming, functions are reused and managed easily, perfect for large programs.

What is a Function?

A function is a named group of instructions that carries out a particular job. Once a function is defined, it can be used multiple times without rewriting the code every time. This saves effort and reduces errors. Functions improve readability by allowing you to focus on one task at a time, instead of juggling lines of code for many processes at once.

Why Do We Need Functions?

Functions make your code shorter and easier to test. For example, if a company needs to calculate the cost of different types of tents, many calculations will repeat for every type. Using functions avoids repeating the same formula everywhere, allowing you to reuse code and quickly make changes in just one place. Functions also let team members work independently on different parts of a larger project.

  • Shorter, more readable code
  • Easy code reuse—no need to rewrite formulas
  • Debugging is easier—changes made once update everywhere the function is used
  • Multiple people can work independently on different functions
Structure of a User-Defined Function

A user-defined function in Python is created with the def keyword, followed by the function name and a set of parentheses. The parentheses may contain parameters—inputs required for the task. For example:

def greet():
    print("Hello!")

To use the function, call it by writing its name followed by parentheses, like greet(). You can also create functions that take inputs, called parameters, to work with different values.

Arguments and Parameters

Arguments are values you send into a function, while parameters are the variables that receive those values in the function's header. For example, in addnum(a, b), "a" and "b" are parameters, and when calling addnum(5, 6), 5 and 6 are arguments. Both refer to the same value inside the function during that call.

It’s possible for functions to accept different kinds of inputs, including numbers, strings, or lists. You can even set default parameter values so that if an argument is not provided, the function uses the default.

Functions Returning Values

Functions can return values back to the part of the program that called them. To return a value, the return keyword is used. For example, a function that calculates the square of a number might return the answer, which can then be assigned to a variable or printed. If you want to return more than one value, return them as a tuple, like return (area, perimeter) in a rectangle-calculating function. If there is no return statement, the function gives back "None" by default.

Flow of Execution

The Python interpreter reads your code from top to bottom. Function definitions are not executed unless the function is called. Always define a function before calling it in your program, or Python will show an error saying it doesn't recognize the function name. Once a function is called, control jumps to that function, executes its code, and then returns to where it left off to resume the rest of the program.

Scope of Variables

Variables inside a function exist only while the function runs. These local variables cannot be accessed outside the function. Variables defined outside any function are global and can be used in any function throughout the code. If a local variable shares its name with a global one, the local takes priority in that function. To change the value of a global variable from inside a function, use the global keyword.

  • Global variable: Defined outside all functions; can be used everywhere
  • Local variable: Defined inside a function; exists only in that function
Using Python's Standard Library

Python provides many built-in functions that save programmers time, such as print(), len(), pow(), and many more. These are functions already written, tested, and stored in Python’s standard library. Here are some examples:

FunctionDescriptionExampleOutput
abs(x)Returns the absolute value of xabs(-5.7)5.7
max(a, b,...)Returns the largest valuemax(2,5,10)10
sum(list)Total of values in listsum([1,2,3])6
len(x)Number of items in xlen("Hello")5

You can use these functions directly without importing anything.

Modules in Python

In addition to built-in functions, Python has modules that are collections of related functions. Popular modules are math, random, and statistics. Import a module with import math, then use its functions, like math.sqrt(9) for square root, or random.randint(1,10) for a random number between 1 and 10. To avoid loading an entire module, use from math import sqrt to bring in only the parts you need.

  • math: Functions like ceil(), floor(), pow(), sqrt()
  • random: Functions for randomization like random(), randint(), randrange()
  • statistics: Statistical operations like mean(), median(), mode()
Default Parameters and Docstrings

Functions can have default parameter values, making some arguments optional when calling the function. For example, def greet(name="student"): will use "student" if no name is given while calling. Always put default-valued parameters at the end of the parameter list.

For documentation, multi-line comments called docstrings are inserted at the start of functions or modules using triple double quotes ("""). They help describe what the code does. You can display a module’s docstring with print(module.__doc__).

Sample Programs and Practice

The chapter includes many useful examples and exercises, such as writing functions to add numbers, calculate areas, compute factorials, and more. There's practice in identifying program errors, understanding the difference between arguments and parameters, and experimenting with variable scope. Working with user-defined functions, built-in functions, and modules is essential for mastering Python's approach to structured and efficient programming.


Class 11 Computer Science Chapter 7 Notes – Functions: Key Revision Points

These CBSE Class 11 Computer Science Chapter 7 Functions notes explain how to use and create functions in Python. Learn about arguments, parameters, scope of variables, and the importance of the standard library—all in simple language for quick revision.


Using these revision notes, you'll understand core programming concepts like modular coding and reusability. Grasp the difference between local and global variables, master user-defined functions, and become confident with both built-in and custom functions for exam success.


FAQs on Functions Class 11 Computer Science Chapter 7 CBSE Notes 2025-26

1. How can I use revision notes for CBSE Class 11 Computer Science Chapter 7 to maximize exam marks?

Revision notes help you quickly recap key definitions, stepwise solutions, and diagrams right before the exam. Focus on solved exercises, important terms, and example questions. Use class 11 computer science revision notes to ensure you remember CBSE's presentation style and short points for each topic.

2. What is the most effective way to revise stepwise NCERT solutions in Chapter 7?

Revise stepwise by reading exercise-wise solutions and breaking down each question’s steps. Study the marking scheme and practice presenting points clearly. For long answers, outline your response before writing in full sentences to organize your thoughts efficiently.

3. Are diagrams and definitions mandatory in Computer Science Chapter 7 revision notes?

Yes, include clear diagrams and accurate definitions wherever the NCERT exercise asks for them. Diagrams are often required in theory questions—label neatly and keep them simple. Definitions improve your chance of scoring full marks in short answer sections.

4. Which topics in CBSE Class 11 Computer Science Chapter 7 should I focus on during quick revision?

Focus your revision on these key areas:

  • Important definitions
  • Frequently asked exercise questions
  • Any required diagrams
  • Exam-style solved examples

This ensures you cover major scoring areas for board exams.

5. How do I organize long answers for Class 11 Computer Science Chapter 7 to get better marks?

Structure long answers with a short introduction, main points in bullets or sub-headings, and a short conclusion. Always use keywords and stepwise explanations. Highlight important terms and use neat formatting to help examiners award full marks easily.

6. Where can I find and download free revision notes PDF for Class 11 Computer Science Chapter 7?

You can download the free PDF of Class 11 Computer Science Chapter 7 revision notes from Vedantu. The PDF offers stepwise, exam-focused notes and solutions for quick offline study before school or board exams, following the latest CBSE 2025–26 syllabus.

7. Do examiners give partial marks for correct steps even if the final answer is incorrect in NCERT-based questions?

Yes, CBSE examiners often award partial marks for correct steps if your method and keywords match the marking scheme, even if the final answer is wrong. Always show stepwise solutions for full or partial credit in board answers.