Software Engi
Software Engi Interview Questions and Answers
Asked in Humana

Q. Describe a design pattern where a class has only 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.

Asked in Capgemini

Q. Explain useState,useEffect and there difference
useState manages state in functional components; useEffect handles side effects like data fetching.
useState: A Hook that allows you to add state to functional components. Example: const [count, setCount] = useState(0);
useEffect: A Hook that lets you perform side effects in function components. Example: useEffect(() => { fetchData(); }, []);
useState returns an array with the current state and a function to update it.
useEffect can take a dependency array to control when the eff...read more
Software Engi Interview Questions and Answers for Freshers
Asked in Profound Edutech

Q. What are the principles of OOPS?
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
Asked in Signitives IT Solutions

Q. 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

Asked in TCS

Q. What is React.js?
React.js is a popular JavaScript library for building user interfaces, particularly single-page applications, using a component-based architecture.
Component-Based: React allows developers to create reusable UI components, enhancing code maintainability. Example: A button component can be reused across different parts of an application.
Virtual DOM: React uses a virtual representation of the DOM to optimize rendering, improving performance. Changes are first made to the virtual...read more
Asked in Humana

Q. Describe OOP 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








Reviews
Interviews
Salaries
Users

