75+ Interview Questions - Swapna Kumar Panda
Content Courtesy : twitter.com/swapnakpanda/status/15685638563..
Content Provider : Swapna Kumar Panda ( twitter.com/swapnakpanda)
75+ Interview Questions
❍ C++
❍ Java
❍ C#
❍ Python
❍ JavaScript
on OOPs & Design Patterns.
⇩
Level: Beginner to Medium Topic:
➊ OOPs Basics
➋ Class, Object, Interface
➌ Encapsulation, Abstraction, Polymorphism, Inheritance
➍ Constructor and Destructor
➎ Design Patterns
➊ OOPs Basics
➀ What is a programming paradigm?
➁ Mention various types of programming paradigms.
➂ What is structured programming?
➃ What are OOPs?
➄ Why are OOPs needed?
Or,
➅ Advantages of OOPs
➆ Where should OOPs not be used?
➇ What are the major features of OOPs?
➈ Mention a few popular languages that support OOPs.
➉ Does support OOPs? How?
➋ Class, Object, Interface
➀ Define a class.
➁ What is an Object?
➂ Does class take memory?
➃ What does a class provide/define?
➄ What is a property in a class?
➅ What is a method in a class?
➆ What is an abstract method?
➇ What is an abstract class?
➈ What is an Interface?
➉ What does "static" mean wrt Properties and Methods?
➌ Encapsulation, Abstraction, Polymorphism, Inheritance
➀ What is encapsulation?
➁ What is Data Hiding?
➂ What is Data Binding?
➃ How does do encapsulation?
➄ What is abstraction?
➅ How is abstraction accomplished?
➆ What is Inheritance?
➇ Give an example of inheritance.
➈ What are the advantages of inheritance?
➉ Are there any limitations to inheritance?
➀➀ What are the different types of inheritance?
➀➁ Which type of inheritance does support?
➀➂ What is a superclass/subclass?
➀➃ What is polymorphism?
➀➄ What are the different types of polymorphism? Explain.
➀➅ What is Method Overloading?
➀➆ What is Method Overriding?
➀➇ Tell the difference between Overloading and Overriding.
➀➈ How does support overloading and overriding?
➍ Constructor and Destructor
➀ What is a constructor?
➁ What are the different types of constructors?
➂ What do you mean by a default constructor?
➃ What is a parameterised constructor?
➄ What is a copy constructor?
➅ When is a constructor invoked?
➆ Is a parent class constructor invoked when a child class constructor is invoked? In what order?
➇ Is the creation of an object mandatory? If not, when?
➈ Can an interface have a constructor?
➉ What is a destructor?
➀➀ When is a destructor invoked?
➀➁ Is the destructor invoked automatically or manually?
➀➂ Does support defining a destructor?
➀➃ In which order destructors are invoked in case of inheritance?
➀➄ What is garbage collection?
➀➅ How does do garbage collection?
➎ Design Patterns
➀ What is a design pattern?
➁ What is GoF?
➂ Mention categories in which all design patterns are classified.
➃ What do you mean by creational design pattern?
➄ Define all creational design patterns.
➅ What do you mean by structural design pattern?
➆ Define all structural design patterns.
➇ What do you mean by behavioral design pattern?
➈ Define all behavioral design patterns.
➉ What do you mean by Singleton?
➀➀ Why is singleton necessary?
➀➁ Doesn't Singleton break the purpose of OOPs?
➀➂ What is a Facade?
➀➃ What is a Factory?
➀➄ What is a Builder?
➀➅ What is a composite?
➀➆ How is composition different from inheritance?
➀➇ What is an adapter? Give some examples.
➀➈ What is a decorator? Give some examples.
- What is a Proxy?
➁➀ Explain different types of proxies.
➁➁ What is a chain of responsibility?
➁➂ What is a bridge?
➁➃ Difference between a bridge and an adapter?
➁➄ What is the service locator design pattern?
➁➅ What is dependency injection?
➁➆ Difference between Service Locator and Dependency Injection
➁➇ What is MVC?
➁➈ What is a DAO?
- What is a DTO?
➂➀ Define the strategy to describe a design pattern.
🚥 Disclaimer
⬘ The questions covered here are mostly conceptual. Do practice to have a better hold.
⬗ I don't claim only these types of questions are asked during interviews.
⬙ Many questions from this series have been shared by me earlier on Twitter.
Hey 👋
I am a Tech Writer, Educator, and Mentor from India 🇮🇳, here sharing
✅ Tutorials
✅ Tricks
✅ Career Tips
✅ Cheat Sheets
✅ Interview Questions
✅ Roadmaps
on
➠ Web Development
➠ Data Structures and Algorithms
➠ Databases
Thanks for reading. 🙏
Swapna Kumar Panda ( twitter.com/swapnakpanda)