Advertisements
Advertisements
प्रश्न
Assertion (A): CSV file is a human readable text file where each line has a number of fields, separated by comma or some other delimiter.
Reason (R): writerow()
method is used to write a single row in a CSV file.
पर्याय
Both (A) and (R) are true and (R) is the correct explanation for (A).
Both (A) and (R) are true and (R) is not the correct explanation for (A).
(A) is true but (R) is false.
(A) is false but (R) is true.
उत्तर
Both (A) and (R) are true and (R) is not the correct explanation for (A).
Explanation:
Comma-separated values files are text files that store data in a record-like format separated by commas or other boundaries. The writerow() function generates a single row of data in a CSV file. Although both statements are true, the reasoning behind the assertion statement is invalid.