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