LIST-TUPLES-SET-DICTIONARY

LIST-TUPLES-SET-DICTIONARY

Professional Development

25 Qs

quiz-placeholder

Similar activities

¿Cuánto sabes de comercio electrónico?

¿Cuánto sabes de comercio electrónico?

Professional Development

20 Qs

ICT ວິຊາຊີບຄູ ເຄມີປີ 3

ICT ວິຊາຊີບຄູ ເຄມີປີ 3

Professional Development

20 Qs

Tout savoir sur WINDOWS Quizz 1

Tout savoir sur WINDOWS Quizz 1

Professional Development

20 Qs

Evaluacion de Resultados - Enero 2024

Evaluacion de Resultados - Enero 2024

Professional Development

20 Qs

Ulangan Harian Desain Media Interaktif Kelas XII MM

Ulangan Harian Desain Media Interaktif Kelas XII MM

University - Professional Development

20 Qs

System and network support and management

System and network support and management

11th Grade - Professional Development

20 Qs

Networks and Components

Networks and Components

Professional Development

20 Qs

HTML

HTML

Professional Development

20 Qs

LIST-TUPLES-SET-DICTIONARY

LIST-TUPLES-SET-DICTIONARY

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Sundeep Kanthety

Used 23+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands will create a list?

list1 = list()

list1 = list()

list1 = list([1, 2, 3])

all of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output when we execute list(“hello”)?

[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]

[‘hello’]

[‘hello’]

None of the Above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To shuffle the list(say list1) what function do we use?

list1.shuffle()

shuffle(list1)

random.shuffle(list1)

random.shuffleList(list1)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose list1 is [2, 33, 222, 14, 25], What is list1[:-1]?

[2, 33, 222, 14]

Error

25

[25, 14, 222, 33, 2]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

>>>names = ['Amir', 'Bear', 'Charlton', 'Daman'] >>>print(names[-1][-1])

A

Daman

Error

n

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5)?

0

1

4

2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To insert 5 to the third position in list1, we use which command?

list1.insert(3, 5)

list1.insert(2, 5)

list1.add(3, 5)

list1.append(3, 5)

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?