Important QuestionsClass 12 Computer Science
💻

Class 12 Computer ScienceImportant Questions for Board Exams

16

Total Questions

8

Long Answer

8

Short Answer

Ch 1

Exception Handling in Python

2 questions
1.

What is the difference between a syntax error and a runtime error? Give one example of each.

Short2M
2.

Write a Python program that takes two numbers as input and raises an exception if the divisor is zero. Use try-except-else-finally.

Long4M
Ch 2

File Handling in Python

2 questions
1.

Write a Python function to count the number of lines in a text file.

Long3M
2.

What is the difference between 'w' and 'a' mode in file handling?

Short2M
Ch 3

Data Handling with Pandas — Series and DataFrame

2 questions
1.

Write Python code to create a DataFrame from a dictionary and display only rows where marks > 80.

Long3M
2.

What are the parameters of read_csv()? Explain: filepath, sep, header, index_col.

Short2M
Ch 4

Data Visualisation with Matplotlib

2 questions
1.

Write Python code to draw a bar chart showing the marks of 5 students using Matplotlib.

Long3M
2.

When would you choose a histogram over a bar chart? Give one example.

Short2M
Ch 5

Computer Networks

2 questions
1.

Explain the OSI model. State the function of each layer.

Long5M
2.

Distinguish between a hub and a switch. Which is more efficient and why?

Short2M
Ch 6

Database Concepts

2 questions
1.

What is a primary key? How does it differ from a candidate key and a foreign key?

Long3M
2.

State four advantages of using a DBMS over a flat file system.

Short2M
Ch 7

Structured Query Language (SQL)

2 questions
1.

Write SQL queries to: (a) Create a table Student(RollNo, Name, Marks, Grade) (b) Insert a row (c) Display students with Marks > 80 ordered by Name.

Long4M
2.

What is the difference between WHERE and HAVING clause in SQL?

Short2M
Ch 8

Society, Law and Ethics in IT

2 questions
1.

What is phishing? How is it different from hacking? What are the precautions against each?

Long3M
2.

What is net neutrality? Why is it important for internet users?

Short2M
CBSE Class 10 · Phase 2 Board Exam · May 2026

Appearing for the May Phase 2 Board Exam? Practice with AI-ranked questions.

Built for the May 2026 Phase 2 Board Exam — board paper analysis + unlimited practice for Maths, Science, English & SST.

Improvement · May 2026

Mathematics

299
599
Access to all CBSE Class 10 Maths chapters
Know which questions are most likely to come in your exam
Study by Chapter or by Section (A–E)
Step-by-step solutions for every question
AI-revealed high probability questions
Pattern recognition across past CBSE papers
Expected Paper for Phase 2 Board Exam (unlocks 3 weeks before)
Improvement · May 2026

Science

299
599
Access to all CBSE Class 10 Science chapters
Know which questions are most likely to come in your exam
Study by Chapter or by Section (A–E)
Step-by-step solutions for every question
AI-revealed high probability questions
Pattern recognition across past CBSE papers
Expected Paper for Phase 2 Board Exam (unlocks 3 weeks before)
★ Best Value · May 2026

Maths and Science

Maths · Science

+ SST & English Free
499
998
Both subjects — Maths & Science
Know which questions are most likely to come in your exam
Study by Chapter or by Section (A–E)
Step-by-step solutions for every question
AI-revealed high probability questions
Pattern recognition across past CBSE papers
Expected Paper for Phase 2 Board Exam (unlocks 3 weeks before)
Instant access
Valid till board exam
Secure payment — Razorpay
Phase 2 Board Exam · May 2026

CBSE Class 10 — Board Pattern