A

Daman

Error

N

11

12

21

22

## 3. Suppose list1 is [1, 3, 2], What is list1 * 2 ?

[2, 6, 4].

[1, 3, 2, 1, 3].

[1, 3, 2, 1, 3, 2].

[1, 3, 2, 3, 2, 1].

## 4. Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.reverse() ?

[3, 4, 5, 20, 5, 25, 1, 3].

[1, 3, 3, 4, 5, 5, 20, 25].

[25, 20, 5, 5, 4, 3, 3, 1].

[3, 1, 25, 5, 20, 5, 4, 3].

## 5. Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.extend([34, 5]) ?

[3, 4, 5, 20, 5, 25, 1, 3, 34, 5].

[1, 3, 3, 4, 5, 5, 20, 25, 34, 5].

[25, 20, 5, 5, 4, 3, 3, 1, 34, 5].

[1, 3, 4, 5, 20, 5, 25, 3, 34, 5].

## 6. Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.pop(1) ?

[3, 4, 5, 20, 5, 25, 1, 3].

[1, 3, 3, 4, 5, 5, 20, 25].

[3, 5, 20, 5, 25, 1, 3].

[1, 3, 4, 5, 20, 5, 25].

## 7. Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.pop()?

[3, 4, 5, 20, 5, 25, 1].

[1, 3, 3, 4, 5, 5, 20, 25].

[3, 5, 20, 5, 25, 1, 3].

[1, 3, 4, 5, 20, 5, 25].

1

2

3

4

2 3 4 5 6 1

6 1 2 3 4 5

2 3 4 5 6 6

1 1 2 3 4 5

[1, 3].

[4, 3].

[1, 4].

[1, 3, 4].

[1, 44].

[1, 2, 3, 44].

[44, 2, 3].

[1, 2, 3].

## 14. What will be the output?

[1] [2] [3].

[1] [1, 2] [1, 2, 3].

[1, 2, 3].

1 2 3

None

1

2

Error

0Shares
Scroll to Top