X^y
X**y
X^^y
None of the mentioned
{‘animal’: ‘horses’, ‘verb’: ‘are’, ‘adjective’: ‘fast’}
(‘horses’, ‘are’, ‘fast’)
‘horses are fast’
‘are’
__init__
it
In
On
A a a a a a
A
No output
Error
None
(nothing is printed)
Error
None of the mentioned
4
3
1
-1
DCBA
A, B, C, D
D C B A
A, B, C, D will be displayed on four lines
12abcdef12
Abcdef1212
1212abcdef
Error
True
False
Error
None of the mentioned.
True
False
None
Error
True
False
None
Error
list1.shuffle()
Shuffle(list1)
Random.shuffle(list1)
Random.shuffleList(list1)
[“Welcome”, “to”, “Python”]
(“Welcome”, “to”, “Python”)
{“Welcome”, “to”, “Python”}
“Welcome”, “to”, “Python”
3
5
6
33
True
False
Error
None
(1, 2)
(1, 2, 4)
(2, 4)
(2, 4, 3)
Outfile = open(“c:\scores.txt”, “w”)
Outfile = open(“c:\\scores.txt”, “w”)
Outfile = open(file = “c:\scores.txt”, “w”)
Outfile = open(file = “c:\\scores.txt”, “w”)
Compilation Error
Syntax Error
Displays Output
None of the mentioned
Compilation Error
Runtime Error
Hello Python
Hello Python
Read
Write
Append
None of the above
3
4
4 is maximum
None of the mentioned.
Module
Class
Another Function
Method
432
24000
430
None of the mentioned
Re
Regex
Pyregex
None of the mentioned
re.create(str)
re.regex(str)
Re.compile(str)
Re.assemble(str)
Wait!
Here's an interesting quiz for you.