1.
In Python, what is the use of the truncate() method in file handling?
2.
What is the output of the following Python code:
x = 1234
print(list(map(list, x)))
3.
What is the output of the following Python code:
x = abcd
print(list(map(list, x)))
4.
What is the output of the following Python code:
x = 'abcd'
print(list(map(list, x)))
5.
What is the output of the following Python code:
x = [34, 56]
print((''.join(list(map(str, x))), ))
6.
What is the output of the following Python code:
x = [
    [0],
    [1]
]
print((' '.join(list(map(str, x))), ))
7.
What is the output of the following Python code:
x = [
    [0],
    [1]
]
print((' '.join(list(map(str, x)))))
8.
What is the output of the following Python code:
x = ['ab', 'cd']
9.
What is the output of the following Python code:
x = ['ab', 'cd']
print(map(len, x))
10.
What is the output of the following Python code:
def to_upper(k):
    k.upper()
x = ['ab', 'cd']
print(list(map(to_upper, x)))