Search Header Logo

Python Intermediate Quiz - 1

Authored by Sai Sankalp N

Education

8th Grade - Professional Development

Used 8+ times

Python Intermediate Quiz - 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Choose the correct answer:

Arbitrary Keyword Arguments

*a

**a

***a

Arbitrary_kwargs

*kwargs

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Choose the odd one out

str

int

float

dict

def

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which mode is used for only READING?

"r"

"a"

"w"

"read"

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Choose the correct line of code

With open(file_path, file_mode) as file:

with Open(file_path, file_mode) as file:

with open(file_path, file_mode) as file:

with open(file_path, file_mode):

with os.open(file_path, file_mode) as file:

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How to get both the KEYS and VALUES of a dictionary

dict.keys_&_values()

dict.items()

dict.all()

dict.stuff()

6.

FILL IN THE BLANK QUESTION

10 sec • 1 pt

Keyword used to make a function

(Be careful with the case of the letters)

7.

MULTIPLE SELECT QUESTION

10 sec • 1 pt

.listdir() is a function of the module 'x'

what is the name of the module 'x'?

sys

win32

OS

os

operating_system

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?