# What will be the output of the following Python code x = ['ab', 'cd'] for i in x: i.upper() print(x)

1.  [‘ab’, ‘cd’]

2.  [‘AB’, ‘CD’]

3.  [None, None]

4.  none of the mentioned

4

[‘ab’, ‘cd’]

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x = ['ab', 'cd'] for i in x: x.append(i.upper()) print(x)

1.  [‘AB’, ‘CD’]

2.  [‘ab’, ‘cd’, ‘AB’, ‘CD’]

3.  [‘ab’, ‘cd’]

4.  none of the mentioned

4

none of the mentioned

Explanation :
No Explanation available for this question

# What will be the output of the following Python code i = 1 while True: if i%3 == 0: break print(i) i + = 1

1.  1 2

2.  1 2 3

3.  error

4.  none of the mentioned

4

error

Explanation :
No Explanation available for this question

# What will be the output of the following Python code i = 1 while True: if i%0O7 == 0: break print(i) i += 1

1.  1 2 3 4 5 6

2.  1 2 3 4 5 6 7

3.  error

4.  none of the mentioned

4

1 2 3 4 5 6

Explanation :
No Explanation available for this question

# What will be the output of the following Python code i = 5 while True: if i%0O11 == 0: break print(i) i += 1

1.  5 6 7 8 9 10

2.  5 6 7 8

3.  5 6

4.  error

4

5 6 7 8

Explanation :
No Explanation available for this question

# What will be the output of the following Python code i = 5 while True: if i%0O9 == 0: break print(i) i += 1

1.  5 6 7 8

2.  5 6 7 8 9

3.  5 6 7 8 9 10 11 12 13 14 15 ….

4.  error

4

error

Explanation :
No Explanation available for this question

# What will be the output of the following Python code i = 1 while True: if i%2 == 0: break print(i) i += 2

1.  1

2.  1 2

3.  1 2 3 4 5 6 …

4.  1 3 5 7 9 11 …

4

1 3 5 7 9 11 …

Explanation :
No Explanation available for this question

# What will be the output of the following Python code i = 2 while True: if i%3 == 0: break print(i) i += 2

1.  2 4 6 8 10 …

2.  2 4

3.  2 3

4.  error

4

2 4

Explanation :
No Explanation available for this question

# What will be the output of the following Python code i = 1 while False: if i%2 == 0: break print(i) i += 2

1.  1

2.  1 3 5 7 …

3.  1 2 3 4 …

4.  none of the mentioned

4

none of the mentioned

Explanation :
No Explanation available for this question

# What will be the output of the following Python code True = False while True: print(True) break

1.  True

2.  False

3.  None

4.  none of the mentioned

4