Tamil Nadu Board of Secondary EducationHSC Science Class 12th
Advertisement Remove all ads

Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide chapter 13 - Python and CSV files [Latest edition]

Chapters

Class 12th Computer Science Answers Guide - Shaalaa.com
Advertisement Remove all ads
Advertisement Remove all ads
Advertisement Remove all ads

Chapter 13: Python and CSV files

Evaluation - Part - IEvaluation - Part - IIEvaluation - Part - IIIEvaluation - Part - IV
Advertisement Remove all ads
Evaluation - Part - I [Pages 264 - 265]

Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide Chapter 13 Python and CSV filesEvaluation - Part - I [Pages 264 - 265]

Choose the best answer

Evaluation - Part - I | Q 1. | Page 264

A CSV file is also known as a ______

  • Flat File

  • 3D File

  • String File

  • Random File

Evaluation - Part - I | Q 2. | Page 264

The expansion of CRLF is ______

  • Control Return and Line Feed

  • Carriage Return and Form Feed

  • Control Router and Line Feed

  • Carriage Return and Line Feed

Evaluation - Part - I | Q 3. | Page 264

Which of the following module is provided by Python to do several operations on the CSV files?

  • py

  • xls

  • csv

  • os

Evaluation - Part - I | Q 4. | Page 265

Which of the following mode is used when dealing with non-text files like image or exe files?

  • Text mode

  • Binary mode

  • xls mode

  • csv mode

Evaluation - Part - I | Q 5. | Page 265

The command used to skip a row in a CSV file is ______

  • next()

  • skip()

  • omit()

  • bounce()

Evaluation - Part - I | Q 6. | Page 265

Which of the following is a string used to terminate lines produced by the writer()method of the csv module?

  • Line Terminator

  • Enter key

  • Form feed

  • Data Terminator

Evaluation - Part - I | Q 7. | Page 265

What is the output of the following program? import csv

d=csv.reader(open('c:\PYPRG\ch13\city.csv'))
next(d)
for row in d:
   print(row)
if the file called “city.csv” contain the following details

chennai,mylapore
mumbai,andheri
  • chennai,mylapore

  • mumbai,andheri

  • chennai
    mumba

  • chennai,mylapore
    mumbai,andheri

Evaluation - Part - I | Q 8. | Page 265

Which of the following creates an object which maps data to a dictionary?

  • listreader()

  • reader()

  • tuplereader()

  • DictReader()

Evaluation - Part - I | Q 9. | Page 265

Making some changes in the data of the existing file or adding more data is called ______

  • Editing

  • Appending

  • Modification

  • Alteration

Evaluation - Part - I | Q 10. | Page 265

What will be written inside the file test.csv using the following program import csv

D = [['Exam'],['Quarterly'],['Halfyearly']]
csv.register_dialect('M',lineterminator = '\n')
with open('c:\pyprg\ch13\line2.csv', 'w') as f:
     wr = csv.writer(f,dialect='M')
     wr.writerows(D)
f.close()

  • Exam Quarterly Halfyearly

  • Exam Quarterly Halfyearly

  • E
    Q
    H

  • Exam,
    Quarterly,
    Halfyearly

Evaluation - Part - II [Page 266]

Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide Chapter 13 Python and CSV filesEvaluation - Part - II [Page 266]

Evaluation - Part - II | Q 1. | Page 266

What is CSV File?

Evaluation - Part - II | Q 2. | Page 266

Mention the two ways to read a CSV file using Python.

Evaluation - Part - II | Q 3. | Page 266

Mention the default modes of the File.

Evaluation - Part - II | Q 4. | Page 266

What is the use of the next() function?

Evaluation - Part - II | Q 5. | Page 266

How will you sort more than one column from a CSV file? Give an example statement.

Evaluation - Part - III [Page 266]

Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide Chapter 13 Python and CSV filesEvaluation - Part - III [Page 266]

Evaluation - Part - III | Q 1. | Page 266

Write a note on the open() function of python. What is the difference between the two methods?

Evaluation - Part - III | Q 2. | Page 266

Write a Python program to modify an existing file.

Evaluation - Part - III | Q 3. | Page 266

Write a Python program to read a CSV file with default delimiter comma (,).

Evaluation - Part - III | Q 4. | Page 266

What is the difference between the write mode and append mode?

Evaluation - Part - III | Q 5. | Page 266

What is the difference between reader() and DictReader() function?

Evaluation - Part - IV [Page 266]

Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide Chapter 13 Python and CSV filesEvaluation - Part - IV [Page 266]

Evaluation - Part - IV | Q 1. | Page 266

Differentiate Excel file and CSV file.

Evaluation - Part - IV | Q 2. | Page 266

Tabulate the different modes with their meaning.

Evaluation - Part - IV | Q 3. | Page 266

Write the different methods to read a File in Python.

Evaluation - Part - IV | Q 4. | Page 266

Write a Python program to write a CSV File with custom quotes.

Evaluation - Part - IV | Q 5. | Page 266

Write the rules to be followed to format the data in a CSV file.

Chapter 13: Python and CSV files

Evaluation - Part - IEvaluation - Part - IIEvaluation - Part - IIIEvaluation - Part - IV
Class 12th Computer Science Answers Guide - Shaalaa.com

Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide chapter 13 - Python and CSV files

Tamil Nadu Board Samacheer Kalvi solutions for Class 12th Computer Science Answers Guide chapter 13 (Python and CSV files) include all questions with solution and detail explanation. This will clear students doubts about any question and improve application skills while preparing for board exams. The detailed, step-by-step solutions will help you understand the concepts better and clear your confusions, if any. Shaalaa.com has the Tamil Nadu Board of Secondary Education Class 12th Computer Science Answers Guide solutions in a manner that help students grasp basic concepts better and faster.

Further, we at Shaalaa.com provide such solutions so that students can prepare for written exams. Tamil Nadu Board Samacheer Kalvi textbook solutions can be a core help for self-study and acts as a perfect self-help guidance for students.

Concepts covered in Class 12th Computer Science Answers Guide chapter 13 Python and CSV files are Introduction to Python and CSV Files, Difference Between CSV and XLS File Formats, Purpose of CSV File, Creating a CSV File Using Notepad (or Any Text Editor), Create A CSV File Using Microsoft Excel, Read and Write a CSV File Using Python, Writing Data into Different Types in CSV Files.

Using Tamil Nadu Board Samacheer Kalvi Class 12th solutions Python and CSV files exercise by students are an easy way to prepare for the exams, as they involve solutions arranged chapter-wise also page wise. The questions involved in Tamil Nadu Board Samacheer Kalvi Solutions are important questions that can be asked in the final exam. Maximum students of Tamil Nadu Board of Secondary Education Class 12th prefer Tamil Nadu Board Samacheer Kalvi Textbook Solutions to score more in exam.

Get the free view of chapter 13 Python and CSV files Class 12th extra questions for Class 12th Computer Science Answers Guide and can use Shaalaa.com to keep it handy for your exam preparation

Advertisement Remove all ads
Share
Notifications

View all notifications


      Forgot password?
View in app×