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