String in Python Quiz 1

Share with others

Enter details and click on Next

Name
Email
Class
Q1. Following is an example of ___________

sv = "csiplearninghub.com"

Q2. Python considered the character enclosed in triple quotes as String.(T/F)

Q3. Write the output of the following.

a = "Blog"
a ='a'
print(a)

Q4. Write the output of the following:

a="We\nto my \nb\t ok"
print(a)

Q5. Write the output of the following code :

a= "Welcome to \"my\" blog"
print(a)

Q6. Write the output of the following code :

a= "Welcome to \
blog"
print(a)

Q7. Write the output of the following code :

str = "Welcome"
str[2] = 'a'
print(str)

Q8. Write the output of the following code :

str = "Welcome"
l=len(str)
print(l)

Q9. What we call the following

\n
\t

Q10. Write the output of the following code :

a = '''A
B
C'''
print(a)


Share with others

4 thoughts on “String in Python Quiz 1”

Leave a Reply