📕 छपी हुई किताब — घर तक India Post डिलीवरी, live tracking →
MP Board Class 12 Computer Science Board Exam 2024 Question Paper Solved

MP Board Class 12 Computer Science 2024 Board Paper Solved

MP Board Class 12 Computer Science Board Exam 2024 — Solved Question Paper

MP Board Class 12 Computer Science Board Exam 2024 Question Paper Solved
MP Board MP Board Class 12 Computer Science Board Exam 2024 Question Paper Solved

Previous Year Papers (PYQs) are the most reliable weapon for scoring high in the MP Board Class 12 Computer Science exam. The MPBSE repeats question patterns, programming concepts and SQL query types year after year. This post gives you a fully solved Class 12 Computer Science 2024 board paper — Section A to Section D — with step-by-step answers, Python code, SQL queries and marking guidance, so you can practise exactly like the real exam.

Exam Pattern Overview (Class 12 Computer Science)

The MP Board Class 12 Computer Science exam is conducted for a total of 100 marks — 70 marks theory + 30 marks practical. The theory paper is of 3 hours 15 minutes (15 minutes extra for reading the question paper). The minimum passing marks are 33%.

  • Section A — Objective / Very Short Answer questions: 1 mark each
  • Section B — Short Answer Type questions: 2 marks each
  • Section C — Long Answer Type questions: 3 marks each
  • Section D — Very Long Answer / Application questions: 4–5 marks each
  • Practical Exam — 30 marks (Python program writing, SQL queries, viva-voce, practical file)

Python programming, MySQL and Computer Networks carry the maximum weightage in the paper. If you master these three units, you can easily secure 50+ marks in the theory paper alone.

Section A — Objective Questions (1 Mark Each)

Q1. Which keyword is used to define a function in Python?

Answer: def. Example: def add(a, b): return a + b

Q2. What will be the output of print(2 ** 3)?

Answer: 8. The ** operator is the exponent (power) operator in Python.

Q3. Which SQL command is used to delete all rows of a table permanently?

Answer: TRUNCATE (or DELETE without a WHERE clause). TRUNCATE removes all records but keeps the table structure.

Q4. Name the protocol that is used to transfer web pages over the Internet.

Answer: HTTP (HyperText Transfer Protocol). HTTPS is its secure version.

Q5. What is the full form of LAN?

Answer: Local Area Network — a network confined to a small area such as a school lab or office.

Q6. Which built-in function converts a string like “45” into an integer?

Answer: int(). Example: int("45") returns the integer 45.

Section B — Short Answer Questions (2 Marks Each)

Q7. Differentiate between List and Tuple in Python.

Answer:

  • List is mutable (can be changed after creation) and is declared with square brackets [ ]. Example: L = [1, 2, 3].
  • Tuple is immutable (cannot be changed after creation) and is declared with parentheses ( ). Example: T = (1, 2, 3).

Q8. Write Python code to check whether a number is even or odd.

num = int(input("Enter a number: "))
if num % 2 == 0:
    print(num, "is Even")
else:
    print(num, "is Odd")

Q9. What is a Primary Key in a database? Give one example.

Answer: A primary key is a column (or set of columns) whose values uniquely identify each row of a table. It cannot contain NULL or duplicate values. Example: Roll_No in a Student table.

Section C — Long Answer Questions (3 Marks Each)

Q10. Write a Python program to find the factorial of a number using a user-defined function.

def factorial(n):
    fact = 1
    for i in range(1, n + 1):
        fact = fact * i
    return fact

num = int(input("Enter a number: "))
print("Factorial =", factorial(num))

Output (for input 5): Factorial = 120

Q11. Create a table named Student and write SQL queries to insert records and display students scoring more than 60 marks.

CREATE TABLE Student (
    Roll_No INT PRIMARY KEY,
    Name VARCHAR(30),
    Marks INT
);

INSERT INTO Student VALUES (101, 'Aman', 78);
INSERT INTO Student VALUES (102, 'Priya', 55);
INSERT INTO Student VALUES (103, 'Rahul', 85);

SELECT * FROM Student WHERE Marks > 60;

Result: Rows of Aman (78) and Rahul (85) will be displayed.

Q12. Explain the different file opening modes in Python with examples.

  • "r" — read mode: opens the file for reading only (default). Error if the file does not exist.
  • "w" — write mode: opens the file for writing, creates the file if missing, and overwrites existing content.
  • "a" — append mode: opens the file for writing but adds new content at the end without deleting old data.
  • "r+" — read and write mode: allows both reading and writing without truncating the file.

Section D — Very Long / Application Questions (4–5 Marks Each)

Q13. Write a Python program using a class to store the name and marks of a student and display them. (OOP-based question)

class Student:
    def __init__(self, name, marks):
        self.name = name
        self.marks = marks

    def display(self):
        print("Name:", self.name)
        print("Marks:", self.marks)

s = Student("Neha", 92)
s.display()

Output:

Name: Neha
Marks: 92

Q14. Consider the table Employee with columns Emp_Id, Emp_Name, Dept, Salary. Write SQL queries for the following:

-- (a) Display all employees of the 'Sales' department:
SELECT * FROM Employee WHERE Dept = 'Sales';

-- (b) Display employee names in descending order of salary:
SELECT Emp_Name FROM Employee ORDER BY Salary DESC;

-- (c) Display the average salary of each department:
SELECT Dept, AVG(Salary) FROM Employee GROUP BY Dept;

-- (d) Increase the salary of all employees by 2000:
UPDATE Employee SET Salary = Salary + 2000;

Q15. Explain any three network topologies with their advantages and disadvantages.

  • Star Topology: All nodes connect to a central hub/switch. Advantage — if one node fails, the network still works; easy to add new nodes. Disadvantage — if the hub fails, the whole network stops.
  • Bus Topology: All nodes share a single backbone cable. Advantage — low cable cost, easy to install. Disadvantage — a break in the backbone stops the entire network; troubleshooting is difficult.
  • Ring Topology: Each node connects to exactly two neighbours forming a ring; data travels in one direction. Advantage — data packets move at high speed with no collisions. Disadvantage — failure of one node can break the whole ring.

Chapter-wise Weightage (Trend of Last 3 Years)

Unit / Chapter Approx. Marks
Python Fundamentals, Tokens & Operators 10–12
Control Structures & Functions 10–14
Strings, Lists, Tuples, Dictionaries 12–14
File Handling in Python 6–8
Object Oriented Programming (Class & Objects) 8–10
Database Concepts & MySQL (SQL queries) 14–18
Computer Networks & Internet 8–10
Total (Theory) 70

These figures are based on the trend of the last three board papers — the exact distribution can vary slightly each year, but SQL and Python programming questions almost always dominate Sections C and D.

Common Mistakes to Avoid

  • Forgetting indentation: Python treats indentation as syntax. Always maintain consistent 4-space indentation inside loops, functions and conditions.
  • Writing SQL keywords wrongly: Practise spellings — SELECT, WHERE, ORDER BY, GROUP BY, HAVING are the most common sources of silly errors.
  • Not drawing diagrams: In networking questions (topologies, OSI model), always draw a neat, labelled diagram — it fetches full marks.
  • Ignoring output-based questions: Dry-run every Python code mentally before writing the answer. Trace tables help.
  • Skipping the practical file: A complete practical file (15+ programs) earns easy marks in the 30-mark practical exam.

How to Use This Solved Paper

  • First 60 minutes: Attempt Section A and B yourself without seeing the answers — this builds speed for 1 and 2-mark questions.
  • Next 90 minutes: Solve Section C and D on paper, then compare your code and SQL with the solutions given above.
  • Last 30 minutes: Revise the mistakes, rewrite the Python programs you could not complete, and re-practise the SQL queries.
  • Repeat this cycle with the 2023 and 2025 papers to cover the complete trend.

FAQs

Q1. Is the 2024 Computer Science paper important for the 2027 MP Board exam?

Yes. MPBSE frequently repeats question patterns and even similar SQL queries and Python programs. Solving the 2024 paper is one of the fastest ways to prepare for 2027.

Q2. How many marks is the Class 12 Computer Science theory paper?

The theory paper is of 70 marks and the practical exam is of 30 marks, making a total of 100 marks.

Q3. What is the passing marks in Computer Science?

The passing marks are 33% — a student must score at least 23 marks out of 70 in theory (or equivalent combined marks as per board rules).

Q4. Which topics should I focus on most?

MySQL/SQL queries, Python functions and programs, file handling and networking (with diagrams) — together these cover more than 50 marks.

Q5. Can I download the official 2024 question paper PDF?

Yes — use the download link below and also check the official MPBSE website (mpbse.nic.in) for the scanned original paper.

Download PDF

Download the solved paper PDF: MP Board Class 12 Computer Science 2024 Solved Paper PDF

Disclaimer: This solved paper is prepared by expert teachers for practice purposes based on the MP Board syllabus and previous years’ trends. Students should also refer to the official MPBSE website for the original question paper and marking scheme. Last updated: 23 August 2026.

📚 Related Study Material

📅 Last updated: 9 Nov 2026  ·  Published: 23 Aug 2026  ·  Source: MPBSE syllabus & official papers

Source: question paper MPBSE (madhya pradesh board) ki official/public exam paper se liya gaya hai; har question ka solution, marking scheme aur explanation mpboard.ai ki original content hai. Official copy: mpbse.nic.in. Koi copyright issue ho to hum 72 ghante me hata denge — contact.

इसी तरह के सवाल बोर्ड में हर साल आते हैं
कक्षा 12 के 2010–2026 के असली बोर्ड पेपरों से निकाले गए प्रश्न, हर टॉपिक का तैयार हल।
Class 12 Science — exam ke liye ye 3 cheezein free hain
Board pattern PYQ · chapter-wise notes · 2027 ke expected questions
Printed book chahiye? COD par mangao · Store: mpboard.ai/reader