Authentic CBSE board questions & official stepwise marking scheme solutions for CSV Files (Chapter 4C).
CSV File Handling PYQs (2022–2026)
Board questions for tabular data handling with Python csv module: csv.reader(), csv.writer(), writerow(), writerows(), custom delimiters, and handling newline="" parameters.
Key Topics: csv Module, csv.reader() Iteration, csv.writer() & writerow(), delimiter & newline Parameters, Tabular Student/Product Search
CSV Files Previous Year Questions & Solutions (4 Questions)
Q33 • CBSE 2026 • 4 Marks • CSV Files (Chapter 4C)
CBSE Class 12 CSV Files (Chapter 4C) (2026) 4-Mark Board Question Q33
Official CBSE Marking Scheme Solution
import csv
with open("States.csv", newline="") as src, open("More.csv", "w", newline="") as dst:
reader = csv.reader(src)
writer = csv.writer(dst)
next(reader, None) # skip header
for row in reader:
if int(row[2]) > 10000000:
writer.writerow(row)

Q33 • CBSE 2025 • 4 Marks • CSV Files (Chapter 4C)
CBSE Class 12 CSV Files (Chapter 4C) (2025) 4-Mark Board Question Q33
Official CBSE Marking Scheme Solution
import csv
def read_data():
with open("P_record.csv", newline="") as f:
for row in csv.reader(f):
if row and row[1].lower() == "cancer":
print(*row)
def count_rec():
with open("P_record.csv", newline="") as f:
return sum(1 for row in csv.reader(f))

Q32 • CBSE 2024 • 4 Marks • CSV Files (Chapter 4C)
CBSE Class 12 CSV Files (Chapter 4C) (2024) 4-Mark Board Question Q32
Official CBSE Marking Scheme Solution
import csv
def Add_Device():
row = [int(input("ID: ")), input("Name: "), int(input("Price: "))]
with open("Peripheral.csv", "a", newline="") as f:
csv.writer(f).writerow(row)
def Count_Device():
with open("Peripheral.csv", newline="") as f:
print(sum(1 for row in csv.reader(f) if row and int(row[2]) < 1000))

Q33 • CBSE 2023 • 4 Marks • CSV Files (Chapter 4C)
CBSE Class 12 CSV Files (Chapter 4C) (2023) 4-Mark Board Question Q33
Official CBSE Marking Scheme Solution
CSV stores structured records in delimited rows and is commonly handled with csv.reader/csv.writer; a plain text file has no
required row/field structure.
