1. a B C D
2. a b c d
3. error
4. A B C D
A B C D
1. Python first searches the built-in namespace, then the global namespace and finally the local namespace
2. Python first searches the built-in namespace, then the local namespace and finally the global namespace
3. Python first searches the local namespace, then the global namespace and finally the built-in namespac
4. Python first searches the global namespace, then the local namespace and finally the built-in namespace
Python first searches the local namespace, then the global namespace and finally the built-in namespac
1. 4 3 2 1
2. error
3. 1 2 3 4
4. none of the mentioned
4 3 2 1
1. bc
2. abc
3. a
4. bca
abc
1. str()
2. format()
3. __str__()
4. __format__()
__str__()
1. pass
2. eval
3. assert
4. nonlocal
eval
1. 12
2. 224
3. None
4. Error
12
1. Error
2. None
3. False
4. True
True
1. getarg
2. getopt
3. main
4. os
getopt
1. {‘a’, ‘c’, ‘c’, ‘p’, ‘q’, ‘s’, ‘a’, ‘n’}
2. {‘abc’, ‘p’, ‘q’, ‘san’}
3. {‘a’, ‘b’, ‘c’, ‘p’, ‘q’, ‘san’}
4. {‘a’, ‘b’, ‘c’, [‘p’, ‘q’], ‘san}
{‘a’, ‘b’, ‘c’, ‘p’, ‘q’, ‘san’}