Question 1 |
x[3:] | |
x[2:] | |
x[:2] | |
x[2:3] | |
x[-1:2] |
Question 2 |
{12,17,22,56,80,92} | |
{12,17,56,80,92} | |
{17,22,80} | |
{22, 56, 12, 92} | |
{12,17,17,22,56,80,80,92} |
Question 3 |
change() | |
replace() | |
convert() | |
strip() | |
sort() |
Question 4 |
An Error! | |
All is Good! | |
5 | |
Exception | |
5
All is Good! |
Question 5 |
[5, 10, 15, 20] | |
[5, 10, 15, 20, 25] | |
[0, 5, 10, 15, 20, 25, 30] | |
[5, 10, 15, 20, 25, 30] | |
[0, 5, 10, 15, 20, 25] |
Question 6 |
[1, [2, 3], 4] [1, [2, 7], 4] | |
[1, [2, 3], 4] [1, [2, 3], 4] | |
none of them | |
[1, [2, 7], 4] [1, [2, 3], 4] | |
[1, [2, 7], 4] [1, [2, 7], 4] |
Question 7 |
[4, 6, 7, 10, 2, 8] | |
[4, 6, 7, 2, 8, 10] | |
[4, 6, 7, 2, 8, 3] | |
[4, 6, 7, 2, 8] | |
[4, 6, 7, 3, 2, 8] |
Question 8 |
15.0 | |
20.0 | |
30.0 | |
25.0 | |
10.0 |
Question 9 |
/ | |
* | |
// | |
# | |
- |
Question 10 |
40 | |
120 | |
180 | |
60 | |
100 |
Question 11 |
65536 | |
0 | |
16512 | |
32767 | |
no limit |
Question 12 |
[1, 2, 3, 4, 5, 6, 7, 8, 9] | |
[1, 3, 5, 7, 9] | |
[1, 4, 9, 16, 25, 36, 49, 64, 81] | |
[1, 100] | |
[1, 10] |
Question 13 |
4 | |
1 | |
0 | |
3 | |
2 |
Question 14 |
10 | |
12 | |
11 | |
9 | |
8 |
Question 15 |
set FirstFunction(): | |
create FirstFunction() | |
create FirstFunction(): | |
def FirstFunction() | |
def FirstFunction(): |
Question 16 |
x[-%] | |
x[1] | |
x[-] | |
x[-1] | |
x[ ] |
Question 17 |
True | |
False |
Question 18 |
raise | |
except | |
finally | |
none of them | |
try |
Question 19 |
{1,2,3,7,10,15} | |
none of them | |
{2,3,7,10,15} | |
{1,2,3} | |
{10, 15, 7} |
Question 20 |
2 | |
0 | |
4 | |
3 | |
1 |