Documente Academic
Documente Profesional
Documente Cultură
SESSION->2019-20
CLASS-XI
print(i) x=”hello”*3
1 4 y=len(x)
If i%007==0: print(a==b)
i+=1 L2=L1*2
print(True) print(L1*2.0)
break O/p? a)[1,2,1,2] b)[[1,2],[1,2]] c)Error
2 OBJECTIVE TYPE PERIODIC TEST II
SESSION->2019-20
CLASS-XI
i=”i” L2=L1+2
print(L1[::-1])
O/p? a)23 ROHINI b)”SOE SEC-23 ROHINI” Q21 in continuation to Q19 O/p of print(L1[-1,-2,-
c)Error-iNDEX OUT OF BOUND d)23 ROHINI23 3,-4])
ROHINI
a) [‘r’] b)[3,3] c)Error d)None of these
Q8 L1=[1,3,5,7,9]
Q22 t2=(4,5,6)
print(L1==L1.reverse())
t3=(6,7)
print(L1)
T4=t3+t2
A ) True [1,3,5,7,9] b)False [ 9,7,5,3,1]
c)Error d)None of these T5=t2+t3
Q9 print(“Hello*2”) print(t4)
O/p a)HelloHello b)Hello*2 c)Hello2 d)Hello O/p? a)(6,7,4,5,6) b)(4,5,6,6,7) c)Error d)None
of these
Q10 (446)8=(?)16
Q23 O/p of print(t5) in Q19 will be:
O/p? a)126 b)128 c)132 d)146
a) False b)True c)Error d)None of these
SESSION->2019-20
CLASS-XI
SESSION->2019-20
CLASS-XI
Q31 ntpl=(“Hello”,”Nita!”,”How’s”,”Life”)
(a,b,c,d)=ntpl
print(“a is =” , a)
print(“b is =”,b)
O/p is ?
Q33 t1={5:[6,7,8],”a”:(1,2,3)}
O/p? print(t1.keys())
O/p is