Python Basics Day 12

Python Basics Day 12

University

5 Qs

quiz-placeholder

Similar activities

Simple Way To Build Website

Simple Way To Build Website

University

10 Qs

Basic Prototype Actions and Plugins

Basic Prototype Actions and Plugins

University

10 Qs

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

QUIZ NUMBER 2

QUIZ NUMBER 2

University

10 Qs

Adobe Photoshop

Adobe Photoshop

University

10 Qs

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

Pengantar Coding

Pengantar Coding

University

10 Qs

Kiểm tra

Kiểm tra

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