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