New ! Computer Science MCQ Practise Tests



Python and CSV Files Model Question Paper

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 02:00:00 Hrs
Total Marks : 50
    5 x 1 = 5
  1. A CSV file is also known as a ….

    (a)

    Flat File

    (b)

    3D File

    (c)

    String File

    (d)

    Random File

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

    (a)

    py

    (b)

    xls

    (c)

    csv

    (d)

    os

  3. 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

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

    (a)

    listreader()

    (b)

    reader()

    (c)

    tuplereader()

    (d)

    DictReader ()

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

    (a)

    Editing

    (b)

    Appending

    (c)

    Modification

    (d)

    Alteration

  6. 5 x 2 = 10
  7. What is CSV File?

  8. Mention the default modes of the File.

  9. What is use of next() function?

  10. Why CSV file is known as flat file?

  11. What is the use of CSV file?

  12. 5 x 3 = 15
  13. Write a note on open() function of python. What is the difference between the two methods?

  14. Write a Python program to modify an existing file.

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

  16. How will you create CSV normal file?

  17. Write the syntax of reader( ).

  18. 4 x 5 = 20
  19. Differentiate Excel file and CSV file.

  20. Write the different methods to read a File in Python.

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

  22. Write a program to read a specific column in a CSV file.

*****************************************

Reviews & Comments about 12th Standard Computer Science - Python and CSV Files Model Question Paper

Write your Comment