Python Basics Day 12

Python Basics Day 12

University

5 Qs

quiz-placeholder

Similar activities

YT-Quiz

YT-Quiz

University

10 Qs

Latihan Ujian TKJ - Bagian A1

Latihan Ujian TKJ - Bagian A1

7th Grade - University

10 Qs

SOAL PTS 1 KOMPUTER AKUNTANSI KELAS XI

SOAL PTS 1 KOMPUTER AKUNTANSI KELAS XI

11th Grade - University

10 Qs

Vocabulary Quiz - Computer - 01

Vocabulary Quiz - Computer - 01

12th Grade - University

10 Qs

ADOBE PREMIERE

ADOBE PREMIERE

University

10 Qs

Post Test #4 - Python Fundamental #3

Post Test #4 - Python Fundamental #3

University

10 Qs

UTILITY PROGRAM

UTILITY PROGRAM

University

10 Qs

Git & GitHub

Git & GitHub

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