In this article, I will provide the Questions and Answers for Iterative Statements Class 11. The questions include 1 mark questions, 2 marks questions and 3 marks questions. So here we go!
Topics Covered
1 mark questions Iterative Statements Class 11
- The repitition of some statements until the condition evluates to false is called
- Conditional Statement
- Iterative Statement
- Repeated Statement
- Revise Statement
- Repitition can be done in pyton program using which of the following construct?
- Repitition construct
- If-else construct
- Loop construct
- Compund Consdtruct
- The statements are executed again and again as long as particular logical condition remains
- True
- False
- Unpredictable
- Constant
- In loopig construct the loop terminates itself when condition becomes
- True
- False
- No Sure
- Genuine
- Python provides __________ types of loops
- One
- Two
- Three
- Four
- Which loop is conditional loop that will repeat the isntructions within itelf as long as condition remains True?
- For
- While
- If
- Switch
Error Questions Iterative Statements Class 11
1.Find the error from the following code:
a = int(input("Enter the value of a:"))
for i in range 1 to 11:
if a = i
a+=i
else
a*=2
2.
while i>j;
print(i*j)
i++1
3.
f=1
for i in range(30,70,-3)
print(f*i)
4.
m = 1
n = 0
for m in range(n:-5:1)
print(m+=5)
5.
c=1
while(c=!0)
sum=sum+c
c++
Output Questions Iterative Statements Class 11
1.
a = 10
while a<=25:
a+10
print(a)
2.
for i in '678':
print('CS Class XI')
3.
for i in range(10,20,6):
print(i**2)
4.
i,j,n=1,0,0
while i<4:
for j in range(i):
n+=1
i+=1
print(n)
5.
i,n=2,0
while i<4:
n+=1
i-=1
print(n)
6.
i=1
s=0
while i<10:
print(j,"+")
s=s+j
j=j+j%3
print("=",s)
7.
for i in range(30,40):
if i==25:
break
print(x)
8.
for a in range(50,60):
if a%4==3:
continue
print(a)
9.
if a in range(3):
for b in range(a):
if a+2==b:
print("+",end=" ")
else:
print("o",end=" ")
10.
a=0
for i in range(1,3):
for j in range(1,i):
x=i+j-1
if x%2==0:
y+=x
elif z%3==0:
y+=z-2
print(y)
Loop Conversion Questions
1. While to for
i=2
while i<51:
i+=2
print(i)
print("Thank You")
2. While to for
i=100
while i>0:
print(i*2)
i=i-1
print(Over)
3. For to while
m=1
for i in range (6):
m=m*i
4. While to for
s=0
while s<=15:
if s%2==2:
print("Orange")
else:
print("Green")
5. For to while
c=0
for i in range(10,0,-2):
if i+3%2==1:
c+=1
6. For to while
for i in range(10,20):
if i%2==0:
continue
print(i)
Loop Execution Questions
1.
a=25
b=25
while a<=b:
a=b/a
2.
a=10
b=7
while a%b>=0:
a=a+1
b=b+2