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