Filter interviews by
It was easy level coding problem
I applied via Naukri.com and was interviewed in Aug 2021. There were 3 interview rounds.
Interfaces define a contract for behavior, while abstract classes provide partial implementation.
Interfaces only define method signatures, while abstract classes can have both abstract and concrete methods.
A class can implement multiple interfaces, but can only inherit from one abstract class.
Interfaces are used for loose coupling and flexibility in design.
Abstract classes are used for code reuse and to enforce a commo
SOLID principles are a set of five design principles for writing maintainable and scalable code.
Single Responsibility Principle (SRP) - a class should have only one reason to change
Open-Closed Principle (OCP) - a class should be open for extension but closed for modification
Liskov Substitution Principle (LSP) - subtypes should be substitutable for their base types
Interface Segregation Principle (ISP) - clients should n...
Extension methods are static methods that allow adding new functionality to existing types without modifying the original type.
Extension methods are defined in a static class.
They must be declared with the 'this' keyword before the first parameter.
They can be called as if they were instance methods of the extended type.
Extension methods can be used to add functionality to built-in types or custom types.
Example: adding ...
No, C# does not support multiple inheritance.
C# only supports single inheritance, where a class can inherit from only one base class.
However, C# does support multiple interface inheritance, where a class can implement multiple interfaces.
This is achieved using the 'interface' keyword instead of 'class'.
Routing in MVC is done through the use of routes, which map URLs to controller actions.
Routes are defined in the RouteConfig.cs file in the App_Start folder
Routes consist of a URL pattern and a corresponding controller action
Routes can also include optional parameters and constraints
Routing is done through the use of the ASP.NET routing engine
Routing can be customized by creating custom route handlers
Filters in MVC are used to intercept and modify HTTP requests and responses.
Filters can be used to implement authentication and authorization.
They can also be used for caching and logging.
Examples of filters include AuthorizationFilter, ActionFilter, and ExceptionFilter.
Virtual keyword is used to declare a method in a base class that can be overridden in a derived class. Override keyword is used in the derived class to override the implementation of the virtual method.
Virtual keyword is used in the base class to declare a method that can be overridden in the derived class
Override keyword is used in the derived class to override the implementation of the virtual method
Virtual methods p...
Indexes in SQL are used to improve the performance of queries by allowing faster data retrieval.
Indexes are created on one or more columns of a table.
They work like a book index, allowing the database to quickly find the data.
Indexes can be clustered or non-clustered.
Clustered indexes determine the physical order of data in a table.
Non-clustered indexes create a separate structure to store the index data.
Indexes should...
Stored procedures are used to perform a set of actions, while functions return a single value.
Stored procedures are precompiled and stored in the database, while functions are compiled at runtime.
Functions can be used in SQL statements, while stored procedures cannot be used in SQL statements.
Functions can be called from within stored procedures, but stored procedures cannot be called from within functions.
Dependency injection is a design pattern used to remove hard-coded dependencies and make code more modular and testable.
Dependency injection involves injecting dependencies into a class rather than having the class create them itself.
This allows for easier testing and swapping out of dependencies.
There are three types of dependency injection: constructor injection, setter injection, and interface injection.
Examples of ...
Singleton design pattern restricts the instantiation of a class to a single instance and provides a global point of access to it.
Used when only one instance of a class is required throughout the system
Provides a global point of access to the instance
Implemented using a private constructor, static method, and static variable
Example: Logger class in Java
Dependency injection is a design pattern that allows objects to receive dependencies from external sources rather than creating them internally.
Dependency injection helps to decouple components and make them more reusable and testable.
There are three types of dependency injection: constructor injection, setter injection, and interface injection.
Example: Instead of creating a database connection object inside a class, w...
Singleton design pattern restricts the instantiation of a class to a single instance and provides a global point of access to it.
Used when only one instance of a class is required throughout the system
Provides a global point of access to the instance
Implemented using a private constructor, static method, and static variable
Example: Logger class, Database connection class
NCR Corporation interview questions for designations
I applied via Recruitment Consulltant and was interviewed in Aug 2021. There were 3 interview rounds.
Program to find the second largest element from a 4-digit number
Convert the number to a string and split it into an array of characters
Sort the array in descending order
Return the second element of the array
Top trending discussions
I applied via Naukri.com and was interviewed in May 2021. There were 4 interview rounds.
I applied via Naukri.com and was interviewed before Feb 2022. There were 2 interview rounds.
Using stream API to find the sum of even numbers from an ArrayList
Convert the ArrayList to a stream using the stream() method
Filter the stream to keep only the even numbers using the filter() method
Use the mapToInt() method to convert the stream of even numbers to an IntStream
Finally, use the sum() method to calculate the sum of the even numbers
Prepared Statements interface is used to prevent SQL injection.
Prepared Statements interface is used to parameterize the SQL queries.
It allows the separation of SQL code and user input.
It helps to prevent SQL injection attacks by automatically escaping special characters.
Examples: PDO, mysqli, Java PreparedStatement, etc.
String is immutable to ensure data integrity and thread safety.
Immutable strings prevent accidental modification of data.
Immutable strings allow for efficient memory allocation and sharing.
Immutable strings ensure thread safety by avoiding race conditions.
Examples of immutable string methods include substring, toLowerCase, and toUpperCase.
Java OOPs concepts and examples
Encapsulation - hiding data and methods within a class (e.g. private variables)
Inheritance - creating new classes from existing ones (e.g. subclass extends superclass)
Polymorphism - using a single method to perform different actions (e.g. method overloading/overriding)
Abstraction - focusing on essential features and hiding implementation details (e.g. abstract classes/interfaces)
I applied via Naukri.com and was interviewed before Feb 2022. There were 4 interview rounds.
You will be asked to develop an application and based on that the next round will be proceeded. For me I have been asked to perform some crud operations with api using asp.net core and asp.net mvc application
API is a set of protocols and tools for building software applications. It allows different applications to communicate with each other.
API stands for Application Programming Interface
It defines how different software components should interact with each other
APIs can be used to access data or functionality from other applications or services
Examples of APIs include Google Maps API, Twitter API, and Facebook API
Interface defines only method signatures while abstract class can have method implementations.
An interface can be implemented by multiple classes while an abstract class can only be extended by one class.
An abstract class can have constructors while an interface cannot.
An abstract class can have instance variables while an interface cannot.
An abstract class can provide default implementations for some methods while an ...
Routing in ASP.NET Core API is performed using the built-in middleware called Endpoint Routing.
Endpoint Routing is responsible for mapping incoming requests to the appropriate action methods in the controller.
It uses the HTTP verb, URL pattern, and route data to determine the correct action method.
Routes can be defined using attributes on the controller and action methods or in the Startup.cs file.
Middleware like authe...
SOLID principles are a set of design principles for writing maintainable and scalable software.
S - Single Responsibility Principle
O - Open/Closed Principle
L - Liskov Substitution Principle
I - Interface Segregation Principle
D - Dependency Inversion Principle
I applied via Naukri.com and was interviewed in Mar 2021. There were 5 interview rounds.
Some of the top questions asked at the NCR Corporation Software Engineer II interview -
based on 18 reviews
Rating in categories
Software Engineer
384
salaries
| ₹6.5 L/yr - ₹20 L/yr |
Senior Software Engineer
279
salaries
| ₹9 L/yr - ₹36 L/yr |
Software Engineer III
184
salaries
| ₹13.5 L/yr - ₹34 L/yr |
Software Engineer2
182
salaries
| ₹7 L/yr - ₹21 L/yr |
Software Developer
161
salaries
| ₹5 L/yr - ₹19 L/yr |
DXC Technology
Sutherland Global Services
Optum Global Solutions
FIS