How the practical is marked
In the CBSE Computer Science curriculum, each year is 70 marks of theory and 30 marks of practical. The practical is split like this in the published curriculum (check the current year's CBSE curriculum document before you plan, as details can change).
In Class 11 the lab test is a 12-mark Python program, the report file and viva together are 10, and the project is 8.
Notice where the lab-test marks go: 60% for logic, but 40% for documentation and code quality. A program that works but has no comments and unclear names loses marks a student could easily have kept.
The report file
The curriculum asks for a minimum number of programs in the report file: at least 20 Python programs in Class 11, and in Class 12 at least 15 Python programs, at least 5 sets of SQL queries on one or two tables, and at least 4 programs connecting Python to SQL.
The report file goes better when it is built through the year rather than in the last fortnight. A program a student wrote, tested and corrected in September is a better entry than one copied from a guidebook in January, and the examiner's viva questions tend to show which is which.
Preparing for the Python program
The Class 12 suggested practical list leans heavily on file handling and data structures: reading a text file and counting characters or words, writing selected lines to another file, working with binary and CSV files, and implementing a stack with a list. Practise these until students can write them from a blank screen.
- Practise against test cases. Give each program several inputs, including awkward ones: an empty file, a line with only spaces, a stack that is popped when empty.
- Time it. Students who have only written programs at home with no clock often freeze in the lab test. Run short timed practicals through the year.
- Mark documentation from the start. Make comments and clear names part of every practice mark, so they are a habit by exam day.
Preparing for the SQL queries
The SQL part asks for queries on one or two tables: creating and altering a table, updating and deleting rows, ordering results, and grouping with MIN, MAX, SUM, COUNT and AVG. Students lose marks on small things: a missing GROUP BY column, a WHERE where a HAVING was needed, a join without a condition.
Have students write queries against a real database and check the output, rather than writing them on paper. The CBSE syllabus uses MySQL, so practising on MySQL avoids surprises with functions that other databases name differently.
Project and viva
The project should use concepts from both years, and the student should be able to explain every line of it. The viva is short; the questions are usually about the student's own programs and project, which is another reason the report file should be the student's own work.