Computer Science
Every record in a CSV file is stored in reader object in the form of a list using which method?
- writer()
- append()
- reader()
- list()
Related Questions
What happens if no arguments are passed to the seek() method?
- file position is set to the start of file
- file position is set to the end of file
- file position remains unchanged
- results in an error
Which of the following mode will refer to binary data ?
- r
- w
- +
- b
For storing numeric data in a text file, it needs to be converted into …………… using …………… function.
- integer, int()
- integer, float()
- string, int()
- string, str()
Assertion (A): The file in Python is used to store information on a named location in the secondary storage device.
Reasoning (R): In Python, files are classified as program files and data files and as per the file type store the data specific to its use and purpose.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.