Array 5 Flashcards

1
Q

Python provides____
ways for executing the loops.

A

3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In python, _______ is used to execute a block of statements repeatedly until a given a condition is satisfied.
And when the condition becomes false, the line immediately
after the loop in program is executed.

A

while loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Python uses _______ as its method of grouping statements.

A

indentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In python, the ______ is used to iterate through all the
elements present in array.

A

for loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In Python, to remove an array element we can use the ______method and it will remove the specified
element from the array

A

remove()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

To remove the last element from an array we can use the _____ method and it will remove the last element from the array python.

A

pop()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly