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

1.  0 1 2 0

2.  0 1 2

3.  error

4.  none of the mentioned

4

0 1 2

Explanation :
No Explanation available for this question

# What will be the output of the following Python code i = 0 while i < 3: print(i) i += 1 else: print(0)

1.  0 1 2 3 0

2.  0 1 2 0

3.  0 1 2

4.  error

4

0 1 2 0

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x = "abcdef" while i in x: print(i, end=" ")

1.  a b c d e f

2.  abcdef

3.  i i i i i i …

4.  error

4

error

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x = "abcdef" i = "i" while i in x: print(i, end=" ")

1.  no output

2.  i i i i i i …

3.  a b c d e f

4.  abcdef

4

no output

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x = "abcdef" i = "a" while i in x: print(i, end = " ")

1.  no output

2.  i i i i i i …

3.  a a a a a a …

4.  a b c d e f

4

a a a a a a …

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x = "abcdef" i = "a" while i in x: print('i', end = " ")

1.  no output

2.  i i i i i i …

3.  a a a a a a …

4.  a b c d e f

4

i i i i i i …

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x = "abcdef" i = "a" while i in x: x = x[:-1] print(i, end = " ")

1.  i i i i i i

2.  a a a a a a

3.  a a a a a

4.  none of the mentioned

4

a a a a a a

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x = "abcdef" i = "a" while i in x[:-1]: print(i, end = " ")

1.  a a a a a

2.  a a a a a a

3.  a a a a a a …

4.  a

4

a a a a a a …

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x = "abcdef" i = "a" while i in x: x = x[1:] print(i, end = " ")

1.  a a a a a a

2.  a

3.  no output

4.  error

4

a

Explanation :
No Explanation available for this question

1.  a a a a a a

2.  a

3.  no output

4.  error

4