Python quiz 1

Python quiz 1

Professional Development

5 Qs

quiz-placeholder

Similar activities

MS EXCEL Introduction

MS EXCEL Introduction

Professional Development

10 Qs

Mastering KineMaster

Mastering KineMaster

Professional Development

10 Qs

FUN TIK

FUN TIK

KG - Professional Development

10 Qs

Structure Data Review

Structure Data Review

University - Professional Development

10 Qs

Pelatihan itsDaring

Pelatihan itsDaring

Professional Development

10 Qs

Quiz Design Graphic #Week7

Quiz Design Graphic #Week7

10th Grade - Professional Development

10 Qs

DS1

DS1

Professional Development

10 Qs

GEETANJALI  HOTA

GEETANJALI HOTA

Professional Development

5 Qs

Python quiz 1

Python quiz 1

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Saritha B

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.What happens if you open an existing file in 'x' mode?

Opens the file normally

Deletes the file

Raises FileExistsError

Overwrites the file

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2.Which file operation mode allows both reading and writing without overwriting?

'r+'

'w+'

'a+'

'x+'

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3.What is the result of file.seek(0)?

Moves pointer to end

Moves pointer to start

Closes file

Deletes content

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4.What is the output of len(file.read())?

Number of words

Number of characters

Number of lines

File size in MB

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5.What does the expression file.read().split() do?

Splits file into multiple files

Splits file content into list of words

Splits into lines

Creates new lines