NEW
Font size
WorksheetsPython Marathon (Easy Round)
Total questions: 10
Worksheet time: 3mins
Which of the following operators are not allowed in Strings?
+
-
*
==
Give the output of the following code:
ytho
tho
pytho
thon
What will be the output of the following code?
['Guess ', 'he ou', 'pu', ' of ', 'his code']
['Guess t', 'he out', 'put', ' of t', 'his code']
['Guess ', 'the ou', 't pu', 't of ', 'this code']
NameError
Which function can add elements to the end of a list?
.add()
.insert()
.append()
.update()
Which of the following can be an output of the combination of comparison and arithmetic operators?
<int>
<bool>
<float>
All the above
Give the output of the following code:
Rob
Sansa
Bran
Rickon
Which of the following gives the output as False?
print('abc'>'aBc')
print('123334'>'2111')
print('xyz'>'wxyz')
Both a and c
What will be the index of ‘o’ in ‘PythonGeeks’?
4 or -7
4 or -6
5 or -7
5 or -6
Which of these is not a data type of numbers in Python?
int
float
real
complex
What is the output of the following code?
True
True
True
False
False
Trur
False
False
