Question 1 |
insert() | |
extend() | |
copy() | |
sort() | |
append() |
Question 2 |
.pyt | |
.py | |
.p | |
.ptx | |
.txt |
Question 3 |
try | |
break | |
except | |
continue | |
pass |
Question 4 |
strip() | |
del() | |
remove() | |
replace() | |
sort() |
Question 5 |
[5, 6, 7, 8] | |
[6, 7, 8] | |
[6, 7, 8, 9] | |
[5, 6, 7, 8, 9, 10] | |
[5, 6, 7, 8, 9] |
Question 6 |
{1,2,3} | |
{2,3,7,10,15} | |
{1,2,2,3,3,7,10,15} | |
{1,2,3,7,10,15} | |
{2, 3} |
Question 7 |
x[3:4] | |
x[2:3] | |
x[3:5] | |
x[2:4] | |
x[2:5] |
Question 8 |
6 | |
4 | |
5 | |
8 | |
7 |
Question 9 |
[2, 4, 6, 8, 10] | |
[1, 3, 5, 7, 9] | |
[0, 1, 3, 5, 7, 9] | |
[1, 2, 3, 4, 5, 6, 7, 8, 9] | |
[2, 4, 6, 8] |
Question 10 |
dictionary | |
set | |
tuple | |
list | |
all of them |
Question 11 |
y[1] | |
y[-2] | |
y[2] | |
y[-1] | |
y[3] |
Question 12 |
8 | |
16 | |
4 | |
20 | |
12 |
Question 13 |
x[1] | |
x[ ] | |
x[0] | |
none of them | |
x[-1] |
Question 14 |
[55, 150, 155, 250, 255] | |
[110, 120, 130, 140, 150] | |
[50, 100, 150, 200, 250] | |
[5, 10, 15, 20, 25] | |
none of them |
Question 15 |
join | |
split | |
remove | |
index | |
upper |
Question 16 |
5 | |
An Error! | |
Exception | |
None of them | |
x |
Question 17 |
10 | |
0 | |
180 | |
1800 | |
18 |
Question 18 |
6 | |
8 | |
7 | |
9 | |
5 |
Question 19 |
s1 | [3, 4, 5] | |
s1 | set([3, 4, 5]) | |
s1.union({3, 4, 5})
| |
none of them | |
s1.union([3, 4, 5]) |
Question 20 |
elseif | |
else | |
elif | |
if | |
none of them |