Logo Icon

CBSE Class 12 Computer Science Important Question with Solutions 2025

Author : Nashid

September 14, 2024

SHARE

Overview: Discover some important questions for CBSE class 12 Computer Science to guide you in your preparation journey.

The CBSE Class 12 Computer Science exam is a crucial stepping stone for students aspiring to careers in technology. A strong performance in this exam not only enhances overall grades but also solidifies a foundation for advanced computer science studies.

 Let’s explore important questions and their solutions to guide your preparation for the CBSE Class 12 Computer Science exam.

CBSE Class 12 Computer Science

CBSE Class 12 Computer Science Marks Distribution

This CBSE Syllabus for Class 12 along with each unit’s marking scheme is given below -

Unit No. Unit Name Marks Periods
Theory Practical
1. Computational Thinking and
Programming – 2
40 70 50
2. Computer Networks 10 15
3. Database Management 20 25 20
Total 70 110 70

CBSE Class 12 Computer Science Practical Syllabus and Mark Distribution

S.No Unit Name Marks (Total=30)
1 Lab Test: 1. Python program (60% logic + 20% documentation + 20% code quality) 8
2. SQL queries (4 queries based on one or two tables) 4
2 Report file: · Minimum 15 Python programs, SQL Queries – Minimum 5 sets using one table / two tables, Minimum 4 programs based on Python – SQL connectivity 7
3 Project (using concepts learnt in Classes 11 and 12) 8
4 Viva voce 3

Check Out: CBSE Class 12 Chemistry Reference books

cuet exam results

cuet exam results

CBSE Class 12 Computer Science Sample Questions with Solutions 2025

Important MCQs for CBSE Class 12 Computer Science

Q1: Given the following Tuple - Tup = (10, 20, 30, 50) Which of the following statements will result in an error? 

(a) print (Tup [0])

(b) Tup.insert 

(c) print (Tup [1:2])

(d) print (len (Tup))

Answer: Tup.insert 

Check Out: CBSE class 12 Computer Science Exam Pattern

Q2: Consider the given expression: 5<10 and 12>7 or not 7>4 Which of the following will be the correct output of the given expression evaluated? 

(a) True

(b) False

(c) NONE

(d) NULL

Answer: True

Q3: Fill in the blank: ___ is used for point-to-point communication or unicast communication such as radar and satellite. 

(a) Infrared waves

(b) Bluetooth

(c) Microwaves

(d) Radiowaves

Answer: Microwaves

Check Out: CBSE 2023 Toppers Talk

Q4: Fill in the blank: ___ clause is used with a SELECT statement to display data in a sorted form with respect to a specified column.

(a) Where

(b) Order by

(c) Having 

(d) Distinct

Answer: (b) Order by

Q5: What will the following expression be evaluated to in Python? print (4+3*5/3-5%2) 

(a) 8.5

(b) 8.0

(c) 10.2

(d) 10.0

Answer: (b) 8.0

Check Out: CBSE Class 12 Applied Mathematics

Q6: fetchall () method fetches all rows in a result set and returns a: 

(a) Tuple of lists

(b) List of Tuples

(c) List of strings

(d) Tuple of strings

Answer: (b) List of Tuples

Check Out: How to get 90+ Marks in Economics Class 12 CBSE Board?

Q7: Which function returns the sum of all elements of a list? 

(a) count ()

(b) sum ()

(c) total ()

(d) add ()

Answer: (b) sum ()

Q8: What error occurs when you execute the following Python code snippet? apple = mango

a) SyntaxError

b) NameError

c) ValueError

d) TypeError

Answer. b) NameError

Q9. Which point can be considered as difference between string and list?

a) Length

b) Mutability 

c) Indexing and Slicing

d) Accessing individual elements

Answer: B) Mutability

Q10. To read the entire remaining contents of the file as a string from a file object myfile, we use

a) myfile.read(2)

b) myfile.read()

c) myfile.readline()

d) myfile.readlines()

Answer: b) myfile.read()

Other Important Questions for CBSE Class 12 Computer Science

Q1: What is polymorphism?

Answer: Polymorphism in computer science refers to the ability of a function, method, or operator to behave differently based on the inputs. In Object-Oriented Programming, it allows objects of different classes to be treated as objects of a common superclass.

Q2: Write a Python program to find the factorial of a number.

Answer:

def factorial_iterative(n):
    result = 1
    for i in range(1, n + 1):
        result *= i
    return result

# Example usage
number = 5
print(f"The factorial of {number} (iterative) is: {factorial_iterative(number)}")

Check Out: Best Books for CBSE Class 12 Computer Science

Q3: Explain Data Abstraction with an example.

Answer: Data Abstraction refers to providing only essential information while hiding the details. For example, a car's dashboard shows speed and fuel level without showing the engine's complexities.

Q4: What are tokens in C++?

Answer: Tokens are the smallest units in a C++ program. These could be keywords, identifiers, literals, operators, and punctuation symbols.

Q5: Write the output of the code given below: 

def short_sub(lst, n): 
    for i in range(n): 
        if len(lst) > 4:
            lst[i] = lst[i] + lst[i]
        else: 
            lst[i] = lst[i]

subject = ['CS', 'HINDI', 'PHYSICS', 'CHEMISTRY', 'MATHS']
short_sub(subject, 5)
print(subject)

Answer: ['CSCS', 'HINDIHINDI', 'PHYSICSPHYSICS', 'CHEMISTRYCHEMISTRY', 'MATHSMATHS']

Q6: Differentiate between wired and wireless transmission. 

Answer:

Aspect Wired Transmission Wireless Transmission
Definition Uses physical cables (e.g., twisted pair, coaxial, fiber optic) to transmit data Uses electromagnetic waves (e.g., Wi-Fi, Bluetooth, cellular) to transmit data
Advantages Stable connection Greater mobility
More secure Easier installation
Higher speeds More convenient
Disadvantages Limited mobility Potential interference
Difficult and costly to install Less secure
Requires maintenance Generally slower speeds than wired

Check Out: CBSE Class 12 Computer Science Viva Questions

Q7: Differentiate between URL and domain name with the help of an appropriate example. 

Answer:

A URL (Uniform Resource Locator) is the full address used to access a specific resource on the internet, while a domain name is a part of the URL that represents the main address of a website.

Example:

URL: https://www.example.com/page1.html - This specifies the protocol (https), the domain name (example.com), and the specific page (/page1.html).

Domain Name: example.com - This is the main address of the website, which can host various pages and resources.

Q8: Given is a Python list declaration, what will be the output

Listofnames = ["Aman", "Ankit", "Ashish", "Rajan", "Rajat"]
print(Listofnames[-1:3:-1])

Answer: ['Rajat']

Q9: Consider the following tuple declaration: Write the output of: 

tupl = (10, 20, 30, (10, 20, 30), 40)
print(tupl.index(20))

Answer: 1

Q10: Differentiate between % (percentage) and _(underscore) characters used with the LIKE operator in SQL with appropriate examples.

Answer:

% (percentage): Matches zero, one, or more characters.

Example: WHERE name LIKE 'A%' finds all names starting with 'A'.

_ (underscore): Matches exactly one character.

Example: WHERE name LIKE '_orld' finds all five-letter names ending with 'orld'.

Check Out: CBSE class 12 Chemistry Marking scheme

Preparation Plan for CBSE Class 12 Computer Science 2025

This article is designed to guide you through your preparation and help you tackle some of the most challenging aspects of the subject.

  • Understanding the Syllabus: Familiarise yourself with the CBSE Class 12 Computer Science syllabus.
  • Timetable: Prepare a structured timetable dedicating specific hours to theory and programming practice.
  • Programming Languages: Get comfortable with the programming languages specified in your syllabus (usually C++ or Python).
  • Reference Books: Refer to standard textbooks and sample papers.
  • Mock Tests: Take regular mock tests to identify your strong and weak areas.
  • Regular Revision: Allocate the last month before the exam solely for revision.
  • Stay Updated: Follow the CBSE official website for any updates or changes in the syllabus or exam pattern.

CBSE Class 12 Computer Science Reference Books 

  • NCERT Computer Science Textbooks
  • Computer Science with C++ by Sumita Arora
  • Python for Class 12 by Sumita Arora
  • CBSE All In One Computer Science with Python Class 12 2022-23 Edition by Neetu Gaikwad
  • Data Structures Through C++ by Yashwant Kanetkar

Check Out: CBSE Class 12 English Elective Syllabus 

Key Takeaways

  • The CBSE Class 12 Computer Science exam requires a balanced approach between theory and practical skills.
  • A well-planned study schedule, coupled with regular practice and revision, is key to excelling in this subject.
  • Utilise the questions and solutions provided in this article for effective preparation.

By investing your time wisely and using the resources outlined in this article, you can ensure a robust preparation for the CBSE Class 12 Computer Science exam. Good luck!

Frequently Asked Questions

Are there any sample questions available for the practical viva questions?

Expand Faq Icon

How many practical viva questions are normally asked in the examination?

Expand Faq Icon

How should I split my time between theory and programming?

Expand Faq Icon

Are NCERT books sufficient for preparation?

Expand Faq Icon

Is it necessary to solve the previous year's question papers?

Expand Faq Icon

How can I improve my programming skills?

Expand Faq Icon