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