Empowering Students with AI-Powered Assessments & Intelligent Learning
Chapter Exam

Chapter 13: Python and CSV Files — Online MCQ Test

COMPUTER SCIENCE · CLASS 12th · Tamil Nadu State Board

Practice Chapter 13: Python and CSV Files with a free chapter-wise online MCQ test for Tamil Nadu State Board CLASS 12th COMPUTER SCIENCE. This chapter covers: This chapter bridges Python programming with external tabular storage using the built-in CSV module. It details reading writing and appending comma-separated data along with custom.... AI-generated questions from basic to board-exam level, with instant results and explanations.

10
Questions
20m
Time Limit
3
Attempts Left
  • 10 random questions from this chapter (mixed difficulty)
  • Questions you've seen before won't repeat until the pool resets
  • You have 20 minutes — exam auto-submits when time is up
  • Maximum 3 attempts per chapter
  • Results and explanations shown immediately after submission
Login to Start This Exam →

New here? Register free — includes 3 free chapter exams.

Chapter 13: Python and CSV Files — Important Questions & Answers (FAQ)

Frequently asked questions from Tamil Nadu State Board CLASS 12th COMPUTER SCIENCE — Chapter 13: Python and CSV Files, with answers and explanations. These are sample questions; the exam has its own separate question set.

Which Python module is used to read and write CSV files?
  • A. csv ✓
  • B. file
  • C. tabular
  • D. data
Answer: A. csv
The built-in csv module provides functions and classes to work with comma-separated values files.
What does CSV stand for?
  • A. Comma Separated Values ✓
  • B. Common Standard Values
  • C. Computer Stored Values
  • D. Comma Storage Vector
Answer: A. Comma Separated Values
CSV is a text format where values are separated by commas or other delimiters.
What does the writerow() method do in the csv module?
  • A. Reads one row from a CSV file
  • B. Writes a single row to a CSV file ✓
  • C. Deletes a row from a CSV file
  • D. Counts rows in a CSV file
Answer: B. Writes a single row to a CSV file
writerow() is used with a csv writer object to write one row of data at a time.
Which statement is NOT correct about CSV files?
  • A. They store tabular data
  • B. They can be opened using a text editor
  • C. They always use only commas and no other delimiters ✓
  • D. They are plain text files
Answer: C. They always use only commas and no other delimiters
CSV files may use different delimiters such as semicolon, tab, or pipe depending on the format.
Which of the following is the correct way to create a CSV writer object for a file object f?
  • A. csv.reader(f)
  • B. csv.writer(f) ✓
  • C. csv.write(f)
  • D. csv.DictReader(f)
Answer: B. csv.writer(f)
csv.writer(f) returns a writer object that can write rows into the file.

Choose Your Plan & Start Practising

All plans cover every subject and chapter of your registered grade.

Free
₹0
3 exams · 1 year
Start Free →
Active
₹350
12 exams · 1 year
Get Active →
Pro
₹899
Unlimited exams · 1 year
Get Pro →

Compare all plans in detail →