- CBSE Class 12 Computer Science Important Questions 2024-25: High Weightage
- CBSE Class 12 Computer Science Important Questions 2024-25: 3 Mark …
- CBSE Class 12 Computer Science Important Questions: 1 Mark Questions
- CBSE Class 12 Computer Science Important Questions: Chapter-wise Questions
- CBSE Class 12 Computer Science Marking Scheme
Never Miss an Exam Update
CBSE Class 12 Computer Science Important Questions 2024-25: The students appearing in the CBSE Class 12th Computer Science exam can practice the Important Questions for Class 12 Computer Science to get good marks in computer science. After completing the CBSE class 12 syllabus 2024-25, students are advised to go through the important questions or the repeated questions that can come in the CBSE 12th Exam 2025. Here, in this article, along with the weightage-wise important questions, chapter wise CBSE Class 12 Computer Science important questions are provided for the students to improve their CBSE 12th preparation 2025.
Furthermore, before appearing for the CBSE 12th Board exam 2025, students must also practise the CBSE class 12 previous year questions and CBSE class 12 sample papers on a regular basis. This will not only improve their confidence but also help them have an overview of the important and repeated questions of the CBSE 12th Computer Science Exam 2025.
CBSE Class 12 Computer Science Important Questions 2024-25: High Weightage
Section E in the CBSE 12th Computer Science question paper comprises 3 questions (33 to 35) carrying 5 marks each. Here, the highest weightage carrying important questions i.e., 5 marks questions are provided. Students can consider these questions as the most important ones.
Question 1: Aman is a Python programmer. He has written a code and created a binary file record.dat with employeeid, ename and salary. The file contains 10 records. He now has to update a record based on the employee id entered by the user and update the salary. The updated record is then to be written in the file temp.dat. The records which are not to be updated also have to be written to the file temp.dat. If the employee id is not found, an appropriate message should to be displayed. As a Python expert, help him to complete the following code based on the requirement given above:
Which module should be imported in the program? (Statement 1)
(ii) Write the correct statement required to open a temporary file named temp.dat. (Statement 2) (iii) Which statement should Aman fill in Statement 3 to read the data from the binary file, record.dat and in Statement 4 to write the updated data in the file, temp.dat?
Question 2: How are text files different from binary files?
(ii) A Binary file, CINEMA.DAT has the following structure: {MNO:[MNAME, MTYPE]}
Where MNO – Movie Number MNAME – Movie Name MTYPE is Movie Type Write a user defined function, find Type (mtype), that accepts mtype as parameter and displays all the records from the binary file CINEMA.DAT, that have the value of Movie Type as mtype.
Question 3: (a) A binary file "PLANTS.dat" has structure (ID, NAME, PRICE). Write the definition of a function WRITEREC() in Python, to input data for records from the user and write them to the file PLANTS.dat. Write the definition of a function SHOWHIGH() in Python, which reads the records of PLANTS.dat and displays those records for which the PRICE is more than 500.
Question 4: A school library is connecting computers in its units in a LAN. The library has 3 units as shown in the diagram below:
The three units are providing the following services:
- Teachers Unit: For access of the Library Books by teachers
- Students Unit: For access of the Library Books by Students
- Circulation Unit : For issue and return of books for teachers and students Centre to Centre distances between the 3 units are as follows: Circulation Unit to Teachers Unit 20 metres Circulation Unit to Students Unit 30 metres Teachers Unit to Students Unit 10 metres Number of computers in each of the units is as follows: Circulation Unit 15 Teachers Unit 10 Students Unit 10
Question 5: What is the advantage of using a csv file for permanent storage? 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 ‘record.csv’. Each record consists of a list with field elements as empid, name and mobile to store employee id, employee name and employee salary respectively.
(ii) COUNTR() – To count the number of records present in the CSV file named ‘record.csv’.
CBSE Class 12 Computer Science Important Questions 2024-25: 3 Mark Questions
Check out the 3 marks CBSE important questions for class 12 Computer Science from below:
Question 1: (a) Write the definition of a function ChangeGender() in Python, which reads the contents of a text file "BIOPIC.TXT" and displays the content of the file with every occurrence of the word 'he' replaced by 'she'. For example, if the content of the file "BIOPIC.TXT" is as follows: Last time he went to Agra, there was too much crowd, which he did not like. So this time he decided to visit some hill station. The function should read the file content and display the output as follows: Last time she went to Agra, there was too much crowd, which she did not like. So this time she decided to visit some hill station.
Question 2: Write a function in Python to read a text file, Alpha.txt and displays those lines which begin with the word ‘You’.
Question 3: Write the definition of a function Sum3(L) in Python, which accepts a list L of integers and displays the sum of all such integers from the list L which end with the digit 3. 3 For example, if the list L is passed [ 123, 10, 13, 15, 23] then the function should display the sum of 123, 13, 23, i.e. 159 as follows: Sum of integers ending with digit 3 = 159
Question 4: Write the definition of a function POP_PUSH(LPop, LPush, N) in Python. The function should Pop out the last N elements of the list LPop and Push them into the list LPush. For example: If the contents of the list LPop are [10, 15, 20, 30] And the value of N passed is 2, then the function should create the list LPush as [30, 20], And the list LPop should now contain [10, 15] NOTE: If the value of N is more than the number of elements present in LPop, then display the message "Pop not possible".
Question 5: Find and write the output of the following Python code:
class INVENTORY:
def __init__(self,C=101,N="Pad",Q=100): #constructor
self.Code=C
self.IName=N self.Qty=int(Q);
def Procure(self,Q):
self.Qty = self.Qty + Q
def Issue(self,Q):
self.Qty -= Q def Status(self): print self.Code,":",self.IName,"#",self.Qty
Also Check: CBSE Class 12 Exam Pattern 2024-25
CBSE Class 12 Computer Science Important Questions: 1 Mark Questions
Following are the 1 mark CBSE Class 12 Computer Science Important Questions that can be focused on:
Question 1: Which of the following will delete key-value pair for key = “Red” from a dictionary D1?
- delete D1("Red")
- del D1["Red"]
- del.D1["Red"]
- D1.del["Red"]
Question 2: Which of the following mode in file opening statement results or generates an error if the file does not exist?
(a) a+ (b) r+ (c) w+ (d) None of the above
Question 3: Anmol wants to change the name of the attribute UNITS to QUANTITY in the table PHARMA. Which of the following commands will he use for the purpose?
(i) UPDATE (ii) DROP TABLE (iii) CREATE TABLE (iv) ALTER TABLE
Question 4: What shall be the ouput for the execution of the following Python Code?
Cities = ['Delhi', 'Mumbai'] Cities[0], Cities[1] = Cities[1], Cities[0] print(Cities)
Question 5: Which of the following is not a valid DML command in SQL?
(A) INSERT (B) UPDATE (C) ALTER (D) DELETE
CBSE Class 12 Computer Science Important Questions: Chapter-wise Questions
As per the CBSE class 12 Computer Science marking scheme, the following are the high weightage carrying units. In this section, the important questions from these units are as follows:
Unit I: Computational Thinking and Programming - 2 (40 marks)
Question 1: Write the definition of a function AddUp(int Arr[ ], int N) in C++, in which all even positions (i.e. 0,2,4 ) of the array should be added with the content of the element in the next position and odd positions (i.e. 1,3,5, ) elements should be incremented by 10. All India 2017
NOTE
The function should only alter the content in the same array.
The function should not copy the altered content in another array.
The function should not display the altered content of the array.
Assuming, the Number of elements in the array is Even
Question 2: Write the definition of a function FixPay(float Pay[ ], int N) in C++, which should modify each element of the array Pay having N elements.
Question 3: Write the definition of a function Alter (int A[ ], int N) in C++, which should change all the multiples of 5 in the array to 5 and rest of the elements as 0.
Unit III: Database Management
Question 1: Define degree and cardinality. Also, Based upon given table write degree and cardinality
Question 2: Explain the concept of union between two tables, with the help of appropriate example.
Question 3: Observe the following MEMBER and ACTIVITY tables carefully and write the name of the RDBMS operation, which will be used to produce the output as shown in REPORT? Also, find the Degree and Cardinality of the REPORT.
Unit II: Computer Networks
Question 1: What are the security concerns related to IOT?
Question 2: which of these is the correct definition of a router?
(i) forwards data packets along a network
(ii) corrects errors that are found in data packets
(iii) a type of transmission media that provides the greatest bandwidth
(iv) a server within a network
Question 3: What is NIC?
CBSE Class 12 Computer Science Marking Scheme
The CBSE Class 12 Computer Science examination will be worth 100 marks. 30 marks will be awarded for a practical exam that students must take. Following the practicals, the board will administer a 70-mark theoretical exam.CBSE Class 12 Computer Science Syllabus 2024-25 Theory Marking Scheme | ||
---|---|---|
Unit No. | Unit Name | Marks |
I. | Computational Thinking and Programming – 2 | 40 |
II. | Computer Networks | 10 |
III. | Database Management | 20 |
Total | 70 |
Students are advised to prepare the answers of the above mentioned CBSE Class 12 computer science important questions in a proper way. Incase they need more guidance they can take help from their respective teachers or expertise. Stay tuned to CollegeDekho for more Education News !