New ! Computer Science MCQ Practise Tests



12th Standard Computer Science Python and CSV Files English Medium Free Online Test One Mark Questions 2020 - 2021

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:10:00 Hrs
Total Marks : 10

    Answer all the questions

    10 x 1 = 10
  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. What is the output of the following program? import csv
    d=csv.reader(open('c:\PYPRG\ch13\city.csv'))
    next(d)
    for row in d:
    print(row)
    if the file called “city.csv” contain the following details
    chennai,mylapore
    mumbai,andheri

    (a)

    chennai,mylapore

    (b)

    mumbai,andheri

    (c)

    chennai,mumba

    (d)

    chennai,mylapore,mumbai,andheri

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

    (a)

    Editing

    (b)

    Appending

    (c)

    Modification

    (d)

    Alteration

  5. Which of the following gives the python programmer the ability to parse CSV files?

    (a)

    CSV data

    (b)

    CSV module

    (c)

    CSV sheet

    (d)

    CSV flat file

  6. In CSV file, each record is to be located on a separate line, delimited by a line break by pressing

    (a)

    Enter key

    (b)

    ESV key

    (c)

    Tab key

    (d)

    Shift key

  7. In Excel, the default CSV files should open automatically by

    (a)

    Single click

    (b)

    Right click

    (c)

    Double click

    (d)

    None of these

  8. CSV file can be opened in

    (a)

    Text mode

    (b)

    Binary mode

    (c)

    Application mode

    (d)

    a or b

  9. The statement f = open ("sample.txt") equivalent to the mode

    (a)

    r

    (b)

    x

    (c)

    x or a

    (d)

    r or r+

  10. Which of the following is not a format in which CSV file data can be read?

    (a)

    Quotes

    (b)

    Pipe

    (c)

    Semi colon

    (d)

    Comma

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

Reviews & Comments about 12th Standard Computer Science Python and CSV Files English Medium Free Online Test One Mark Questions 2020 - 2021

Write your Comment