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