# What will be the output of the following Python code snippet print('+99'.zfill(5))

1.  00+99

2.  00099

3.  +0099

4.  +++99

4

+0099

Explanation :
No Explanation available for this question

# Which of the following commands will create a list

1.  list1 = list()

2.  list1 = []

3.  list1 = list([1, 2, 3])

4.  all of the mentioned

4

all of the mentioned

Explanation :
No Explanation available for this question

# What is the output when we execute list(“hello”)

1.  [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]

2.  [‘hello’]

3.  [‘llo’]

4.  [‘olleh’]

4

[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]

Explanation :
No Explanation available for this question

# Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)

1.  5

2.  4

3.  None

4.  Error

4

5

Explanation :
No Explanation available for this question

# Suppose list1 is [2445,133,12454,123], what is max(list1)

1.  2445

2.  133

3.  12454

4.  123

4

12454

Explanation :
No Explanation available for this question

# Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)

1.  3

2.  5

3.  25

4.  1

4

1

Explanation :
No Explanation available for this question

# Suppose list1 is [1, 5, 9], what is sum(list1)

1.  1

2.  9

3.  15

4.  error

4

15

Explanation :
No Explanation available for this question

# To shuffle the list(say list1) what function do we use

1.  list1.shuffle()

2.  shuffle(list1)

3.  random.shuffle(list1)

4.  random.shuffleList(list1)

4

random.shuffle(list1)

Explanation :
No Explanation available for this question

# Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation

1.  print(list1[2:])

2.  print(list1[:2])

3.  print(list1[:-2])

4.  all of the mentioned

4

all of the mentioned

Explanation :
No Explanation available for this question

1.  Error

2.  None

3.  25

4.  2

4