1.
What is the output of the following Python code:
import re;
arg1 = 'we are girls'
arg2 = re.match(r '(.*) (.*?) (.*)', arg1)
print(arg2.group())
2.
What is the output of the following Python code:
print(max("what are you"))
3.
What is the output of the following Python code:
class Mother(object):
    def __init__(self, param):
    self.o1 = param

class Child(Mother):
    def __init__(self, param):
    self.o2 = param

obj = Child(22)
print(obj.o1, obj.o2)
4.
What is the output of the following Python code:
def print_y(y):
    print("Value of y is: ", y)

y = 50
def func(y):
    print_y(y)
y = 2
print_y(y)
func(y)
print_y(y)
5.
What is the output of the following Python code:
L = [
    lambda y: y * * 1,
    lambda y: y * * 2,
    lambda y: y * * 3
]

for f in L:
    print(f(3))
6.
What is the output of the following Python code:
def writer():
    title = 'Sir'
name = (lambda x: title + ' ' + x)
return name
who = writer()
print(who('John'))
7.
What is the output of the following Python code:
try:
if '5' != 5:
    raise "NotEqualException"
print("String and integer comparison is supported")
except "NotEqualException":
    print("String and integer comparison not supported")
else :
    print("Else block will be executed")
8.
What is the output of the following Python code:
def foo():
    try:
    print(2)
finally:
print(3)
foo()
9.
Select the correct option:
class BananaDoesNotExistException(Exception):
    pass

def get_banana_color(d):
    if 'banana' in d:
    return d['banana']
raise BananaDoesNotExistException()

try:
d = {
    'apple': 'red',
    'orange': 'orange',
    'guava': 'yellow'
}
b_color = get_banana_color(d)
except BananaDoesNotExistException:
    print('Banana not found')
d['banana'] = 'yellow'
else :
    print(d['banana'], 'from else block')
finally:
print(d['banana'], 'from finally block')
10.
What is the output of the following python code:
a = (1, 2, 3)
try:
a[0] = 4
print(a)
except:
    a = list(a)
a[0] = 4
print(a)
finally:
a[1] = 5
print(a)