Python lists and tuples

Python lists and tuples

12th Grade

10 Qs

quiz-placeholder

Similar activities

H466 - Arrays, Records, Tuples and Lists

H466 - Arrays, Records, Tuples and Lists

11th Grade - University

10 Qs

Computer Science Tuples

Computer Science Tuples

11th - 12th Grade

15 Qs

Python lists

Python lists

9th Grade - Professional Development

7 Qs

Lists In Python_1

Lists In Python_1

9th Grade - University

15 Qs

list in python

list in python

10th - 12th Grade

15 Qs

12cs cha9

12cs cha9

12th Grade

12 Qs

Unit 9

Unit 9

9th - 12th Grade

10 Qs

Python Data Structures

Python Data Structures

8th - 12th Grade

10 Qs

Python lists and tuples

Python lists and tuples

Assessment

Quiz

Computers

12th Grade

Medium

Created by

srimathi narayanan

Used 354+ times

FREE Resource

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]

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?