Test7

Test7

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Latihan Soal PAS Ganjil Informatika

Latihan Soal PAS Ganjil Informatika

10th Grade

29 Qs

BU 10 - TIK

BU 10 - TIK

10th Grade - University

25 Qs

Analisis Data

Analisis Data

9th Grade

25 Qs

Latihan Jaringan

Latihan Jaringan

10th Grade

25 Qs

PTS TI Kelas 12 Aliyah-Ganjil

PTS TI Kelas 12 Aliyah-Ganjil

12th Grade

25 Qs

PTS TIK 9 2024 K13

PTS TIK 9 2024 K13

9th Grade

25 Qs

Quiz Informatika

Quiz Informatika

10th Grade

25 Qs

Features & Uses of Cloud Storage​

Features & Uses of Cloud Storage​

10th Grade

26 Qs

Test7

Test7

Assessment

Quiz

Information Technology (IT)

9th - 12th Grade

Practice Problem

Hard

Created by

Rares Hampi

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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()

Access all questions and much more by creating a free account

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

Already have an account?