Test7

Test7

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

3 EOT

3 EOT

11th Grade

30 Qs

Database and Access Quiz

Database and Access Quiz

9th Grade

30 Qs

Test7

Test7

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Hard

Created by

Rares Hampi

Used 6+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the default behavior of open('file.txt')?

Open for reading

Create new file

Open in binary mode

Append to file

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What happens if you try to read a file opened with 'w' mode?

Reads normally

Raises UnsupportedOperation

Returns empty string

Appends content

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following correctly opens a .csv file for reading with csv.reader?

open('data.csv')

open('data.csv', 'r')

csv.reader('data.csv')

csv.reader(open('data.csv'))

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In csv.reader, what is the type of each row returned in the loop?

List

Tuple

String

Dictionary

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What happens if csv.writer is used with a file not opened in text mode?

Works fine

Raises an error

Writes binary output

Automatically converts mode

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is required to draw a rectangle in pygame?

pygame.draw.rect(screen, color, rect)

pygame.rectangle(...)

pygame.render.rect(...)

ygame.screen.draw(...)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which function updates the screen in pygame?

pygame.update()

pygame.display.update()

pygame.draw()

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?