Question 1 |
remove() | |
sort() | |
strip() | |
replace() | |
del() |
Question 2 |
index | |
remove | |
join | |
split | |
upper |
Question 3 |
copy() | |
extend() | |
append() | |
sort() | |
insert() |
Question 4 |
dictionary | |
set | |
tuple | |
list | |
all of them |
Question 5 |
12 | |
20 | |
4 | |
16 | |
8 |
Question 6 |
10 | |
1800 | |
180 | |
0 | |
18 |
Question 7 |
none of them | |
else | |
if | |
elseif | |
elif |
Question 8 |
5 | |
8 | |
9 | |
7 | |
6 |
Question 9 |
.pyt | |
.p | |
.ptx | |
.py | |
.txt |
Question 10 |
{1,2,3,7,10,15} | |
{2,3,7,10,15} | |
{1,2,2,3,3,7,10,15} | |
{1,2,3} | |
{2, 3} |
Question 11 |
[5, 10, 15, 20, 25] | |
[50, 100, 150, 200, 250] | |
[110, 120, 130, 140, 150] | |
[55, 150, 155, 250, 255] | |
none of them |
Question 12 |
[5, 6, 7, 8] | |
[6, 7, 8, 9] | |
[5, 6, 7, 8, 9] | |
[6, 7, 8] | |
[5, 6, 7, 8, 9, 10] |
Question 13 |
x[2:5] | |
x[2:3] | |
x[3:5] | |
x[2:4] | |
x[3:4] |
Question 14 |
[1, 2, 3, 4, 5, 6, 7, 8, 9] | |
[0, 1, 3, 5, 7, 9] | |
[1, 3, 5, 7, 9] | |
[2, 4, 6, 8] | |
[2, 4, 6, 8, 10] |
Question 15 |
x[ ] | |
x[0] | |
x[-1] | |
x[1] | |
none of them |
Question 16 |
continue | |
break | |
except | |
try | |
pass |
Question 17 |
s1 | [3, 4, 5] | |
s1.union({3, 4, 5})
| |
none of them | |
s1.union([3, 4, 5]) | |
s1 | set([3, 4, 5]) |
Question 18 |
6 | |
8 | |
7 | |
5 | |
4 |
Question 19 |
y[3] | |
y[-2] | |
y[-1] | |
y[2] | |
y[1] |
Question 20 |
An Error! | |
Exception | |
x | |
5 | |
None of them |
Gokhan Kosem is a Network Engineer, Instructor and the Founder of IPCisco.com with 15+ years of experience in Cisco, Nokia, Huawei, Juniper, Linux, Service Provider Networks, Routing and Switching technologies.
He has worked on the backbone networks of major service providers and network vendors including Nortel, Alcatel-Lucent (Nokia) and has extensive hands-on experience with Cisco, Huawei, Juniper and Nokia networking technologies.
He has trained thousands of networking students worldwide through IPCisco.com, Udemy, books, labs, quizzes, and educational content across multiple social media platforms.
IPCisco.com | Best Route to Your Dreams