CBSE Class 12 Informatics Practices Creating Procedures Notes

Download the latest CBSE Class 12 Informatics Practices Creating Procedures Notes in PDF format. These Class 12 Informatics Practices 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 12 students.

Chapter-wise Revision Notes for Class 12 Informatics Practices Creating Procedures

To secure a higher rank, students should use these Class 12 Informatics Practices Creating Procedures 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.

Creating Procedures Revision Notes for Class 12 Informatics Practices

CREATING PROCEDURES

Procedures makes the program modular and each module performs a specific function or task.

Modular programming approach makes the program readable,manageable,reusable and reliable.

PL/SQL supports modules of many types such as :
Anonymous Blocks
Procedures
Functions
Packages

A Module or Procedure is a logical unit of work ie,a logically grouped set of SQL and PL/SQL statements that together perform a specific task

Types of PL/SQL Procedures:

PL/SQL supports two types of Procedures:

1. Local or Anonymous Procedure:These are unnamed procedures.These procedures are not stored as a database object in an Oracle database.

2. Stored Procedure: These are named procedures.These can accept input parameters and pass values to output parameters

Need of Procedures:

1. Procedures makes a program modular and serve to meet the specific requirement.
2. They make a bigger program broken down into smaller and manageable units.
3. They enhance performance of a program by saving time in network traffic as they do not need recompilation as their compiled form is stored in the database.
4. They enhance reusability as a procedure once written can be used again or reused.
5. They provide a better database security.
6. They use shared memory resources.

PL/SQL structure of a named block:

HEADER
IS
DECLARATION SECTION
BEGIN

EXCEPTION
END;
Therefore, there are four sections in the declaration of a stored procedure.

1. HEADER SECTION: Here the type of block whether procedure or Function or Package and its name and parameters are specified.
2. DECLARATION SECTION: Here local variables to this very block are specified.
3. EXECUTION SECTION: Here all the executable statements appear.
4. EXCEPTION SECTION: Here all the exceptions handling statements are specified. The declaration and exception sections are optional in any PL/SQL block.

NOTE:THE PROCEDURE specification begins with the keyword PROCEDURE and ends with the procedure name or a parameter list. Parameter declarations are optional.Procedures that take no parameters are written without parentheses.The PROCEDURE body begins with the keyword IS or AS and ends with the keyword END followed by an optional procedure name. The procedure body has three parts:a declarative part,an executable part,and an optional exception-handling part. Example : A procedure showing all the four sections.

PARAMETER MODES:

The formal parameters of a procedure have following three major attributes.

1. Name of the Procedure.

2. MODE.(IN ,OUT ,IN OUT)
3. Data type. The parameter modes define the behaviour of formal parameters.

The three modes are:

a. IN MODE: IN parameter lets user to pass values to the procedure being called inside.Inside the procedure,an IN parameter acts like a constant.Therefore,it can not be assigned a value.

b. OUT MODE: OUT parameter lets user to return the values to the caller of a procedure.ie,to the sub program ,which invokes the procedure.

c. IN OUT MODE: IN OUT parameter lets use pass initial values to the procedure being called nad return updated values to the caller subprogram. Inside the procedure,an IN OUT parameter acts like an initialized variable. 

CBSE Class 12 Informatics Practices Creating Procedures Study Notes

PARAMETER DECLARATION CONSTRAINTS:

The data type of a formal parameter can consist of any one of the following type of declarations:

• An unconstrained type name ,such as NUMBER or VARCHAR2.

• A type that is constrained using the %TYPE or %ROWTYPE attributes.

NOTE: Numerically constrained types such as NUMBER(2) or VARCHAR(20) are not allowed in a parameter list.

ASSIGNING DEFAULT VALUE TO PARAMETERS:

Parameters can also take default values.For this the DEFAULT keyword is used.

Ex: PROCEDURE stud_data(roll IN NUMBER DEFAULT 20) IS………

Or

PROCEDURE stud_data(roll IN NUMBER := 20) IS………

THE END LABEL:

Procedure name can be added after the keyword END.

EXAMPLE :

                    CREATE OR REPLACE PROCEDURE get_stud

                   (stud_id IN student.sid%TYPE,

                    stud_name OUT student.sname%TYPE,

                    stud_city OUT student.city%TYPE)

                    IS

                   BEGIN

                   SELECT sname,city INTo stud_name,stud_city FROM student WHERE sid=stud_id;

                   END get_stud;

FUNCTIONS

Functions are modules that carry out one specific job and return a value

Which in the declaration section is shown by keyword RETURN.

SYNTAX:

CREATE FUNCTION (list of parameters)RETURN

                          AS….

                         BEGIN

                         --function body

                          END ;

NOTE: A function like a procedure receives arguments from the calling program.The difference is that a function is a part of an expression and returns a single value to the calling program for its use.
The return value of a FUNCTION must be assigned to a variable or used in an expression.

EXAMPLE:

Create or Replace FUNCTION factorial RETURN NUMBER IS

                            N NUMBER(5);

                            F NUMBER(5);

                           BEGIN

                            f :=1;

                           n :=&n;

                           for i in 1..n

                           loop

                           f := f*i;

                          end loop;

                          return f;

                          end;

DROPPING STORED PROCEDURES:

DROP PROCEDURE ;

DROP FUNCTION ;

Please click the link below to download pdf file for CBSE Class 12 Informatics Practices Creating Procedures Study Notes

CBSE Class 12 Informatics Practices Creating Procedures Notes

Students can use these Revision Notes for Creating Procedures to quickly understand all the main concepts. This study material has been prepared as per the latest CBSE syllabus for Class 12. Our teachers always suggest that Class 12 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 Creating Procedures Summary

Our expert team has used the official NCERT book for Class 12 Informatics Practices 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 12. Always compare your understanding with our teacher prepared answers as they will help you build a very strong base in Informatics Practices.

Creating Procedures 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 Creating Procedures. All study material on studiestoday.com is free and updated according to the latest Informatics Practices 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 12 Informatics Practices Creating Procedures Notes?

You can download the teacher prepared revision notes for CBSE Class 12 Informatics Practices Creating Procedures Notes from StudiesToday.com. These notes are designed as per 2025-26 academic session to help Class 12 students get the best study material for Informatics Practices.

Are these Informatics Practices notes for Class 12 based on the 2026 board exam pattern?

Yes, our CBSE Class 12 Informatics Practices Creating Procedures Notes include 50% competency-based questions with focus on core logic, keyword definitions, and the practical application of Informatics Practices principles which is important for getting more marks in 2026 CBSE exams.

Do these Class 12 notes cover all topic-wise concepts for Informatics Practices?

Yes, our CBSE Class 12 Informatics Practices Creating Procedures Notes provide a detailed, topic wise breakdown of the chapter. Fundamental definitions, complex numerical formulas and all topics of CBSE syllabus in Class 12 is covered.

How can I use CBSE Class 12 Informatics Practices Creating Procedures Notes for quick last-minute revision?

These notes for Informatics Practices are organized into bullet points and easy-to-read charts. By using CBSE Class 12 Informatics Practices Creating Procedures Notes, Class 12 students fast revise formulas, key definitions before the exams.

Is there any registration required to download Class 12 Informatics Practices notes?

No, all study resources on StudiesToday, including CBSE Class 12 Informatics Practices Creating Procedures Notes, are available for immediate free download. Class 12 Informatics Practices study material is available in PDF and can be downloaded on mobile.