New ! Computer Science MCQ Practise Tests



Python and CSV Files Model Question Paper 1

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 50
    5 x 1 = 5
  1. The command used to skip a row in a CSV file is

    (a)

    next()

    (b)

    skip()

    (c)

    omit()

    (d)

    bounce()

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

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

    (a)

    Editing

    (b)

    Appending

    (c)

    Modification

    (d)

    Alteration

  4. Which of the following can protect if the data itself contains commas in CSV file?

    (a)

    ' '

    (b)

    , ,

    (c)

    " "

  5. Fields containing line breaks denoted by

    (a)

    CSV

    (b)

    XLS

    (c)

    CLRF

    (d)

    CRLF

  6. 5 x 2 = 10
  7. Mention the default modes of the File.

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

  9. What is the purpose of using 'with' statement along with open ( )?

  10. How will you read CSV file into a dictionary?

  11. What are the line terminator accepted by python CSV module?

  12. 5 x 3 = 15
  13. Write a Python program to modify an existing file.

  14. What is the difference between the write mode and append mode.

  15. How will you save the CSV file in MS-Excel?

  16. What are the ways to write a new or edit are existing CSV file in python?

  17. Write a program to create a new normal CSV file to store data.

  18. 4 x 5 = 20
  19. Tabulate the different mode with its meaning.

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

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

  22. How will you sort more than one column in a CSV file? Explain with an example.

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

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

Write your Comment