# 75+ Interview Questions - Swapna Kumar Panda

Content Courtesy : https://twitter.com/swapnakpanda/status/1568563856322236416 <br>
Content Provider : Swapna Kumar Panda ( https://twitter.com/swapnakpanda) 

75+ Interview Questions

    ❍  C++
    ❍  Java
    ❍  C#
    ❍  Python
    ❍  JavaScript

on OOPs & Design Patterns.

⇩

Level: Beginner to Medium
Topic:

➊  OOPs Basics<br>
➋  Class, Object, Interface<br>
➌  Encapsulation, Abstraction, Polymorphism, Inheritance<br>
➍  Constructor and Destructor<br>
➎  Design Patterns<br>

➊  OOPs Basics<br>

➀  What is a programming paradigm?<br>
➁  Mention various types of programming paradigms.<br>
➂  What is structured programming?<br>
➃  What are OOPs?<br>
➄  Why are OOPs needed?<br>
      Or,<br>
➅  Advantages of OOPs<br>

➆  Where should OOPs not be used?<br>
➇  What are the major features of OOPs?<br>
➈  Mention a few popular languages that support OOPs.<br>
➉  Does <your_language> support OOPs? How?<br>

➋  Class, Object, Interface<br>

➀ Define a class.<br>
➁ What is an Object?<br>
➂ Does class take memory?<br>
➃ What does a class provide/define?<br>
➄ What is a property in a class?<br>
➅ What is a method in a class?<br>

➆ What is an abstract method?<br>
➇ What is an abstract class?<br>
➈ What is an Interface?<br>
➉ What does "static" mean wrt Properties and Methods?<br>

➌  Encapsulation, Abstraction, Polymorphism, Inheritance<br>

➀ What is encapsulation?<br>
➁ What is Data Hiding?<br>
➂ What is Data Binding?<br>
➃ How does <your_language> do encapsulation?<br>
➄ What is abstraction?<br>
➅ How is abstraction accomplished?<br>
➆ What is Inheritance?<br>

➇ Give an example of inheritance.<br>
➈ What are the advantages of inheritance?<br>
➉ Are there any limitations to inheritance?<br>
➀➀ What are the different types of inheritance?<br>
➀➁ Which type of inheritance does <your_language> support?<br>
➀➂ What is a superclass/subclass?<br>

➀➃ What is polymorphism?<br>
➀➄ What are the different types of polymorphism? Explain.<br>
➀➅ What is Method Overloading?<br>
➀➆ What is Method Overriding?<br>
➀➇ Tell the difference between Overloading and Overriding.<br>
➀➈ How does <your_language> support overloading and overriding?<br>

➍  Constructor and Destructor<br>

➀ What is a constructor?<br>
➁ What are the different types of constructors?<br>
➂ What do you mean by a default constructor?<br>
➃ What is a parameterised constructor?<br>
➄ What is a copy constructor?<br>
➅ When is a constructor invoked?<br>

➆ Is a parent class constructor invoked when a child class constructor is invoked? In what order?<br>
➇ Is the creation of an object mandatory? If not, when?<br>
➈ Can an interface have a constructor?<br>
➉ What is a destructor?<br>
➀➀ When is a destructor invoked?<br>

➀➁ Is the destructor invoked automatically or manually?<br>
➀➂ Does <your_language> support defining a destructor?<br>
➀➃ In which order destructors are invoked in case of inheritance?<br>
➀➄ What is garbage collection?<br>
➀➅ How does <your_language> do garbage collection?<br>

➎  Design Patterns<br>

➀ What is a design pattern?<br>
➁ What is GoF?<br>
➂ Mention categories in which all design patterns are classified.<br>
➃ What do you mean by creational design pattern?<br>
➄ Define all creational design patterns.<br>
➅ What do you mean by structural design pattern?<br>

➆ Define all structural design patterns.<br>
➇ What do you mean by behavioral design pattern?<br>
➈ Define all behavioral design patterns.<br>
➉ What do you mean by Singleton?<br>
➀➀ Why is singleton necessary?<br>
➀➁ Doesn't Singleton break the purpose of OOPs?<br>
➀➂ What is a Facade?<br>

➀➃ What is a Factory?<br>
➀➄ What is a Builder?<br>
➀➅ What is a composite?<br>
➀➆ How is composition different from inheritance?<br>
➀➇ What is an adapter? Give some examples.<br>
➀➈ What is a decorator? Give some examples.<br>
20. What is a Proxy?<br>
➁➀ Explain different types of proxies.<br>

➁➁ What is a chain of responsibility?<br>
➁➂ What is a bridge?<br>
➁➃ Difference between a bridge and an adapter?<br>
➁➄ What is the service locator design pattern?<br>
➁➅ What is dependency injection?<br>
➁➆ Difference between Service Locator and Dependency Injection<br>
➁➇ What is MVC?<br>

➁➈ What is a DAO?<br>
30. What is a DTO?<br>
➂➀ Define the strategy to describe a design pattern.<br>

🚥 Disclaimer<br>

⬘  The questions covered here are mostly conceptual. Do practice to have a better hold.<br>

⬗  I don't claim only these types of questions are asked during interviews.<br>

⬙  Many questions from this series have been shared by me earlier on Twitter.<br>

Hey 👋<br>

I am a Tech Writer, Educator, and Mentor from India 🇮🇳, here sharing<br>

✅ Tutorials<br>
✅ Tricks<br>
✅ Career Tips<br>
✅ Cheat Sheets<br>
✅ Interview Questions<br>
✅ Roadmaps<br>
             on<br>
➠ Web Development<br>
➠ Data Structures and Algorithms<br>
➠ Databases<br>

Thanks for reading. 🙏<br>

Swapna Kumar Panda ( https://twitter.com/swapnakpanda) <br>


--------------
** End of content provided by Swapna Kumar Panda ( https://twitter.com/swapnakpanda) . **
--------------
--------------  
