K V KAUSANI CLASS:12A SUB: COMP.SC.

11
Created on By Kamini Singhal

Quiz on Strings

1 / 7

str1=”Hello abc”

str1[5:9]

2 / 7

Output of:

Str1=’Hello’

Str1[-1]

3 / 7

Output of:   str1 = “Hello abc”

x = 8

>>> print(str1[x – 2])

4 / 7

Output of:

str1 = “Hello abc”

>>> print(str1[0], str1[2], str1[4])

5 / 7

Output of:

str1 = “Hello abc”

>>> str1[0]

6 / 7

str1=“Good“    >>> str2=‘Morning’

>>> print(str1, str2)

7 / 7

What is the output of:

str1=“Good“    >>> str2=‘Morning’

>>> print(str1, str2)

Your score is

The average score is 71%

0%

Close Menu