Plus Two / 12th Computer Science - Book Back Answers - Chapter 13 - English Medium
Tamil Nadu Board 12th Standard Computer Science - Chapter 13: Book Back Answers and Solutions
This post covers the book back answers and solutions for Chapter 13 from the Tamil Nadu State Board 12th Standard Computer Science textbook. These detailed answers have been carefully prepared by our expert teachers at KalviTips.com.
We have explained each answer in a simple, easy-to-understand format, highlighting important points step by step under the relevant subtopics. Students are advised to read and memorize these subtopics thoroughly. Once you understand the main concepts, you’ll be able to connect other related points with real-life examples and confidently present them in your tests and exams.
By going through this material, you’ll gain a strong understanding of Chapter 13 along with the corresponding book back questions and answers (PDF format).
Question Types Covered:
- 1 Mark Questions: Choose the correct answer, Fill in the blanks, Identify the correct statement, Match the following
- 2 Mark Questions: Answer briefly
- 3, 4, and 5 Mark Questions: Answer in detail
All answers are presented in a clear and student-friendly manner, focusing on key points to help you score full marks.
All the best, Class 12 students! Prepare well and aim for top scores. Thank you!
Chapter 13: Python and CSV files
I. Choose the correct answer.
1. A CSV file is also known as a ….
(A) Flat File
(B) 3D File
(C) String File
(D) Random File
Answer Key:
(A) Flat File
2. The expansion of CRLF is
(A) Control Return and Line Feed
(B) Carriage Return and Form Feed
(C) Control Router and Line Feed
(D) Carriage Return and Line Feed
Answer Key:
(D) Carriage Return and Line Feed
3. Which of the following module is provided by Python to do several operations on then CSV files?
(A) py
(B) xls
(C) csv
(D) os
Answer Key:
(C) csv
4. Which of the following mode is used when dealing with non-text files like image or exe files?
(A) Text mode
(B) Binary mode
(C) xls mode
(D) csv mode
Answer Key:
(B) Binary mode
5. The command used to skip a row in a CSV file is
(A) next()
(B) skip()
(C) omit()
(D) bounce()
Answer Key:
(A) next()
6. Which of the following is a string used to terminate lines produced by writer()method of csv module?
(A) Line Terminator
(B) Enter key
(C) Form feed
(D) Data Terminator
Answer Key:
(A) Line Terminator
7. 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
A) chennai,mylapore
(B) mumbai,andheri
(C) chennai mumba
(D) chennai,mylapore
mumbai,andheri
Answer Key:
(B) mumbai,andheri
8. Which of the following creates an object which maps data to a dictionary?
(A) listreader()
(B) reader()
(C) tuplereader()
(D) DictReader ()
Answer Key:
(D) DictReader ()
9. Making some changes in the data of the existing file or adding more data is called
(A)Editing
(B) Appending
(C)Modification
(D) Alteration
Answer Key:
(C)Modification
10. 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()
(A) Exam Quarterly Halfyearly
(B) Exam Quarterly Halfyearly
(C) E
Q
H
(D) Exam,
Quarterly,
Halfyearly
Answer Key:
(D) Exam,
Quarterly,
Halfyearly
(A) Flat File
(B) 3D File
(C) String File
(D) Random File
Answer Key:
(A) Flat File
2. The expansion of CRLF is
(A) Control Return and Line Feed
(B) Carriage Return and Form Feed
(C) Control Router and Line Feed
(D) Carriage Return and Line Feed
Answer Key:
(D) Carriage Return and Line Feed
3. Which of the following module is provided by Python to do several operations on then CSV files?
(A) py
(B) xls
(C) csv
(D) os
Answer Key:
(C) csv
4. Which of the following mode is used when dealing with non-text files like image or exe files?
(A) Text mode
(B) Binary mode
(C) xls mode
(D) csv mode
Answer Key:
(B) Binary mode
5. The command used to skip a row in a CSV file is
(A) next()
(B) skip()
(C) omit()
(D) bounce()
Answer Key:
(A) next()
6. Which of the following is a string used to terminate lines produced by writer()method of csv module?
(A) Line Terminator
(B) Enter key
(C) Form feed
(D) Data Terminator
Answer Key:
(A) Line Terminator
7. 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
A) chennai,mylapore
(B) mumbai,andheri
(C) chennai mumba
(D) chennai,mylapore
mumbai,andheri
Answer Key:
(B) mumbai,andheri
8. Which of the following creates an object which maps data to a dictionary?
(A) listreader()
(B) reader()
(C) tuplereader()
(D) DictReader ()
Answer Key:
(D) DictReader ()
9. Making some changes in the data of the existing file or adding more data is called
(A)Editing
(B) Appending
(C)Modification
(D) Alteration
Answer Key:
(C)Modification
10. 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()
(A) Exam Quarterly Halfyearly
(B) Exam Quarterly Halfyearly
(C) E
Q
H
(D) Exam,
Quarterly,
Halfyearly
Answer Key:
(D) Exam,
Quarterly,
Halfyearly
II.Answer the following questions.
12th Computer Science (soon)
III. Answer the following questions.
12th Computer Science (Soon)
IV. Answer the following questions.
12th Computer Science (Soon)
0 Comments:
Post a Comment