Python Basics Day 12

Python Basics Day 12

University

5 Qs

quiz-placeholder

Similar activities

Sistem Operasi dan Aplikasi

Sistem Operasi dan Aplikasi

University

10 Qs

MCQ 1

MCQ 1

University

10 Qs

Quiz  7 Perancangan dan Pemrograman Web 2022-1

Quiz 7 Perancangan dan Pemrograman Web 2022-1

University

10 Qs

QUIZ SIA 2 - AUDITING COMPUTER

QUIZ SIA 2 - AUDITING COMPUTER

University

10 Qs

Pre-test for Computer Skill

Pre-test for Computer Skill

University

10 Qs

Quiz Modul 4 Ms Visio & Publisher

Quiz Modul 4 Ms Visio & Publisher

University

10 Qs

การใช้โปรแกรมประมวลผลคำ

การใช้โปรแกรมประมวลผลคำ

University

10 Qs

Thunder

Thunder

KG - University

10 Qs

Python Basics Day 12

Python Basics Day 12

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Ninitha C

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Package to be imported for handling json files

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the statement to open the json file for writing only

with open('student.json','wr') as file:
with open('student.json','w') as file:
open('student.json','w') as file:
with open('student.json','write') as file:

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mode to open file for writing where new data will be added at the end of old data. Previous data is not erased,

r
w
a
r+

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A json file is opened in writing mode in a variable "file". How do u push a Python Dict object "dict" to the file with proper formatting

json.dump(dict,file,indent=2)
json.dump(dict,file)
json.dumps(dict,file,indent=2)
json.push(dict,file,indent=2)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement parses the file(file opened in a variable "file") when read and converts the contents into a Python Dictionary object(variable name "dict").

dict = json.parse(file)
dict = json.load(file)
dict = json.dict(file)
dict = json.toParse(file)

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?

Discover more resources for Computers