Question 1 |
none of them | |
join(-) | |
"-".join(x) | |
-.join(x) | |
join("-") |
Question 2 |
x[1:3] | |
x[:2] | |
x[-1:-3] | |
x[3:] | |
x[:3] |
Question 3 |
0 | |
{3,4,5} | |
False | |
True | |
{12,17,56,80,92} |
Question 4 |
0, 25, 10 | |
5, 20, 5 | |
0, 30, 2 | |
0, 30, 10 | |
5, 30, 5 |
Question 5 |
\w - Matches word characters. | |
\d - Matches strings. | |
[...] - Matches any single character in brackets. | |
^ - Matches beginning of line. | |
$ - Matches end of line. |
Question 6 |
list[0][2][2][0] | |
list[1][2][2][1] | |
list[1][2][2][0] | |
list[1][1][2][0] | |
list[1][2][1][1] |
Question 7 |
#This is x code | |
*This is x code | |
//This is x code | |
-This is x code | |
/This is x code |
Question 8 |
0 | |
3 | |
1 | |
4 | |
2 |
Question 9 |
[-1, 1, 2, 3, 4, 5, 6, 7] | |
[-1, 0, 1, 2, 3, 4, 5, 6, 7] | |
[0, 2, 4, 6] | |
[0, 1, 2, 3, 4, 5, 6, 7, 8] | |
[1, 2, 3, 4, 5, 6, 7] |
Question 10 |
clear() | |
remove() | |
del() | |
empty() | |
delete() |
Question 11 |
print("I love Python!") | |
print(I love Python!) | |
all of them | |
print(I love Python!): | |
print "I love Python!" |
Question 12 |
upper() | |
down() | |
convert() | |
lower() | |
up() |
Question 13 |
x[2] | |
x[-2] | |
x[0] | |
x[-1] | |
x[1] |
Question 14 |
False | |
{1,2,3,4} | |
True | |
None of them | |
{10,1,20,2,3} |
Question 15 |
(["eagle","bear","wolf"]) | |
["eagle","bear","wolf"] | |
{"eagle","bear","wolf"} | |
"eagle","bear","wolf" | |
("eagle","bear","wolf") |
Question 16 |
none of them | |
Count
| |
20count | |
count5 | |
_Count |
Question 17 |
4 | |
6 | |
8 | |
12 | |
2 |
Question 18 |
& | |
|| | |
% | |
// | |
== |
Question 19 |
none of them | |
dict.items() | |
dict.keys() | |
dict.values() | |
dict.values() |
Question 20 |
index | |
strip | |
split | |
replace | |
join |
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