Pergunta de entrevista da empresa Next Solution Lab

1. Why is python interpreted language 2. How would you do call by reference in python 3. They showed me a snapshot of a code and said what will be the output 4. Which sort is quick or merge and why? 5. How can you reverse a list without using a loop 6. What is the difference between class and instance 7. What is the efficient way to know which graph is strongly connected 8. what is the difference between AI, ML, and DL 9. A patient has come in who has a critical condition emergency surgery is needed now you have a doctor who has 80% accuracy and a Machine learning model who has an accuracy of 90% whom will you choose and why 10. Can you explain Deep-Q-Learning to me in less than 1 min [Assume that I am a child] 11. What is the complexity of hashtable if a linked list was used? 12. How to reverse an infinite linked list 13. What does Itertool do in python and all other questions were based on the previous coding exams question

Resposta da entrevista

Sigiloso

1 de abr. de 2022

1. Because we can execute or run the code line by line 2. By using the equal to/ "=" sign 3. 4. Both have their pros and cons depending on what the question is asking for if I have a problem where I need to have a constant amount of space I would take Quick Sort because Quick Sort has a space complexity of O(nlogn) Merge sort can vary but if the problem said we need to have less time complexity as possible I would have gone for merge sort because in the worst-case time complexity of merge sort is O(nlogn) where quicksort has O(n^2) 5. using the slicing method of the list str [::-1] 6. Instance is an object which is defined by a class. 7. Use DFS 8. In AI we set some rules for the environment and our agent follows that rule and gives us the output In ML we give structured data and our model creates some rules or equations based on the data and predicts the output based on the rule that it created In DL we give the model unstructured data and the model creates some rules same as ML but the difference is one is structured data and another is unstructured 9. I would say it would be the doctor because the ML model has the accuracy of 90% but there can be high variance in the model the doctor has experience yes he has less accuracy but in the case of the doctor the variance would below 10. Assume you want to go home from your school now there are two routes you can take. Now One route has a lot of dust and traffic and another route is clean but it is a little bit longer now which route would you choose it's, of course, will be the Second one because in your mind you gave every negative aspect a negative value for say dust and traffic both has a negative value of -1 and -1 by adding them up you get -2 but for the 2nd route you only have 1 negative thing which is long road so the first one has value of -2 and 2nd one has the value of -1 that' s why you picked the 2nd route and that's the basic idea of Deep-Q-Learning 11. In the worst case it would be O(n) 12. I will take an infinite stack and the process is the same 13. Never heard of it