Python - Strings

page 1 out of 4

page 1 out of 4


Question 1     

 What is the output of the following? print("Hello {0!r} and {0!s}".format('foo', 'bin'))






Question 2     

Python in strings can be represented as






Question 3     

What is the expected output for the below code snippet

print(r'F:\Inquisitive\MCQ Portal\name')





Question 4     

what is the expected output

print(‘The’ ‘Inquisitive’)





Question 5     

what is the expected out

prefix = 'The'
prefix 'Inquisitive'
print(prefix)





Question 6     

Which of the following is correct related to strings to access the string Suppose s = “Theinquisitive”






Question 7     

Which of the following is false






Question 8     

Which of the following is True? String = “Hello World”







Question 9     

What is the expected output for the below code snippet

print(' F:\Inquisitive\MCQ Portal\name')





Question 10     

What are the different types to comment the code snippets





page 1 out of 4

page 1 out of 4


Sign Up Page

Oops!!

To view the solution need to Login



Score : 0 / 0
L
o
a
d
i
n
g
.
.
.