Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What is the output of the following?
def to_upper(k):
return k.upper()
x = ['ab', 'cd']
print(list(map(upper, x)))
Correct Answer is : error
2. What is the output of the following?
def to_upper(k):
return k.upper()
x = ['ab', 'cd']
print(list(map(to_upper, x)))
Correct Answer is : [‘AB’, ‘CD’].
3. What is the output of the following?
def to_upper(k):
k.upper()
x = ['ab', 'cd']
print(list(map(to_upper, x)))
Correct Answer is : none of the mentioned
4. What is the output of the following?
x = ['ab', 'cd']
print(map(len, x))
Correct Answer is : none of the mentioned
5. What is the output of the following?
x = ['ab', 'cd']
print(list(map(len, x)))
Correct Answer is : [2, 2].
6. What is the output of the following?
x = ['ab', 'cd']
print(len(map(list, x)))
Correct Answer is : none of the mentioned
7. What is the output of the following?
x = ['ab', 'cd']
print(len(list(map(list, x))))
Correct Answer is : 2
8. What is the output of the following?
x = ['ab', 'cd']
print(len(list(map(list, x))))))
Correct Answer is : error
9. What is the output of the following?
x = ['ab', 'cd']
print(list(map(list, x)))
Correct Answer is : [[‘a’, ‘b’], [‘c’, ‘d’]].
10. What is the output of the following?
x = [12, 34]
print(len(list(map(len, x))))
Correct Answer is : error
11. What is the output of the following?
x = [12, 34]
print(len(list(map(int, x))))
Correct Answer is : 2
12. What is the output of the following?
x = [12, 34]
print(len(''.join(list(map(int, x)))))
Correct Answer is : error
13. What is the output of the following?
x = [12, 34]
print(len(''.join(list(map(str, x)))))
Correct Answer is : 4
14. What is the output of the following?
x = [12, 34]
print(len(' '.join(list(map(int, x)))))
Correct Answer is : error
15. What is the output of the following?
x = [12.1, 34.0]
print(len(' '.join(list(map(str, x)))))
Correct Answer is : 9
16. What is the output of the following?
x = [12.1, 34.0]
print(' '.join(list(map(str, x))))
Correct Answer is : 12.1 34.0
17. What is the output of the following?
x = [[0], [1]]
print(len(' '.join(list(map(str, x)))))
Correct Answer is : 7
18. What is the output of the following?
x = [[0], [1]]
print((' '.join(list(map(str, x)))))
Correct Answer is : [0] [1].
19. What is the output of the following?
x = [[0], [1]]
print((' '.join(list(map(str, x))),))
Correct Answer is : (‘[0] [1]’,)
20. What is the output of the following?
x = [34, 56]
print((''.join(list(map(str, x))),))
Correct Answer is : (‘3456’,)
Similar Interview Questions
Search for latest jobs
Get $5 added to your wallet for registering an account. Refer others and get $1 for each successful referral. Earn while you search for jobs and redeem in gift cards!Register to search from millions of jobs across the United States. Upload your resume and get matched with top employers today!
Search For Latest Jobs
Get updates when articles are posted!
Get $5 added to your
wallet for registering an account.
Refer others and get $1 for each successful referral.
Earn while you
search for jobs
and redeem in gift cards!
Register to search from millions of jobs across the United States.
Upload your resume and get matched with
top employers today!
Search For Latest Jobs
Get updates when articles are posted!
We use cookies and similar technologies to analyze site traffic and improve your experience.
We use cookies to improve your experience. You can customize your preferences below.
Privacy Policy |
Terms of Service