CBSE Class 12 Computer Science Important Questions 2023-24

namrata das

Updated On: March 06, 2024 02:14 pm IST

CBSE Class 12 Computer Science Important Questions 2023-24 can help students boost their confidence level. Find the weightage-wise and chapter-wise CBSE 12th Computer Science Important Questions here.


 
CBSE Class 12 Computer Science Important Questions 2023-24
examUpdate

Never Miss an Exam Update

CBSE Class 12 Computer Science Important Questions 2023-24: The Central Board of Secondary Education is going to conduct the CBSE 12th Board Exam 2024 from February 15 to April 10, 2024 in pen and paper mode. It can be expected that the detailed CBSE class 12 timetable 2024 will be issued on December 29, 2023 tentatively on the official website of CBSE. After completing the CBSE class 12 syllabus 2023-24, students are advised to go through the important questions or the repeated questions that can come in the CBSE 12th Exam 2024. 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 2024.

Furthermore, before appearing for the CBSE 12th Board exam 2024, 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 2024.

Also Read:

CBSE Class 12 Result 2024
CBSE Class 12 Grading System 2024
CBSE Class 12 Arts Topper 2024
CBSE Class 12 Commerce Topper 2024
CBSE Class 12 Science Topper 2024
CBSE Class 12 Marksheet 2024

CBSE Class 12 Computer Science Important Questions 2023-24: 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:

CBSE Class 12 Computer Science Important Questions

The three units are providing the following services: 

  1. Teachers Unit: For access of the Library Books by teachers 
  2. Students Unit: For access of the Library Books by Students 
  3. 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 2023-24: 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 2023-24

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? 

  1. delete D1("Red") 
  2. del D1["Red"] 
  3. del.D1["Red"] 
  4. 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 
Also Check

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

Database Management

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.

https://www.collegedekho.com/cbse-class-12-computer-science-previous-year-question-paper-brd

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?

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!

/cbse-class-12-computer-science-important-questions-brd

Do you have a question? Ask us.

  • Typical response between 24-48 hours

  • Get personalized response

  • Free of Cost

  • Access to community

Subscribe to CollegeDekho News

By proceeding ahead you expressly agree to the CollegeDekho terms of use and privacy policy

Trending Articles

Top
Planning to take admission in 2024? Connect with our college expert NOW!