Skip to content
cs2study

cs2study

Computer Science C.B.S.E syllabus

  • Home
  • Python-Class XI
    • Videos
    • PDF/PPT
    • Programs
    • Papers
    • MCQ Quiz
    • Project/Practical File Class XI
    • Online Class-XI
  • Python-Class XII
    • Videos
      • File Handling
      • Python Functions
      • Stack
      • MySQL with Python
      • Videos-Networking
    • PDF/PPT
      • Function
      • Python Modules
      • File Handling
      • Stack and Queue
      • MySQL
      • Networking
    • Programs
      • Function Programs
      • File Handling
      • Stack and Queue
      • MySQL
      • MySQL Connectivity
    • Papers
      • Sample Papers
      • School Papers
      • Assignment/Test
    • MCQ
      • MCQ Quiz
      • MCQ Chapter-wise
    • Projects & Practical Files
    • Board Practical Exam
  • Python-Quick Revision
    • Notes
    • Errors and Outputs
    • Exam Revision Notes
    • Question Bank
  • C++
    • Notes
    • Programs/Questions
    • Project/Practical File C++
  • MySQL Software
  • Syllabus
  • Toggle search form

Function

Posted on By Pallavi S No Comments on Function

FUNCTION– A function is a programming block of codes that is used to perform a single, related task. It only runs when it is called. We can pass data, known as parameters, into a function.

A function can return data as a result. We have already used some python built-in functions like print(), etc. But we can also create our own functions. These functions are called user-defined functions.

Advantages of Using functions:

1.Program development made easy and fast: Work can be divided among project members, thus implementation can be completed fast.

2.Program testing becomes easy : Easy to locate and isolate a faulty function for further investigation

3.Code sharing becomes possible : A function may be used later by many other programs this means that a python programmer can use function written by others, instead of starting over from scratch.

4.Code re-usability increases : A function can be used to keep away from rewriting the same block of codes which we are going use two or more locations in a program. This is especially useful if the code involved is long or complicated.

5.Increases program readability : It makes possible top-down modular programming. In this style of programming, the high-level logic of the overall problem is solved first while the details of each lower-level functions are addressed later. The length of the source program can be reduced by using functions at appropriate places.

6.Function facilitates procedural abstraction : Once a function is written, it serves as a black box. All that a programmer would have to know to invoke a function would be to know its name, and the parameters that it expects

7.Functions facilitate the factoring of code : A function can be called in other function and so on…

read more

——————————————————————————————————————————————

 

 

 

 

 

 

Function

Post navigation

Previous Post: Class XI- Videos
Next Post: LOOPS

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Tips-Networking Case-based Questions
  • XII-Board Practical Exam 2020-21
  • Stack and Queue
  • Questions on Tuples
  • Networking -Full Forms

Recent Comments

  • ubasexazejil on Tips-Networking Case-based Questions
  • ugajefeq on Tips-Networking Case-based Questions
  • www.seoshop.xmc.pl on Tips-Networking Case-based Questions
  • igesuzuxumuli on Tips-Networking Case-based Questions
  • oqiteranif on Tips-Networking Case-based Questions

Categories

  • About
  • C++
    • Notes
    • Programs/Questions
    • Project/Practical File C++
  • Class XI
    • MCQ
    • Online Class-XI
    • PDF/PPT
  • Class XII
    • Assignment/Test
    • Board Practical Exam
    • File Handling
    • File Handling
    • Function Programs
    • Notes
    • Projects and Practical Files Class XII
      • Project/Practical File Class XI
      • Stack
        • Stack and Queue
    • Quick Revision
      • Errors and Outputs
      • Exam Revision Notes
      • Question Bank
    • Stack and Queue
  • File Handling
  • Function
  • Home
  • MCQ Chapter-wise
  • MCQ Quiz
  • MCQ Quiz
  • MySQL
  • MySQL Software
  • Papers
  • Papers
  • PDF/PPT
    • MySQL
    • MySQL with Python
    • Networking
  • Practical/Project
  • Programs
  • Programs
    • MySQL Connectivity
  • Python Functions
  • Python Modules
  • Python_fundamentals
  • Sample Papers
  • School Papers
  • Syllabus
  • Videos
  • Videos
  • Videos-Networking

Archives

  • March 2021
  • February 2021

Categories

  • Assignment/Test paper
  • Board Practical Exam
  • Class XI
  • Class XI
  • Class XII
  • Function
  • MySQL Notes
  • MySQL with Python
  • Networking
  • tuple
  • XI Videos

Copyright © 2025 cs2study.

Powered by PressBook WordPress theme