( s floating point type data-aa negA?
Mark
A MCQ Type-l (Basic/Simple) A0123 B 123 ©-3.17 O3+4j
}RTA (G Built in core GDt DRN? A0123 B 123 ©-3.17 O3+4j
A int B float ©complex s13
q¢D Complex (yO 3 + 4j-4g ga (real) s*
2 -D Built in core D DR3?
A Tuple String int D class
(A 4,3 B3,4 © 3-0, 4-0 O 4-0, 3-0
3 (G userdefined cD0 DR 3?
A Array B String © class D Module
aC53 (4D sequence ? Complex
D List
A Int B float string
A String © Tuple O Bool
10 Complex number a+ bË 4a ( 9 j-4g A ?
(-|5 Integer fog aui?
A0123 B 123 C)-3.17 D3+4j 2 V-3
24 CA GAG fSGA (Mutable)?
A True ® False String Tuple
© True/False © Set Ô List
12 $ R(Blank string)- (B A at GeA FA0
efoft aRcb atatRt (Unique)
Unordered
True © False
© True False A List Tuple
© Set Dictionary
COMA' "COMA' (26
"COMA" g0 31 IA QF|B numerical index a3
aRTDNg indexing \N?
A List Tuple
(C) 0; M, A
Set Dictionary
© (1,2, 3, 4) RA CEaft immutable f ?
l:C, 2:'0,3: M, 4:A} A List Tuple
© Set Dictionary
A"123" [1, 2, 3] 28
© (1, 2, 3) fa':1, 'b':2,'c':3}
Integer String
© Float Boolean
A"123" [1, 2, 3]
© (1,2, 3) (a':1, 'b':2, 'c:3}
CoaD DIGALAG (iterable)?
String List
17 6AGOat qft Dictionary?
© Tuple
"123" ® [1, 2, 3]
30 None (bt R Jat a0 ?
© (1,2, 3) O{'a':1, 'b':2, 'c' :3}
(18 C6S GRG Mutable egoa?
List Dictionary
Set
19) ( s Immutable efog R? 31 C=1.5j
String ® Boolean print (C. real)
© Tuple print(C. imag)-4 UDG N?
20 ( D immutable foI HA? A1-5, 1-5 6 0-0, 1-5
String Tuples ©0-0, 0.0 D errOr
© Lists
21 6A GOao RA DA (Tuple)? "1234" 6 "@ km"
{1, 2, 3} '$500 O [1, 2, 3, 4]
O [1, 2, 3] O (1,2, 3)
Tuple ® List
© Class O Dictionary
Float Mark
A Integer
Boolean
BMCO Type-ll (Special) 1
© String
23 Fill in the blanks
A List O Tuple 34
© Set Dictionary Array B class © Module None
35 51 afIttga (immutable) sfo fARI
A int ® float string © tuples
© bool © booleans
qto YR0TOA0 AaNs (user defined) 52
afecaLD ofo (key) |
A int © class list © tuple set O dictionary
© float complex 53
Aint B class
(unordered) |
© float
list tuple
complex © set dictionary
38
54
String Tuple
bool O list Astring ® list
39 qet RI0 (Integer) p f CUDI © tuples
A0123 123 55 None f* 9atCÝI Slj G
©-3.17 4+5j qP5 empty string 4t value-4 yaqofefo
© infinity
A0123 © 123
©-3.17 4+5j Column Matching
56
A0123 ® 123 ©-3.17 4+5j
(i) String (a) [a, b, c]
A True © False
(ii) Tuple (b) ('a, 'b, 'c)
©AS B
(ii) List (c) Python'
$ R (Blank string)
(iv) Dictionary (d) {'a : 1, 'b :1}
True B False (i)-(a), (ii)-(b), (iii)-(c), (iv)-(d)
© True/False ® (i)-(b), (ii)-(c), (iii)-(d), (iv)-(a)
44 © ()-(c), (ii)-(b), (ii)-(a), (iv)-(d)
A'123' 'AKM ©#2 #'
(i)-{d), (i)-(a), (ii)-(b), (iv)-(c)
45
57
"Python" ('p, y,t, h, 'o, 'n']
© (p, 'y,t, h, 'o, n') fp,'y t, 'h, 'o, 'n'} (i) \a-4T IDG (a) 2
(46 (ii) "\ab"-4g G (b) 11
"Python" © Ip, 'y;t, 'h,'o,'n'] (c) 5
{p,y,t, 'h, o, 'n'} (ii) "Asis's"-4g y
©(p,y,'t, 'h, 'o,n')
(iv) "Asis\'s book"-4g AG (d) 3
47
"123" [1, 2, 3] (i)-(a), (ii)-(b), (ii)-(c), (iv)-(d)
©(1,2, 3) Ofa:1, 'b:2, 'c:3}
® (i)-(b), (ii)-(c), (iii)-(d), (iv)-(a)
48 © (i)-(), (ii)-(d), (iii)-(a), (iv)-(b)
A"123" |1,2, 3] O (i)-(d), (ii)-(a), (iii)-(c), (iv)-(b)
© (1, 2, 3) O{'a':1, 'b:2, 'd:3}
58
49 fSCG4A (mutable) ersfo fAHAI
list B dictionary (i) type (10) (a) < class list' >
© set (ii) type (1, 2) (b) < class 'str' >
50
(iii) type ("123") (c) < class "int' >
Alist B set
(iv) type (1, 2, 3) (d) <class 'tuple'>
©
tuple dictionary
A (i)-(c), (ii)-(d), (iii)-(b), (iv)-(a) 63 fgÝ (A) : List qgps fasOGAGI
® (i)-(a), (ii)-(b), (iii)-(c), (iv)-(d)
74 (R) String 4F1T SOMAIA|
O (i)-(b), (ii)-(b), (ii)-(d), (iv)-(a)
(i)-(c), (ii)-(d), (ii)-(a), (iv)-(b)
A RAf*
(i) bool (0) (a) True'
(ii) bool (1) (b) False
(ii)) str (0) (c) '0'
(iv) str (True) (d) True
A (i)-(b), (ii)-(d), (iii)-(c), (iv)-(a)
© (i)-(a), (ii)-(b), (iii)-(c), (iv)-(d)
(i)-(b), (ii)-(c), (iii)-{d), (iv)-(a)
(i)-(b), (i)-(d), (iii)-(a), (iv)-(c) 65) frgo (A) *11 PR (Blank string)-(* 3 (True) a
60
(i) id () (a) Mutable (True) tfgsi (False) AG 1 023|
(ii) list (b) Immutable
(iii) string (C) memnory address
(iv) {1, 2, 3} (d) set
i)-(c), (ii)-(a), (iii)-(b), (iv)-(d)
(i)-(a), (ü)-(b), (iii)-(c), (iv)-(d) Diagram/Chart based type
© (i)-(b), (i)-(c), (ii)-(d), (iv)-(a)
66 Cs Af*?
(i)-c), (ii)-(a), (iii)-(d), (iv)-(b) >string
Mutable types >tuple
Assertion-Reasoning Type
>boolean
61) fgS (A) Int, boolean, complex 2a RAinbuilt
data typel >string
® Mutable types list
>tuple
ASRgb f fgR2 A-4g oTRII >string
© Mutable types >float
>int
A AARAfdE
>list
62) frqT (A) Array, class, module g CAA user
defined data types I Mutable types dictionary
Set
A CUDI DRTA SMA user defined data types
67 (oRft f ?
>string
Immutable types >tuple
boolean
A f AIR
string 70
Immutable types ’list User defined data type
+boolean
+list Array class module
© Immutable types >dictionary B User defined data type
set
>float
Array string list
Immutable types >string
User defined data type
list
68) (-|t 20TCA47 (Iterable) ?
sequence dictionary string
int
User defined data type
Iterable float
>complex
class module int
int
® Iterable
71 osequence?
+float
Sequence
>complex
>int
int string list
© Iterable ’none
Sequence
>dictionary
>string complex none boolean
Iterable >list
Sequence
>tuple
(69 Go sf? int float complex
Number data type Sequence
int string list string tuple list
Number data type
True and False Type Questions
72 frgf (A) : faro, aD, fyTifa 2 fNTtoa gft
complex none boolean
frg (B) :String, tuple cbqG egfuA ALGI
Number data type
AA 4R BaT AAiqR B
U
©AS B DU AT
int float complex 73) fgo (A) : "This is example of docestring" gt
Number data type
fAg (B): Single line comment-4a FU $ bF JR0I
string tuple list
©ASB TYN AT ASB U9YO
(74) g (A):H PR(Blank string)-($A3 (True) 83) x= [1, 2, 3]
fA?
print (type (1))-3 atbD
list ® List
© array O Array
84 T= ]0
y= "20"
©A B DuxfTt AS B TUN 3
print (str () + y) AA UTGDOo A?
30 B 1020
10200 Error
AA0 qR B AAdqR BAO
85 *= [1, 2, 3]
y=X. copy ()
X. append (4)
Case Based Questions print (y)-4 yrbet 4?
(1, 2, 3] (1, 2, 3, 4]
76) *= 10, 4tA - 4 C9D
DA?
O [1, 2, 3, 4, 4] (1,2, 3, 3]
Integer String
© Float O Boolean 86 *= {"a" "b" "C"}
y= {"b", "c, " }
77) x=Python'",
print (type ())aA CUD bi A? z=x&y
print ()-47 rUbt A?
A Python ® Str
© None string a "b'", "c, ""} ("b, "c}
78 x= 3-1415
©"a' "d') fa, "b', "c'}
87 X, y=5,6"4
print (type (1))-AFARA ?
print (type (y))-4A UDD ÁRA?
A int ® Integer
Float Integer B int
©float
©Float float
79 =10
y= "20" 88 *= {"a:1,"b':1}
print ( + int (y)) 4 aIGDet ? y= {"b':3,"¢:4}
1020
Z= {,y}
A30
©"2010" "1020" print ()- arbeD z
{"a':1, "b":3, "c:4}
80 x={"c", "ct*", "Java", "Python"} © {"b":3, "c:4}
print (type (x))-4% arvbet R? ©{"a':1, "b' :2, "c:4}
A set dict
O {"a:1, "b" :2}
© list D List
89) x= {1, 2, 3}
81 x={"name":AKM", "age":40} X. clear )
print (type (x))-43 atD RA? print (3)-AI UISDG?
dictionary B dict {1, 2, 3}
© Dictionary D Dict © None D Error
82 x True 90) *="hello"
y= x. upper ()
String print (y)-47 stt?
Integer
hello Hello
© Float O Boolean
© HELLO hELLO
91) *= hello"
y=xlower ()
print (r)-43 aIUbt A?
hello @ Hello
HELLO D hELLO
92) x= "hello"
y=* replace ( , L,1)
print (y)-4 aG ?
hello helLo
heLLo heLlo
93) = [1, 2, (3,4])
*[2][0] =5
print ()-4 ARA U?
(1,2, (3, 4]) (1, 2, (5, 4])
© (1,2, [3, 5]) O Error
94 I={name":AKM", "age":40}
print (x ["address"l)- 4 astat f LA?
"AKM" B 40
© None O Error
95) X= [1, 2, 3]
y=\:]
z [0] = 4
print (y)-41 GeD ?
A [1, 2, 3] ® (4, 2, 3]
© (1,2, 3, 4] [4, 2, 3,4]
96 *=(A", B", "C"}
y="B", "C", "D"}
z=x|y
print (z)-4 Ursbat A?
{"A" "B" "C"} © (A, "B", "C", "D"}
©{"B""C"}
97 x= (1, 2, 3)
y=x*2- arGGet4?
print (y)
(1, 2, 3, 1, 2, 3) ® (1,2, 3, 3, 2, 1)
©(2, 4, 6) O (1,2, 3)
98 *= {l:"a", 2:"b
y=X values ()
print (y)-4A artbG f* rA?
[1, 2] "a "b']
© [(1,"a"'), (2,"b") O [1, 2 a, b]
99 I=(1,2, 3) y= (3, 4, 5) z= X-y print (2)-4ANDDet
A (1,2) B (4, 5)
©3 O Error