Software Engi
Software Engi Interview Questions and Answers
Q1. A design pattern where a class is only created one instance at runtime.
Singleton pattern ensures a class has only one instance created at runtime.
Ensures there is only one instance of the class by providing a global point of access to it.
Uses a private constructor to restrict instantiation of the class from other classes.
Commonly used in scenarios where only one instance of a class is needed, such as database connections or configuration settings.
Q2. What is OOPS principle
OOPS principle stands for Object-Oriented Programming principles, which are a set of programming guidelines to help organize code and improve software design.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Allowing a class to inherit properties and behavior from another class.
Polymorphism: The ability for objects of different classes to respond to the same message in different ways.
Abstraction: Hiding the complex imple...read more
Software Engi Interview Questions and Answers for Freshers
Q3. What is a singleton?
A singleton is a design pattern that restricts the instantiation of a class to one object.
Singleton pattern ensures that a class has only one instance and provides a global point of access to it.
Commonly used in scenarios where only a single instance of a class is needed, such as database connections or configuration settings.
Implementation can involve a private constructor, a static method to access the instance, and a static variable to hold the instance.
Example: Singleton ...read more
Q4. Describe OOP's in C#
OOP in C# is a programming paradigm that uses classes and objects to model real-world entities.
OOP stands for Object-Oriented Programming
In C#, classes are used to define objects which have properties and methods
Encapsulation, inheritance, and polymorphism are key principles of OOP in C#
Example: class Car { string make; int year; void Start() { } }
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month