Python CSV

Python CSV

12th Grade

10 Qs

quiz-placeholder

Similar activities

Manage Media Library

Manage Media Library

9th - 12th Grade

11 Qs

12th cs cha13

12th cs cha13

12th Grade

10 Qs

uji materi Informatika kelas 8 bab 3  TIK

uji materi Informatika kelas 8 bab 3 TIK

8th Grade - University

10 Qs

Ciência de Dados

Ciência de Dados

12th Grade

14 Qs

FILE MANAGEMENT

FILE MANAGEMENT

KG - University

15 Qs

Adobe Animate Ch. 9

Adobe Animate Ch. 9

9th - 12th Grade

15 Qs

Unit 3 - Plain Text, CSV Files, XML Quiz #3

Unit 3 - Plain Text, CSV Files, XML Quiz #3

12th Grade

13 Qs

12 CS Lesson-13

12 CS Lesson-13

12th Grade

10 Qs

Python CSV

Python CSV

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Krishnendu Bhattacharjee

Used 28+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When iterating over an object returned from csv.reader(), what is returned with each iteration?


For example, given the following code block that assumes csv_reader is an object returned from csv.reader(), what would be printed to the console with each iteration?


for item in csv_reader:

print(item)

The column data as a list

The individual value data that is separated by the delimiter

The full line of the file as a string

The row data as a list

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a valid mode to open a file?

ab

rw

r+

w+

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The difference between r+ and w+ modes is expressed as?

No difference

In r+ mode, the pointer is initially placed at the beginning of the file and the pointer is at the end for w+

In w+ mode, the pointer is initially placed at the beginning of the file and the pointer is at the end for r+

Depends on the operating system

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does CSV stand for?

Cursor Separated Variables

Comma Separated Values

Cursor Separated Values

Cursor Separated Version

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which module is used for working with CSV files in Python?

random

statistics

csv

math

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following modes is used for both writing and reading from a binary file?

wb+

w

wb

w+

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which statement is used to retrieve the current position within the file?

fp.seek()

fp.tell( )

fp.loc( )

fp.pos( )

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?