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