InterviewSolution
Saved Bookmarks
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Question 8: What is the output of the following program?L = [2e-04, 'a', False, 87]T = (6.22, 'boy', True, 554)for i in range(len(L)):if L[i]:L[i] = L[i] + T[i]else:T[i] = L[i] + T[i]break(A) [6.222e-04, ‘aboy’, True, 641](B) [6.2202, ‘aboy’, 1, 641](C) TypeError(D) [6.2202, ‘aboy’, False, 87] |
| Answer» | |
| 2. |
Question 8: What is the output of the following program?T = 'geeks'a, b, c, d, e = Tb = c = '*'T = (a, b, c, d, e)print(T)(A) (‘g’, ‘*’, ‘*’, ‘k’, ‘s’)(B) (‘g’, ‘e’, ‘e’, ‘k’, ‘s’)(C) (‘geeks’, ‘*’, ‘*’)(D) KeyError |
| Answer» | |