TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Python and CSV files: Additional Online Practice Test

Share this chapter: Telegram

Pick how many questions you want and set a time limit, then start. You'll get your score at the end with the correct answer and an explanation for every question. Free, in Tamil and English — 15 questions available.

Set up your test

Time remaining00:00
Q1
Which of the following file extensions is used for saving a Comma-Separated Values file?
Q2
What is another name commonly used to refer to a CSV file because of its plain, tabular structure?
Q3
If a specific field in a CSV file contains a comma as part of its actual data, how should that field be formatted?
Q4
When field data in a CSV file contains double-quotes as part of its actual value, how is it represented under standard formatting rules?
Q5
Which Python module provides the built-in library functions to parse and process CSV files?
Q6
What is the default file opening mode when using the built-in open() function in Python?
Q7
Which block statement is recommended to open files in Python to ensure they are automatically closed even if an exception occurs?
Q8
Which method of the csv.writer class is used to write a single row of data into a CSV file?
Q9
Which class of the Python csv module reads a CSV file and maps its data rows to dictionaries instead of lists?
Q10
What subclass of dictionary does the csv.DictReader class return by default for each row it iterates over in Python?
Q11
How can the default OrderedDict returned by csv.DictReader be converted into a standard Python dictionary?
Q12
Which formatting parameter of csv.register_dialect() is set to True to remove whitespaces immediately following a delimiter?
Q13
Which built-in Python function can be used to skip the header row of a CSV file before sorting or processing its data rows?
Q14
To sort a CSV file based on multiple columns, which operator function is passed as a key in the sorted() function?
Q15
Which of the following line terminators are accepted by Python's CSV module for terminating rows?

More for this chapter

Book Back Questions10 textbook MCQs · solved Additional MCQs15 extra MCQs · solved Practice TestInteractive · instant score Book Back TestTest yourself on the textbook set Study NotesConcepts & methods Formula SheetAll key formulas

About this Python and CSV files test

This free online practice test covers Python and CSV files from the 12th Standard Computer Science (Samacheer Kalvi) syllabus. Choose the number of questions and an optional time limit, then answer and submit — everything is checked in your browser, with the correct answers and a worked explanation shown at the end. For the full solutions to every question in this set, see the solved MCQs page.

More chapters in Computer Science

View all
1 Function 2 Data Abstraction 3 Scoping 4 Algorithmic Strategies 5 Python -Variables and Operators 6 Control Structures 7 Python functions 8 Strings and String manipulation 9 Lists, Tuples, Sets and Dictionary 10 Python Classes and objects 11 Database Concepts 12 Structured Query Language (SQL) 14 Importing C++ programs in Python. 15 Data manipulation through SQL 16 Data visualization using pyplot: line chart, pie chart and bar chart