Python lists and tuples

Python lists and tuples

12th Grade

10 Qs

quiz-placeholder

Similar activities

Python Lists

Python Lists

10th - 12th Grade

15 Qs

Python List Basics

Python List Basics

12th Grade

14 Qs

Problem Solving using Python and R - UNIT II - Tuples

Problem Solving using Python and R - UNIT II - Tuples

12th Grade

15 Qs

9 . Lists, Tuples, Sets and Dictionary - 5

9 . Lists, Tuples, Sets and Dictionary - 5

12th Grade

10 Qs

Списки в Python

Списки в Python

12th Grade

10 Qs

12cs cha9

12cs cha9

12th Grade

12 Qs

Data Structures Quiz

Data Structures Quiz

12th Grade

10 Qs

Python: списки, кортеж, словник, множина

Python: списки, кортеж, словник, множина

9th - 12th Grade

14 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?