1.
What is the output of the following Python code:
for j in '':
    print(j)
2.
What is the output of the following Python code:
for i in 'abcd' [::-1]:
    print(i)
3.
What is the output of the following Python code:
example = "helo win"
example[3] = 'l'
print(example)
4.
What is the output of the following Python code:
class Name(object):
    def __init__(self, first_name, mi, last_name):
    self.first_name = first_name
self.mi = mi
self.last_name = last_name

first_name = "John"
name = Name(first_name, 'F', "Lisa")
first_name = "Bob"
name.last_name = "Mary"
print(name.first_name)
print(name.last_name)
5.
What is the output of the following Python code:
class Count(object):
    def __init__(self, count = 0):
    self.__count = count
c1 = Count(2)
c2 = Count(2)
print(id(c1) == id(c2))
n1 = "Good"
n2 = "Good"
print(id(n1) == id(n2))
6.
If a class specifies the s1(self) method for an object obj1 in Python, which of the following commands is used to call the method?
7.
What is the output of the following Python code:
a = [0, 1, 2, 3]
i = -2
for i not in a:
    print(i)
i += 1
8.
What is the output of the following Python code:
for i in range(10):
    if i == 5:
    break
else :
    print(i)
9.
What is the output of the following Python code:
d = {
    "john": 40,
    "joe": 45
}
print(list(d.keys()))
10.
What is the output of the following Python code:
d1 = {
    "john": 40,
    "joe": 45
}
d2 = {
    "john": 466,
    "joe": 45
}
print(d1 > d2)