Podcast
Questions and Answers
what will be the output of the following code?
str="Hello"
str='str'
print(str)
what will be the output of the following code? str="Hello" str='str' print(str)
- Hello
- strHello
- Hellostr
- str (correct)
what will be the output of the following code?
str="Welcome to"python""programming"
print(str)
what will be the output of the following code? str="Welcome to"python""programming" print(str)
- Welcome to "python" programming (correct)
- Welcome to \"python"\ programming
- Welcome to python programming
- Welcome to \python\programming
what will be the output of the following code?
str="Welcome"
l=len(str)
print(l)
what will be the output of the following code? str="Welcome" l=len(str) print(l)
- 5
- 6
- 7 (correct)
- 8
what is the index value of 'm' in string "Welcome"?
what is the index value of 'm' in string "Welcome"?
which operator is used for string concatenataion?
which operator is used for string concatenataion?
what is the output of the following code?
print("gift[1:2])
what is the output of the following code? print("gift[1:2])
strings are immutable in python
strings are immutable in python
what is the output of the following code?
str="My age is 23";
print(str.isalnum())
what is the output of the following code? str="My age is 23"; print(str.isalnum())
the index of the first character of a string is 0.
the index of the first character of a string is 0.
what will be the output of the following code?
print('abc'+3)
what will be the output of the following code? print('abc'+3)