Python and CSV Files Model Question Paper

12th Standard EM

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 40
    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 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. CSV means

    (a)

    Condition separated values

    (b)

    Colon separated values

    (c)

    C++ solution values

    (d)

    Comma separated values

  4. Which of the following built-in function Python has to open a file?

    (a)

    read ()

    (b)

    open ()

    (c)

    reader ()

    (d)

    openfile ()

  5. While reading CSV file in text mode, the data would be in the format

    (a)

    numbers

    (b)

    characters

    (c)

    strings

    (d)

    float

  6. 5 x 2 = 10
  7. What is use of next() function?

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

  9. What take the three models in which CSV file can be opened?

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

  11. Write a note is register dialect ( ) method?

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

  14. Write a Python program to read a CSV file with default delimiter comma (,).

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

  16. Write the syntax of reader( ).

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

  18. 2 x 5 = 10
  19. Tabulate the different mode with its meaning.

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

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

TN 12th Standard EM Computer Science free Online practice tests

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

Write your Comment