Question 1 |
10 | |
4 | |
3 | |
1 | |
0 |
Question 2 |
x.join("") | |
"".join(x) | |
"-".join(x) | |
x.join("-") | |
x.join() |
Question 3 |
sort(x) | |
len(x) | |
find(x) | |
measure(x) | |
list(x) |
Question 4 |
else | |
pass | |
continue | |
break | |
elif |
Question 5 |
[0, 1, 2, 3, 4, ,5 6, 7, 8] | |
[2, 4, 6, 8] | |
[0, 2, 4, 6] | |
[0, 2, 4, 6, 8] | |
[1, 2, 3, 4, ,5 6, 7, 8] |
Question 6 |
0 | |
4 | |
2 | |
3 | |
1 |
Question 7 |
['lion', 'cat', 'bear', 'Dog', 'bird'] | |
['lion', 'bear', 'Dog', 'bird', 'cat'] | |
['lion', 'cat', 'bird', 'bear', 'Dog', ] | |
['bear', 'Dog', 'bird', 'cat', 'lion'] | |
['bear', 'bird', 'cat', 'Dog', 'lion'] |
Question 8 |
4 | |
1 | |
2 | |
0 | |
3 |
Question 9 |
l | |
d | |
i | |
o | |
g |
Question 10 |
isupper() | |
isalpha() | |
isdecimal() | |
isspace() | |
istitle() |
Question 11 |
4.0 | |
12.0 | |
16.0 | |
20.0 | |
8.0 |
Question 12 |
union() | |
len() | |
chc() | |
str() | |
cmp() |
Question 13 |
[1, 2, 3, 4, 5] | |
[1, 2, 4, 5] | |
[3] | |
[1, 2, 4, 5, 6] | |
[1, 2, 3, 4, 5, 6] |
Question 14 |
abc
| |
_abc_ | |
20abc | |
none of them | |
abc1abc2 |
Question 15 |
"Hello"[-1] | |
"Hello"[1] | |
"Hello"[2] | |
"Hello"[-2] | |
"Hello"[0] |
Question 16 |
None of them | |
{12,17,56,80,92} | |
True | |
False | |
{12,56,80} |
Question 17 |
x[1] | |
x[3] | |
x[-1] | |
x[0] | |
x[-2] |
Question 18 |
MyFunc(): | |
set MyFunc() | |
MyFunc() | |
MyFunc(); | |
get MyFunc() |
Question 19 |
5,25,50 | |
50 | |
25,50 | |
5,12,25,33,48,50,61 | |
25 |
Question 20 |
a[2:] = [3, 4, 5, 6] | |
a[2:2] = [3, 4, 5, 6] | |
a[3:2] = [3, 4, 5, 6] | |
a[0:2] = [3, 4, 5, 6] | |
a[:3] = [3, 4, 5, 6] |
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