On this page
If you are building your Class 12 Computer Science project right now, you have probably wondered whether asking an AI chatbot for help counts as cheating. It depends on what you ask it to do. Using AI to understand an error is like asking a friend who knows Python. Pasting its code into your project is handing in someone else's work, and the viva is where that usually shows.
Your school's rules come first: if your teacher hasn't said anything about AI, ask before you start.
How is the CBSE Class 12 CS practical marked?
The practical carries 30 marks in the CBSE Computer Science (083) curriculum for 2026-27. The split:
Lab test: a Python program for 8 marks (60% logic, 20% documentation, 20% code quality) and SQL queries for 4 marks
Report file: 7 marks
Project: 8 marks
Viva voce: 3 marks
The same document says the project should be done in groups of two to three students, should use Python file handling or Python-SQL connectivity, and should be started at least 6 months before the submission deadline. It also says students should be sensitised to avoid plagiarism and copyright violations, and that teachers should take measures for this. The lab test and the viva are where you write and explain code yourself.
Can I use AI for my Class 12 computer science project?
Use it as a tutor, never as a ghostwriter.
Usually fair (check with your teacher):
Asking what an error message means, such as EOFError or "list index out of range"
Asking why your own code behaves a certain way, then fixing it yourself
Asking for an explanation of a concept, like how pickle.load() reads a binary file, or what commit() does after an INSERT
Asking for test cases to try on your program
Not fair:
Asking it to "write a library management system in Python with MySQL"
Pasting in a corrected version of a function you don't understand
Letting it write your project report or the description of how your code works
Using AI without saying so, if your school asks you to declare it
We have a separate guide on how to mention AI use in a school project, with sample lines you can adapt.
There is a learning reason for this line too. In a controlled study of 69 novice programmers aged 10 to 17, published at CHI 2023, learners with the AI code generator Codex had a 1.15 times higher completion rate and 1.8 times higher scores on code-writing tasks while they practised. On post-tests a week later they did only slightly better, and that difference was not statistically significant. The paper starts from the concern that over-reliance on AI might harm learning and retention.
What does fair help look like on a real bug?
Say your project stores student records in a binary file. Your function to display all records loops with pickle.load() and crashes with EOFError when it reaches the end of the file.
A ghostwriting prompt: "Fix this code." You get working code back and still don't know what went wrong.
A tutoring prompt: "I'm in Class 12. My loop calls pickle.load() on a binary file and crashes with EOFError at the end. Don't give me corrected code. Explain what EOFError means here and ask me a question that helps me find the fix."
The second prompt leads you to see that pickle.load() raises EOFError when nothing is left to read, so you write the try-except block yourself and can explain it in the viva. See how to use AI to understand Python errors without copying fixes. If your project connects to MySQL, use this checklist for AI-written SQL queries.
How do I prepare for viva questions on my own code?
One week before your practical exam, work through this plan with your project partner.
Print your main file. Next to every function, write in one line what it does, what goes in and what comes out.
Explain one function aloud to your partner without looking at the code. Then swap.
Practise these questions: Why did you choose a binary, CSV or text file, or a database? What happens if the user enters a roll number that doesn't exist? Why did you use try-except here? Why do you call commit() after an INSERT? What would you add with one more week?
Break your own program on purpose: rename the data file, enter text where a number is expected, and note what happens.
Add one small feature, such as a new search option, to prove you can change the code under pressure.
If you get stuck on a concept while doing step 3, the Fermi Concept Library covers computing concepts, each with its own lesson. Fermi's AI tutor teaches rather than just answering, deciding whether to explain, ask or show, so you can rehearse likely viva answers until you can say them in your own words.
At the viva, "I used AI to understand this error, and then I wrote the fix myself" is an answer you can stand behind.



