
CBSE Class 12 Computer Science Expected Question Paper 2025: Students are anxious to know the anticipated question paper format for the 2025 CBSE Class 12 Computer Science board exam, which is scheduled for March 29, 2025. Our experts have published an expected question paper for CBSE Class 12 Computer Science 2025, highlighting the question kinds that are likely to arise based on historical trends and the new syllabus, in light of the exam's quickly approaching date. Since the majority of the questions in the CBSE exam are based on NCERT concepts, students should concentrate on their NCERT textbooks. Additionally, completing past years' question papers and sample papers can help you become more accurate with your answers and manage your time better.
CBSE Class 12 Computer Science Expected Question Paper 2025
Based on the previous year’s trend, the most common questions asked from each chapter in the CBSE Class 12 Computer Science Expected Question Paper are provided in the following table:
Section A- 1 Mark Questions
State True or False:- The Python interpreter handles logical errors during code execution
- “In a Python program, if a break statement is given in a nested loop, it terminates the execution of all loops in one go.”
- “Variable declaration is implicit in Python.”
- The finally block in Python is executed only if no exception occurs in the try block.
- An exception may be raised even if the program is syntactically correct.
- In case of _____________ switching, before a communication starts, a dedicated path is identified between the sender and the receiver.
- The modem at the sender’s computer end acts as a ____________.
- ______is a communication methodology designed to deliver both voice and multimedia communications over Internet protocol.
- _________ is a non-key attribute, whose values are derived from the primary key of some other table.
- The SELECT statement when combined with __________ clause, returns records without repetition.
- What will the following expression be evaluated to in Python? print(15.0 / 4 + (8 + 3.0))
(b)14.0
(c) 15
(d) 15.5
- Which function is used to display the total number of records from table in a database?
(b) total(*)
(c) count(*)
(d) return(*)
- In a table in MYSQL database, an attribute A of datatype varchar(20) has the value “Keshav”. The attribute B of datatype char(20) has value “Meenakshi”. How many characters are occupied by attribute A and attribute B?
(b) 6,20
(c) 9,6
(d) 6,9
- Which network device is used to connect two networks that use different protocols?
(b) Gateway
(c)Switch
(d)Repeater
- Which protocol is used to transfer files over the Internet?
(b) FTP
(c)PPP
(d)HTTPS
Section B- 2 Marks Questions
- How is a mutable object different from an immutable object in Python? Identify one mutable object and one immutable object from the following: (1,2), [1,2], {1:1,2:2}, ‘123’.
- Write a function, lenWords(STRING), that takes a string as an argument and returns a tuple containing length of each word of a string. For example, if the string is "Come let us have some fun", the tuple will have (4, 3, 2, 4, 4, 3).
- Write two points of difference between Circuit Switching and Packet Switching.
-
Give two examples of each of the following:
(I) Arithmetic operators (II) Relational operators - A list named studentAge stores age of students of a class. Write the Python command to import the required module and (using built-in function) to display the most common age value from the given list.
- Write two points of difference between XML and HTML.
- What constraint should be applied on a table column so that duplicate values are not allowed in that column, but NULL is allowed.
-
Write a function countNow(PLACES) in Python, that takes the dictionary, PLACES as an argument and displays the names (in uppercase)of the places whose names are longer than 5 characters.
For example, Consider the following dictionary
PLACES={1:"Delhi",2:"London",3:"Paris",4:"New York",5:"Doha"}
The output should be:
LONDON
NEW YORK - Explain the use of ‘Foreign Key’ in a Relational Database Management System. Give example to support your answer.
- What is the use of TELNET?
Section C- 3 Marks Questions
- Write a Python function that displays all the words containing @cmail from a text file "Emails.txt".
- Write a Python function that finds and displays all the words longer than 5 characters from a text file "Words.txt"
- Write a function in Python to read a text file, Alpha.txt and displays those lines which begin with the word ‘You’.
- Write a function, vowelCount() in Python that counts and displays the number of vowels in the text file named Poem.txt.
- Write a function INDEX_LIST(L), where L is the list of elements passed as argument to the function. The function returns another list named ‘indexList’ that stores the indices of all Non-Zero Elements of L. For example: If L contains [12,4,0,11,0,56]. The indexList will have - [0,1,3,5]
Section D- 4 Marks Questions
1. A csv file "Happiness.csv" contains the data of a survey. Each record of the file contains the following data:● Name of a country
● Population of the country
● Sample Size (Number of persons who participated in the survey in
that country)
● Happy (Number of persons who accepted that they were Happy)
For example, a sample record of the file may be:
[‘Signiland’, 5673000, 5000, 3426]
Write the following Python functions to perform the specified operations on this file:
(I) Read all the data from the file in the form of a list and display all those records for which the population is more than 5000000.
(II) Count the number of records in the file.
2. Give any one point of difference between a binary file and a csv file. Write a Program in Python that defines and calls the following user defined functions:
(i) add() – To accept and add data of an employee to a CSV file ‘furdata.csv’. Each record consists of a list with field elements as fid, fname and fprice to store furniture id, furniture name and furniture price, respectively.
(ii) search()- To display the records of the furniture whose price is more than 10000.
Section E- 5 Marks Questions
1. Surya is a manager working in a recruitment agency. He needs to manage the records of various candidates. For this, he wants the following information of each candidate to be stored:- Candidate_ID – integer
- Candidate_Name – string
- Designation – string
- Experience – float
You, as a programmer of the company, have been assigned to do this job for Surya.
(I) Write a function to input the data of a candidate and append it in a binary file.
(II) Write a function to update the data of candidates whose experience is more than 10 years and change their designation to "Senior Manager".
(III) Write a function to read the data from the binary file and display the data of all those candidates who are not "Senior Manager".
2. Answer the following:
(i) Give one difference between an alternate key and a candidate key.
(ii) Sartaj has created a table named Student in the MYSQL database, SCHOOL:
- rno(Roll number )- integer
- name(Name) - string
- DOB (Date of birth) – Date
- Fee – float
- Username - root
- Password - tiger
- Host - localhost
Keep visiting CollegeDekho for the latest Education News on entrance exams, board exams and admissions. You can also write to us at our email ID news@collegedekho.com.
Are you feeling lost and unsure about what career path to take after completing 12th standard?
Say goodbye to confusion and hello to a bright future!
Was this article helpful?



