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