Functions Class 12 Notes PDF 2026-27 | Computer Science Chapter 2 Skip to content
Smart Notes for Every Exam · instant PDF download after payment +91 92520 37565
Class 12 · Computer Science · Chapter 2

Functions: complete notes

Neat, exam-ready notebook-style notes for Functions, following your NCERT book. This chapter is part of the complete Complete Computer Science Notes for Class 12 (CBSE 083, 2026-27).

Cover of Complete Computer Science Notes for Class 12 (CBSE 083, 2026-27)
Get all 14 chapters of Class 12 Computer Science
US$2.99US$3.9920% off
Free sample

Board questions: Functions: CBSE previous year questions with solutions →

Free preview: Functions notes

A quick look at the chapter from our Class 12 Computer Science notes. The full chapter notes have the detailed explanations, diagrams and practice questions with answers.

Functions Types of functions ★built-in · module · user defined Parameters ★★★positional · default · keyword return, flow of execution ★★None, multiple values (tuple) Scope + random ★★★local, global; randint, randrange
Chapter map from the notes

Topics in this chapter ★★★ very important · ★★ important · ★ asked sometimes

  1. 2.1 What is a function? ★★
  2. 2.2 Kinds of parameters ★★★
  3. 2.3 The return statement ★★★
  4. 2.4 Scope of a variable ★★★
  5. 2.5 The random module ★★★
  6. Multiple choice: 20 MCQs

Last-night summary

  • return ends the function and sends a value; no return → None; many values → tuple. Flow: def defines, body runs on call.
  • Local (inside, during call) vs global (top level); assignment inside makes a name local; global keyword to change a global; mutable arguments changed in place are seen outside.
  • random: random() [0,1); randint(a,b) both ends; randrange(a,b) b excluded. pow(2,3)=8 vs math.pow=8.0; ceil(89.7)=90, floor=89.
See real pages (free sample)

What you get in the pack

All chapters in this pack

  1. Python Revision Tour
  2. Functions
  3. Exception Handling
  4. File Handling: Text Files
  5. Binary Files (pickle)
  6. CSV Files
  7. Data Structure: Stack
  8. Networks I: Data Communication and Media
  9. Networks II: Devices, Topologies, Types
  10. Network Protocols and Web Services
  11. Database Concepts and the Relational Model
  12. SQL I: DDL, DML and Queries
  13. SQL II: Aggregates, GROUP BY, Joins
  14. Interface of Python with MySQL
← Python Revision Tour Exception Handling →

Prices shown in US dollars. Show prices in: ₹ INR · US$ USD