Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

STRINGS

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

Sequence of characters are called

a)

characters

b)

single char

c)

strings

d)

double

2.

Python treats single and double quotes as same.

a)

True

b)

False

3.

An empty string is a string that has ........characters.

a)

1

b)

0

c)

2

d)

3

4.

Python does not support a ............type.

a)

boolean

b)

int

c)

character type

d)

string

5.

'\n' is used for

a)

after 2line

b)

next paragraph

c)

same line

d)

new line

6.

Multiline strings are represented using....

a)

''' '''

b)

' '

c)

" "

d)

' '''

7.

Find the length of the string: "Hello World python"

a)

19

b)

18

c)

17

d)

16

8.

We can use float or other types for traversing a string.

a)

True

b)

False

9.

String is associated with index .True or false.

a)

True

b)

False

10.

Trying to access a character out of index will raise....

a)

Valid

b)

Invalid

c)

Index Error

d)

None