Kiruthika

Kiruthika

University

20 Qs

quiz-placeholder

Similar activities

Kuis 1: Machine Learning for IoT- 4 TRK

Kuis 1: Machine Learning for IoT- 4 TRK

University

15 Qs

JAVA-BootCamp - Day1

JAVA-BootCamp - Day1

University

15 Qs

OOPS quiz-1 PYTHON

OOPS quiz-1 PYTHON

University

19 Qs

Lists and Tuples

Lists and Tuples

University

20 Qs

Python List, and String

Python List, and String

10th Grade - University

20 Qs

Mastering Python Concepts

Mastering Python Concepts

University

20 Qs

Python Day-5

Python Day-5

University

15 Qs

Python Programming Quiz

Python Programming Quiz

University

15 Qs

Kiruthika

Kiruthika

Assessment

Quiz

Computers

University

Medium

Created by

Kiruthika S

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What method adds an element to the end of a list?

add()

append()

insert()

extend()

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is the correct syntax to access the third element of a list named my_list?

my_list[2]

my_list(3)

my_list{3}

my_list[3]

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What will be the output of len([1, 2, 3, 4])?

3

4

5

None

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which function is used to sort a list in ascending order?

sort()

order()

arrange()

organize()

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How do you access the value associated with the key 'name' in a dictionary person?

person['name']

person.get('name')

All of the above

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is a valid way to create a dictionary in Python?

dict = {1: 'one', 2: 'two'}

removedict = [1: 'one', 2: 'two']

dict = (1: 'one', 2: 'two')

dict = '1: one, 2: two'

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What method removes a key-value pair from a dictionary?

delete()

remove()

pop()

discard()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?