Python Question Paper
Python Question Paper
Duration: 1 hour
Instructions:
1. You can download this assessment document, edit and submit with your answers in
the format shown below.
2. Do not use google and any online help to answer.
3. Answers that you provide, will be a baseline for discussion during the interview.
4. Attempting answers to all questions is mandatory.
Total Experience:
Task: We have 2 variables, variable1 and variable2. Please find the index of the sub-string
occurrence. Prepare the custom logic and Avoid using inbuilt functions.
Task: Write a python program, that reads the file employees.csv and return the following
output:
Input: employees.csv
Output:
Department TotalEmployee HighestSalary
Development 3 50,00,000
Business 2 20,00,000
Sales 1 30,00,000
Write code snippets to hold below given diagram data/Nodes in python data structure.
Note:
● Please make a note we can extend this below tree till Nth level.
● Make sure easy traversing/Searching should be possible with your provided solution.
Question 6: Describe the memory management in python ? How python will handle the
memory management in below 5 scenarios.
1. Var1 = [1, 2, 3]
2. Var2 = Var1
3. Var1.append(4)
4. Var2 = (1, 2)
5. Var2[0] = 3