diff --git a/Week 2/MCQ's while loop.md b/Week 2/MCQ's while loop.md new file mode 100644 index 0000000..60c549e --- /dev/null +++ b/Week 2/MCQ's while loop.md @@ -0,0 +1,44 @@ +### Python Tutorial +#### Topic: Python while Loop(https://codemistic.in/python/while-loop-python.html) + + +
+ +*Q1. Which of these loops will not finish?* + +
1) i = 1 
+  while i <= 10:
+    j = i * 3
+    print (j)
+    i = i + 2
+    
+
2) i = 1
+  while i != 20:
+    j = i * 5
+    print (j)
+    i = i + 2
+
3) i = 1
+  while True:
+    j = i * 7
+    print (j)
+    break
+    i = i + 2
+
4) i = 1
+  while True:
+    j = i * 10
+    print (j)
+    i = i + 2
+    if j == 20:
+      break
+ + +A. 3 & 2
+ + +B. 2 & 3
+ + +C. 2 & 4
+ + +D. 4 & 3