ST Class Xi Periodic Test-3
ST Class Xi Periodic Test-3
ST Class Xi Periodic Test-3
PERIODIC TEST-3
CLASS-XI
Q 1)The equivalent for loop for the following while loop is ____________. [1]
i=1
while(i<=20):
i+=2
for x in range(10):
print(x)
Ctr= len(str)
str = “ aNDarIeL”;
nstr = “ “
if str[i] . isupper( ):
nstr = nstr+str[i].lower( )
else:
print (nstr)
Q 7) Input a string “ Green Revolution”. Write a program to print the string in reverse. [3]
What is str.strip( ) ?.
(a) L [3:4]
L [3:4] [0]
L [3:4] [0] [1]
L[3:4] [0] [1] [2]
(b) “few” in L
(c) “few” in L[3]
(d) [ L [1]] + L [3]
(e) L [4: ]
(f) L[0 : :2]
Q 13) What will be the output of the following statement ? [4]
Q 14) Consider the following list Mylist. What will be the elements of Mylist after the operation.