.
Yes
No
Machine dependent
None of the mentioned
_a = 1
__a = 1
__str__ = 1
None of the mentioned
print(‘hello’, ‘how’, ‘are’, ‘you’)
Print(‘hello’, ‘how’, ‘are’, ‘you’ + ‘-‘ * 4)
Print(‘hello-‘ + ‘how-are-you’)
Print(‘hello’ + ‘-‘ + ‘how’ + ‘-‘ + ‘are’ + ‘you’)
List
Tuple
Class
Dictionary
Float(‘inf’)
Float(‘nan’)
Float(’56’+’78’)
Float(’12+34′)
64, 512, 64
64, 64, 64
512, 512, 512
512, 64, 512
Indentation Error
Cannot perform mathematical operation on strings
Hello2
Hello2hello2
1 2
1 2 3
Error
None of the mentioned
0 1 2
A b c
0 a 1 b 2 c
None of the mentioned
0 1 2 3 4 Here
0 1 2 3 4 5 Here
0 1 2 3 4
1 2 3 4 5
Wo
World
Sn
Rl
[2, 6, 4].
[1, 3, 2, 1, 3].
[1, 3, 2, 1, 3, 2] .
[1, 3, 2, 3, 2, 1].
1
2
5
Error
[“john”, “peter”].
[“john”:40, “peter”:45].
(“john”, “peter”)
(“john”:40, “peter”:45)
2
False
-3
-4
Hello World! Hello World!
‘Hello World!’ ‘Hello World!
Hello Hello
None of the mentioned
No, there is no such thing as else
No, else cannot be used with except
No, else must come before except
Yes
No error
Assertion error
Input output error
Name error
When you open a file for reading, if the file does not exist, an error occurs
When you open a file for writing, if the file does not exist, a new file is created
When you open a file for writing, if the file exists, the existing file is overwritten with the new file
All of the mentioned
Current date only
UTC time
Current date and time
Current time only
Wait!
Here's an interesting quiz for you.