249). What will be the output of the following Python code?
print("abc DEF".capitalize())

[A]abc def
[B]ABC DEF
[C]Abc def
[D]Abc Def

Show Answer

250). What will be the output of the following Python code?
print("abc. DEF".capitalize())

[A]abc. def
[B]ABC. DEF
[C]Abc. def
[D]Abc. Def

Show Answer

252). What will be the output of the following Python code?
print("abcdef".center(0))

[A]cd
[B]abcdef
[C]error
[D]none of the mentioned

Show Answer

253). What will be the output of the following Python code?
print("abcdef".center(0))

[A]cd
[B]abcdef
[C]error
[D]none of the mentioned

Show Answer

254). What will be the output of the following Python code?
print('*', "abcdef".center(7), '*')

[A]* abcdef *
[B]* abcdef *
[C]*abcdef *
[D]* abcdef*

Show Answer

255). What will be the output of the following Python code?
print('*', "abcdef".center(7), '*', sep='')

[A]* abcdef *
[B]* abcdef *
[C]*abcdef *
[D]* abcdef*

Show Answer

256). What will be the output of the following Python code?
print('*', "abcde".center(6), '*', sep='')

[A]* abcde *
[B]* abcde *
[C]*abcde *
[D]* abcde*

Show Answer