CBSE Class 12 Computer Science 2026
37 questions · 70 marks · every one with the board’s own marking-scheme answer.
What 2026 actually asked, chapter by chapter
Marks we counted in the 2026 papers themselves. CBSE allocates marks per unit, not per chapter — this is what was observed, not an official CBSE weightage.
| Chapter | Marks | Share |
|---|---|---|
| Revision of Python13 questions | 18 | 25.7% |
| Structured Query Language5 questions | 12 | 17.1% |
| Network Topologies and Types2 questions | 7 | 10.0% |
| File Handling - Binary Files2 questions | 6 | 8.6% |
| Functions3 questions | 5 | 7.1% |
| Relational Data Model4 questions | 4 | 5.7% |
| Python-MySQL Connectivity1 question | 4 | 5.7% |
| File Handling - CSV Files1 question | 4 | 5.7% |
| File Handling - Text Files1 question | 3 | 4.3% |
| Data Structure - Stack1 question | 3 | 4.3% |
| Network Devices2 questions | 2 | 2.9% |
| Web Services1 question | 1 | 1.4% |
| Exception Handling1 question | 1 | 1.4% |
All 37 questions from 2026
- Q1State True or False: In Python, data type of 74 is same as the data type of 74.0.1 mk
- Q2Identify the output of the following code snippet: s = "the Truth" print(s.capitalize())1 mk
- Q3Which of the following expressions in Python evaluates to True?1 mk
- Q4What is the output of the following code snippet? s='War and Peace by Leo Tolstoy' print(s.partition("by"))1 mk
- Q5What will be the output of the following statement? print("PythonProgram"[-1:2:-2])1 mk
- Q6What will be the output of the following code snippet? t = tuple('tuple') t2 = t[2], t += t2 print(t)1 mk
- Q7Which of the following statements is true about dictionaries in Python?1 mk
- Q8If L is a list with 6 elements, then which of the following statements will raise an exception?1 mk
- Q9What will be the output of the following code? def f1(a,b=1): print(a+b,end='-') c=f1(1,2) print(c,sep=' ')1 mk
- Q10Consider the statement given below: f1 = open("pqr.dat"," ") Which of the following is the correct file mode to open…1 mk
- Q11State whether the following statement is True or False: In Python, Logical errors can be handled using…1 mk
- Q12A table has two candidate keys, one of which is chosen as the primary key. How many alternate keys does this table have?1 mk
- Q13Which of the following SQL command can change the degree of the existing relation?1 mk
- Q14What will be the output of the query? SELECT MACHINE ID, MACHINE NAME FROM INVENTORY WHERE QUANTITY <= 100;1 mk
- Q15A relation in MySQL database consists of 2 tuples and 3 attributes. If 2 attributes are deleted and 4 tuples are added,…1 mk
- Q16Which aggregate function in SQL returns the smallest value from a column in a table?1 mk
- Q17With respect to computer networks, which of the following is the correct expanded form of RJ 45?1 mk
- Q18Which network device serves as the entry and exit point of a network, as all data coming in or going out of a network…1 mk
- Q19Expand the term XML.1 mk
- Q20Assertion: [1,2,3]+'123' is an invalid expression in Python. Reason (R): In Python, a list cannot be concatenated with…1 mk
- Q21Assertion: The PRIMARY KEY constraint in SQL ensures that each value in the column(s) is unique and cannot be NULL.…1 mk
- Q22What is the difference between default parameters and positional parameters in Python? Also give an example of a…2 mk
- Q23Write a Python statement to perform the following tasks: (USE BUILT IN FUNCTIONS / METHODS ONLY) (i) To create a new…2 mk
- Q24Assuming that D1 is a dictionary in Python, (i) Write a Python expression to check if the key, 'RNo' is present in D1.…2 mk
- Q25What possible output(s) from the given options will NOT be displayed when the following code is executed? Also,…2 mk
- Q26The function given below is written to accept a string s as a parameter and return the number of vowels appearing in…2 mk
- Q27Ms. Zoya is a Production Manager in a factory which packages mineral water. She decides to create a table in a database…2 mk
- Q28List one advantage and one disadvantage of Bus topology. OR What is protocol in the context of computer networks? Which…2 mk
- Q29Write a Python function that counts and returns the number of digits appearing in the text file "Space.txt". For…3 mk
- Q30A stack named FruitStack, implemented using list, contains records of some fruits. Each record is represented as a…3 mk
- Q31Write the output of the following code: def Exam2026(given): new=[] for ch in given[1:-1]: if ch.isupper():…3 mk
- Q32Abhishek has created a table, named STOCK, with a set of records to maintain the data of packaged milk in his shop.…4 mk
- Q33A csv file "States.csv" contains some data about all the states of India. Each record of the file contains the…4 mk
- Q34Assume that you are the Manager of the Loans department of a Finance House. To keep track of the loans you have created…4 mk
- Q35Peter has created a table named Account in MySQL database, SCHOOL, having following structure: - Stud id - integer -…4 mk
- Q36NextStep is an organization which has a pool of resource persons to conduct training workshops on various topics…5 mk
- Q37Sanjeevani is a big group of educational institutions with its head office in Hyderabad. It is planning to set up a new…5 mk
Answers come from CBSE’s own marking schemes. How we source them.