Warning: Undefined array key 0 in /var/www/tgoop/function.php on line 65

Warning: Trying to access array offset on value of type null in /var/www/tgoop/function.php on line 65
765 - Telegram Web
Telegram Web
What will be the output of the following Python code?

print('*', "abcdef".center(7), '*', sep='')
Anonymous Quiz
31%
* abcdef *
35%
* abcdef *
22%
*abcdef *
12%
* abcdef*
1
What will be the output of the following Python code?

print("abcdef".center(7, 1))
Anonymous Quiz
23%
1abcdef
40%
abcdef1
11%
abcdef
25%
error
👍2
What will be the output of the following Python code?

print("abcdef".center(7, '1'))
Anonymous Quiz
18%
1abcdef
43%
abcdef1
8%
abcdef
30%
error
👍2
What will be the output of the following Python code?

print("abcdef".center(10, '12'))
Anonymous Quiz
43%
12abcdef12
22%
abcdef1212
13%
1212abcdef
23%
error
🤯2
What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('yy'))
Anonymous Quiz
61%
2
8%
0
26%
error
5%
none
👍3
What will be the output of the following Python code?

print("xyyzxyzxzxyy".count('yy', 1))
Anonymous Quiz
42%
2
15%
0
32%
1
11%
none
What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('yy', 2))
Anonymous Quiz
44%
2
14%
0
33%
1
10%
none
👍1🤔1
What will be the output of the following Python code?

print("xyyzxyzxzxyy".count('xyy', 0, 100))
Anonymous Quiz
44%
2
18%
0
16%
1
22%
error
What will be the output of the following Python code?

print("xyyzxyzxzxyy".count('xyy', 2, 11))
Anonymous Quiz
32%
2
19%
0
37%
1
12%
error
2🔥1
What will be the output of the following Python code?

print("xyyzxyzxzxyy".count('xyy', -10, -1))
Anonymous Quiz
25%
2
32%
0
18%
1
25%
error
What will be the output of the following Python code?
print('abc'.encode())
Anonymous Quiz
38%
abc
31%
‘abc’
20%
b’abc’
11%
h’abc’
What is the default value of encoding in encode()?
Anonymous Quiz
36%
ascii
17%
qwerty
42%
utf-8
5%
utf-16
What will be the output of the following Python code?

print("xyyzxyzxzxyy".endswith("xyy"))
Anonymous Quiz
13%
1
72%
True
7%
3
8%
2
What will be the output of the following Python code?

print("xyyzxyzxzxyy".endswith("xyy", 0, 2))
Anonymous Quiz
8%
0
17%
1
45%
True
30%
False
🤯1
What will be the output of the following Python code?

print("ab\tcd\tef".expandtabs())
Anonymous Quiz
50%
ab  cd  ef
22%
abcdef
12%
ab\tcd\tef
16%
ab cd ef
👍2
What will be the output of the following Python code?

print("ab\tcd\tef".expandtabs(4))
Anonymous Quiz
66%
ab  cd  ef
12%
abcdef
7%
ab\tcd\tef
15%
ab cd ef
What will be the output of the following Python code?

print("ab\tcd\tef".expandtabs('+'))
Anonymous Quiz
40%
ab+cd+ef
38%
ab++++++++cd++++++++ef
14%
ab cd ef
7%
none of the mentioned
2
What will be the output of the following Python code?

print("abcdef".find("cd") == "cd" in "abcdef")
Anonymous Quiz
57%
True
24%
False
14%
Error
5%
None of the mentioned
What will be the output of the following Python code?

print("abcdef".find("cd"))
Anonymous Quiz
41%
True
38%
2
9%
3
12%
None of the mentioned
👍2
What will be the output of the following Python code?

print("ccdcddcd".find("c"))
Anonymous Quiz
40%
4
40%
0
13%
Error
7%
True
2025/07/13 19:16:41
Back to Top
HTML Embed Code: