wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Strings in Python

Total questions: 100

Worksheet time: 50mins

Name
Class
Date
1.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
2.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
3.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
4.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
5.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
6.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
7.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
8.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
9.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
10.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
11.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
12.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
13.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
14.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
15.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
16.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
17.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
18.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
19.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
20.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
21.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
22.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
23.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
24.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
25.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
26.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
27.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
28.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
29.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
30.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
31.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
32.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
33.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
34.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
35.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
36.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
37.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
38.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
39.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
40.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
41.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
42.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
43.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
44.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
45.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
46.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
47.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
48.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
49.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
50.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
51.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
52.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
53.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
54.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
55.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
56.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
57.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
58.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
59.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
60.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
61.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
62.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
63.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
64.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
65.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
66.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
67.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
68.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
69.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
70.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
71.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
72.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
73.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
74.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
75.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
76.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
77.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
78.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
79.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
80.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
81.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
82.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
83.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
84.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
85.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
86.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
87.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
88.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
89.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
90.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
91.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
92.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
93.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
94.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
95.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
96.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string
97.
What is the result of 'abc' + 'def'?
a)
'abcdef'
b)
'abc def'
c)
'abc+def'
d)
Error
98.
Which function converts a character to its ASCII value?
a)
ord()
b)
chr()
c)
ascii()
d)
code()
99.
What is the output of 'Python'[:3]?
a)
'Pyt'
b)
'yth'
c)
'hon'
d)
Error
100.
What does 'in' operator do in strings?
a)
Checks membership
b)
Concatenates strings
c)
Multiplies strings
d)
Deletes a string