Python Learning ...
194 subscribers
32 photos
1 file
29 links
Learn python programming language
Download Telegram
What will be the output of the following code snippet? 🧠🖥🤔

- example = ["Sunday", "Monday", "Tuesday", "Wednesday"]; - print(example[-3:-1])
Anonymous Quiz
39%
['Monday', 'Tuesday']
18%
['Sunday', 'Monday']
21%
['Tuesday', 'wednesday']
23%
['Monday', 'Wednesday']
👍2🔥1
Which of the following statements is valid for "if statement"?🧠🖥🤔
Anonymous Quiz
52%
if f<=12:
28%
if (f<=12)
9%
if (f>=122)
11%
if f>=12
What is the maximum possible length of an identifier?🤔🧠🖥
Anonymous Quiz
27%
79
19%
83
15%
40
39%
None of the above
👍2
What is the output of this code? eval("1 + 3 * 2")
Anonymous Quiz
14%
'1+6'
46%
7
21%
8
18%
'1+3*2'
What will be the output of the following code snippet?🖥🧠🤔

a = [1, 2] print(a * 3)
Anonymous Quiz
37%
Error
46%
[1,2,1,2,1,2]
10%
[1,2,1,2]
7%
9
👍2
What will be the output of this program ?🤔🧠🖥
--> print("java", 'point', sep='2')
Anonymous Quiz
39%
java2point
8%
javapoint
34%
javapoint2
18%
javapointsep=2
👍2
What will be the output of this program?🧠🖥🤔
--> print(max("zoo 145 com"))
Anonymous Quiz
46%
142
22%
122
11%
a
20%
z
What will be the output of the following code snippet? 🖥🤔🧠

--> print(2**3 + (5 + 6)**(1 + 1))
Anonymous Quiz
42%
129
15%
19
24%
120
20%
None of the above
What will be the output of this program? 🧠🤔🖥
--> int1 = 0b0010
print(int1)
Anonymous Quiz
42%
0b0010
21%
2
13%
5
24%
syntaxerror
👍3
What will be the output of this statement? 🖥🤔🧠
print(0xA + 0xB + 0xC)
Anonymous Quiz
16%
33
21%
63
25%
none
38%
0xA + 0xB + 0xC
What will be the output of this program? 🧠🖥🤔
print(True ** False / True)
Anonymous Quiz
32%
True ** False / True
32%
1 ** 0/ 1
26%
1.0
10%
none of the above
What is output of the following 🧠🖥🤔
print(math.pow(5, 2))?
Anonymous Quiz
44%
25
32%
25.0
10%
None
14%
Error
👍2
👍3
>>> tup = ("1234")
>>> print(type(tup))
Anonymous Quiz
45%
string
18%
error
33%
tuple
3%
none
a="2"
b="2"
print(a+b)
Anonymous Quiz
38%
'22'
20%
'4'
25%
4
17%
Error
👍3
In Python, what is the default maximum level of recursion?
Anonymous Quiz
17%
500
24%
1000
26%
10000
32%
None of the above
Choose the correct option for the below script

>>> a = (1, 2, 3) >>> type(a) <class 'tuple'> >>> b = (3) >>> type(b)
Anonymous Quiz
31%
<class 'int'>
59%
<class 'tuple'>
10%
<class 'list'>
python supports the creation of anonymous function at runtime, using a construct called________
Anonymous Quiz
22%
pi
34%
anonymous
38%
lambda
7%
none of the mentioned
👍1
what will be the output of the following python function? len(["hello",2,4,6])
Anonymous Quiz
34%
error
18%
6
36%
4
12%
3
👍1