wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

30 MCQ – Python Sequence Data Types (List, Tuple, String)

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Python के sequence types कौन-कौन से होते हैं?

a)

List, Tuple, String

b)

Dict, Set, List

c)

Number, Float, Bool

d)

File, OS, Math

2.

List किस type की data structure है?

a)

Mutable

b)

Immutable

c)

Numeric

d)

Constant

3.

Tuple किस type की data structure है? Tuple is—

a)

Mutable

b)

Immutable

c)

Editable

d)

Dynamic

4.

String किस type का डाटा होता है?

a)

Mutable

b)

Immutable

c)

Changeable

d)

Dynamic

5.

Negative indexing में -1 किसको refer करता है?

a)

First element

b)

Last element

c)

Middle element

d)

Error

6.

list.append(x) किसके लिए होता है?

a)

Add at start

b)

Add at end

c)

Remove item

d)

Sort list

7.

list.insert(0, x) किसके लिए होता है?

a)

Add at end

b)

Add at index 0

c)

Delete element

d)

Reverse list

8.

list.remove(x) किसको हटाता है?

a)

Index remove

b)

First occurrence of x remove

c)

All x remove

d)

Last x remove

9.

list.pop() default रूप से किसको हटाता है?

a)

First element

b)

Last element

c)

Middle element

d)

All elements

10.

Tuple में कौन-सा method available नहीं है?

a)

count()

b)

index()

c)

append()

d)

उपरोक्त सभी नहीं

11.

String में कौन-सा operation invalid है?

a)

slicing

b)

indexing

c)

concatenation

d)

item assignment

12.

"hello"[1] का output क्या होगा?

a)

h

b)

e

c)

l

d)

o

13.

[10,20,30][0:2] का output क्या है?

a)

[10, 20]

b)

[10,20,30]

c)

[20,30]

d)

Error

14.

Slicing में end index—

a)

Inclusive होता है

b)

Exclusive होता है

c)

Random होता है

d)

None होता है

15.

list.extend([4,5]) करने पर क्या होगा?

a)

Add list as a single element

b)

Add each item individually

c)

Replace list

d)

Remove list

16.

sorted(list) करने पर return क्या होता है?

a)

New sorted list

b)

Same original list modified

c)

Tuple

17.

list.sort() किसका return करता है?

a)

Sorted list return

b)

None return

c)

New list return

d)

String return

18.

tuple((1,2))3 का output—

a)

Error

b)

(1,2)*3

c)

(1,2,1,2,1,2)

d)

(1,2,2,1)

19.

"abc" + "def" का output—

a)

abc

b)

def

c)

abcdef

d)

Error

20.

list.reverse() किसका return करता है?

a)

New reversed list return

b)

List को inplace reverse करता है

c)

Only prints reverse

d)

Sort करता है

21.

"hello".upper() करने पर return क्या होगा?

a)

hello

b)

HELLO

c)

error

d)

HeLLO

22.

"HELLO".lower() करने पर return क्या होगा?

a)

hello

b)

HELLO

c)

error

d)

HeLLo

23.

प्रश्न 23. list.count(x) करने पर return क्या आता है?

a)

index of x

b)

total occurrences of x

c)

list length

d)

reverse count

24.

List को empty करने का सही तरीका-कोन सा है?

a)

list.clear()

b)

list = []

c)

दोनों सही हैं

d)

कोई नहीं

25.

len("python") का output क्या होगा?

a)

5

b)

6

c)

7

d)

Error

26.

(10,20,30).index(20) कितना return करेगा?

a)

0

b)

1

c)

2

d)

Error

27.

"banana".count("a") का result?

a)

1

b)

2

c)

3

d)

4

28.

list slicing [::-1] किसका परिणाम देगा?

a)

First element

b)

Last element

c)

Entire list reverse

29.

निम्नलिखित में से कौन सा विकल्प सही है?

a)

Merge lists

b)

Multiply lists

c)

Remove lists

d)

Error

30.

list + list operator किसके लिए प्रयोग होता है?

a)

Merge lists

b)

Multiply lists

c)

Remove lists

d)

Error