Search Header Logo

Python lists and tuples

Authored by srimathi narayanan

Computers

12th Grade

Used 356+ times

Python lists and tuples
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Pick the odd one in connection with collection data type

List

Tuple

Dictionary

Loop

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following function is used to count the number of elements in a list ?

count( )

find( )

len( )

index( )

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Let list1=[2,4,6,8,10] the print(list1[-2]) will result in

10

8

4

6

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the use of type( ) function in python ?

To create a tuple

To know the type of an element in tuple

To know the data type of the Python object

To create a List

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statement is not correct

A list is mutable

A tuple is immutable

The append function is used to add an element

The extend function is used in tuples to add elements in a list

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

If list=[10,20,30,40,50] then list[2]=35 will result

[35,10,20,30,40,50]

[10,20,30,40,50,35]

[10,20,35,40,50]

[10,35,30,40,50]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If list=[17,23,41,10] then list.append(32) will result

[32,17,23,41,10]

[17,23,41,10,32]

[10,17,23,32,41]

[41,32,23,17,10]

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?