Hello friends, I welcome you all to my today's video In this video, We will talk about some python coding and theoretical questions which has a high probability of being asked in any interview So I will tell you about 10 coding questions and 10 theoretical questions Which you must know As it can be asked in any interview Let's talk about coding questions first The first question is Generate an infinite Fibonacci series by using a generator Focus on this That the interviewer is expecting from you the use of keyword yield or generator With the help of this you can create a proper Fibonacci series I made a mistake When I created a Fibonacci series using the generator It was running infinitely, And did not stop So make sure You have to make this kind of function which comes to stop And after calling Next Next Next only then values should be generated Otherwise, it should not generate any value I made a mistake but you take care of it And write this code Next question is Sort a list without using a sort keyword This question is in demand in many interviews After palindrome, the second most asked question is Then its this question - Sort , without using sort keyword In this you have to use for loop So you can write this code Next question is based on the palindrome Whether the string is palindrome or not Its a kind of question Whether you are a fresher Or experienced If have an experience of 3-4 years Then also this question is definitely asked Whether a particular string is palindrome or not For that, you can write this answer Next question is Sort a particular dictionary Or it can be asked like Sort a particular dictionary by using a dictionary comprehension For that you can give this answer Next question is Find a pair with a given number in a list What happens is You will be given a sum And you have to pick two elements in a list Whose sum is equal to that number or not For that, you can write this code Next question is Create a Fibonacci series by using recursion You might know how to create a fibonacci series But how it is done properly with the help of recursion You should know about this also, Because most of the interviewers asked in this way only So, You can write this code Next question is based on string manipulation Some input will be given to you in string format And you will be told to make a certain output For now If I take these two cases Which I was asked in many interviews And mostly were similar similar cases Rest questions were asked in the same way, Values can be changed But similar questions were asked For now, I am giving you this output You can write this But you should know How split is used, How slicing is done So that if you are asked more such questions You can tackle it Next question is Find the maximum repeated character in a string without having On² complexity So you can resolve it properly by using a dictionary You can give this code and explain it properly Next question is Find a maximum and minimum value from a list without using any predefined function In this, You don't have to use max or min You cannot use any predefined function You have to use for loop directly to find it Next question is based on Raising an exception You should know, how you can raise an exception Suppose you are given a list And you are told If there is any value 1 in the list Then raise an exception Which you have to show afterward So such kinds of questions can be asked For now, I am giving you this code Which you can follow and write some other codes But you should know How raise is used I was asked this problem in many questions Well, these all were coding questions that you should definitely know Now lets talk about theoretical questions In which the first question is What is the difference between a list, tuple and an array? You should about all three and also the differences between the three In the majority of the cases What is the difference between a list and a tuple? And what is the difference between list and an array? And when you should prefer what When will you use list? When will you use tuple? Or when will you use an array? So you should know about this Next question is What do you mean by lambda function? Explain it with an example You should know properly about the lambda function you should know Its definition And how you can use it in code with an example Next question is based on list function Which are append() or extend() Means you should know to append and extend What are these two things For what purpose they are used Like if we use append, can we add a list in it or any element And same in case of extend Can we add both list and element or not You should know about both Both questions are asked in many interviews Next question is How exception is handled in python? So you should know What is try? What is except? What is else? What is finally? When we can use it? You can explain all these things in your interview The next question is based on the decorator What do you mean by decorator? How do you create a customized decorator? How do you create parameterized decorator? And How you will add two numbers by using a decorator? So these questions are asked in the majority of the cases, on the basis of decorator So you should know about it Also, 1-2 examples, that how to define a decorator Next question is What do you mean by abstraction? How you will define abstract class or function by using abstraction So you should know about this Next question is What do you mean by MRO? What is the Method resolution order? You know properly how to explain this Because I was asked this in many interviews Next question is what is do you mean by GIL? What is Global Interpreter Lock? You should know the proper summary of this and how you can elaborate on it Next question is What if you don't use WITH statement? You need to tell the drawbacks if you don't use with Statement Next question is What is the difference between static and class method? These all the questions which are asked in the Python interview In Majority of the cases Its asked from the experienced ones For freshers there are bit easy questions But I would say even if you are a fresher Do read all these questions Because Who knows What kind of question will be asked? So you should also know about all these questions With this, That's all for today If you found this video nice and informative Then dont forget to like and share Also subscribe to my channel So that I can keep bringing such videos to you Thankyou