Page 19 - IPP-11
P. 19
MODEL TEST PAPER–I
Class-XI Informatics Practices (065)
Time: 3 hours Max. Marks: 70
QUESTION 1
1. Find and write the output. (2)
A = [1,3,5,7,8,9]
print(A[3:0:-1])
2. Find the output of the following Python code: (2)
a,b,c=10,12,15
b%=a
a**=b
X=a//b+c%b+b**2
print(a,b,c,sep=':')
print(X)
3. Find the output of the following Python code: (3)
x,x = 4,7
y,y = x+7,x-7
x,y=y-x,x+y
print(x,y)
4. Rewrite the output after removing all the errors: (3)
S='hello python'
S1=S[:5]
S2=S[5:]
S3=S1*S2
S4=S2+'3'
S5=S1+3
5. Predict and write the output: (3)
L=['p','r','o','b','l','e','m']
L[2:3]=[]
print(L)
L[2:5]=[]
print(L)
6. Which of the following are valid identifiers? (3)
(a) File.dat
(b) for
(c) _if
(d) elif
7. Find the errors and write the output of the following code: (4)
X=["F",66,"QE",15,"S",34]
Y=0
Z=""
A=0
for c in range(1,6,2)
Y+=c
Z=Z+X[c-1]+'$'
A+=X[c]
print(x,y,z)
1