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