NEW
Font size
WorksheetsFunctions & NameSpace in Python -1
Total questions: 10
Worksheet time: 5mins
What will be the output of the following Python code?
Hello World!
Hello World!
'Hello World!'
'Hello World!'
Hello
Hello
None of the mentioned
What will be the output of the following Python code?
3
4
4 is maximum
None of the mentioned
What will be the output of the following Python code?
x is 50
Changed local x to 2
x is now 50
x is 50
Changed local x to 2
x is now 2
x is 50
Changed local x to 2
x is now 100
None of the mentioned
What will be the output of the following Python code?
x is 50
Changed global x to 2
Value of x is 50
x is 50
Changed global x to 2
Value of x is 2
x is 50
Changed global x to 50
Value of x is 50
None of the mentioned
What will be the output of the following Python code?
Hello
WorldWorldWorldWorldWorld
Hello
World 5
Hello
World,World,World,World,World
Hello
HelloHelloHelloHelloHello
What will be the output of the following Python code?
a is 7 and b is 3 and c is 10
a is 25 and b is 5 and c is 24
a is 5 and b is 100 and c is 50
a is 3 and b is 7 and c is 10
a is 5 and b is 25 and c is 24
a is 50 and b is 100 and c is 5
a is 3 and b is 7 and c is 10
a is 25 and b is 5 and c is 24
a is 100 and b is 5 and c is 50
None of the mentioned
What will be the output of the following Python code?
2
3
The numbers are equal
None of the mentioned
Which of the following is a feature of DocString?
Provide a convenient way of associating documentation with Python modules, functions, classes, and methods
All functions should have a docstring
Docstrings can be accessed by the __doc__ attribute on objects
All of the mentioned
What will be the output of the following Python code?
9
3
27
30
What will be the output of the following Python code?
212
32
314
24
567
98
None of the mentioned
