| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

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’,)