CBSE class 8 Python list loop functions solved exercise question answer worksheetClass:8 , Sub : Computer , Ch.8 Python–Lists, Loops and Functions [N.B]
Class:8 , Sub : Computer , Ch.8 Python–Lists, Loops and Functions [N.B]
a. Items in a list with five elements will have index from .
i. 1to4 ii.1 to 5 iii.0to5 iv.0to4
Ans: 0to4
b. The method used to remove an item from a list is .
i. pop() ii. remove() iii. both (i)and(ii) iv.none of the above
Ans: remove()
c. Each execution of a loop is called .
i. cycle ii. iteration iii. phase iv.none of the above
Ans: iteration
d. The statement is used to go ahead to the next iteration without executing the remaining statements in the loop
i. continue ii. break iii.Else iv.stop
Ans: continue
Comments
Post a Comment