Home / Engineering / Problem Solving and Python Programming MCQs / Page 24

# Problem Solving and Python Programming MCQs | Page - 24

Dear candidates you will find MCQ questions of Problem Solving and Python Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.

(A) true
(B) false
(C) error
(D) none

## `Q. 232) To add a new element to a list we use which command?`

(B) list1.append(5)

## `Q. 233) To insert 5 to the third position in list1, we use which command?`

(A) list1.insert(3, 5)
(B) list1.insert(2, 5)
(D) list1.append(3, 5)

## `Q. 234) To remove string “hello” from list1, we use which command?`

(A) list1.remove(“hello”)
(B) list1.remove(hello)
(C) list1.removeall(“hello”)
(D) list1.removeone(“hello”)

(A) 0
(B) 1
(C) 4
(D) 2

(A) 0
(B) 4
(C) 1
(D) 2

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

(A) [3, 4, 5, 20, 5, 25, 1, 3]
(B) [1, 3, 3, 4, 5, 5, 20, 25]
(C) [25, 20, 5, 5, 4, 3, 3, 1]
(D) [3, 1, 25, 5, 20, 5, 4, 3]

## `Q. 238) >>>"Welcome to Python".split()`

(A) [“welcome”, “to”, “python”]
(B) (“welcome”, “to”, “python”)
(C) {“welcome”, “to”, “python”}
(D) “welcome”, “to”, “python”

## `Q. 239) >>>list("a#b#c#d".split('#'))`

(A) [‘a’, ‘b’, ‘c’, ‘d’]
(B) [‘a b c d’]
(C) [‘a#b#c#d’]
(D) [‘abcd’]

## `Q. 240) >>>print(indexOfMax)`

(A) 1
(B) 2
(C) 3
(D) 4

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.