Professional Documents
Culture Documents
Class 11-Comp-Sc-RETEST
Class 11-Comp-Sc-RETEST
COMPPUTER SCIENCE
for i in range(len(L)):
if L[i]:
else:
break
c) TypeError
eline = ""
for i in line:
eline += chr(ord(i)+3)
print(eline)
b) L*oo#frph#e|#wkhq1
c) l*oo@frph@e|$wkhq1
d) O*oo#Frph#E|#wKhq1
print(temp)
a) [0, 2, 4, 6]
b) [0, 2, 4]
c) [0, 1, 2, 3, 4, 5]
d) Runtime error
print(data)
a) [2, 2, 6, 4, 4]
b) Compilation error
c) Runtime error
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
a) 0 1 2 0
b) 0 1 2
c) error
str1="hello"
c=0
for x in str1:
if(x!="l"):
c=c+1
else:
pass
print(c)
while i in x:
print("Hello")
A. Hello
B. Hello Hello
C. No Output
D. Error
c=0
while(n):
if(n>5):
c=c+n-1
n=n-1
else:
break
print(n)
print(c)
10. Which of the following sequences would be generated bt the given
line of code?
A. 5 4 3 2 1 0 -1
B. 5 4 3 2 1 0
C. 5 3 1
D. None of the above