i
Nagarro
Filter interviews by
I applied via LinkedIn and was interviewed in Sep 2023. There was 1 interview round.
Two coding questions and 58 MCQ on springboot and Java 8 features code questions
I applied via Campus Placement and was interviewed in Sep 2023. There was 1 interview round.
30 aptitude of general quant etc.. 2 coding..
posted on 26 Oct 2023
I applied via Approached by Company and was interviewed before Oct 2022. There were 3 interview rounds.
Data Structures and Algorithms HackerRank
Design a shopping cart and find nearest palindrome number to a given number.
Design a class for the shopping cart with methods like add item, remove item, calculate total price, etc.
Implement a function to find the nearest palindrome number to a given number.
You can iterate from the given number and check if each number is a palindrome until you find the nearest one.
Inheritance is a concept in object-oriented programming where a class can inherit attributes and methods from another class.
Allows for code reusability by creating a new class based on an existing class
Derived class (subclass) inherits properties and behaviors from a base class (superclass)
Can have multiple levels of inheritance, creating a hierarchy of classes
Example: Animal class can be a base class with Dog and Cat
Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
It enables a single interface to be used for different data types or classes.
Examples include method overloading and method overriding in object-oriented programming.
Code to reverse a string using array of characters
Iterate through half of the string and swap characters from start and end
Use a temporary variable to store the character being swapped
Handle edge cases like empty string or single character string
I applied via Company Website and was interviewed in Apr 2024. There was 1 interview round.
Abstraction is the concept of hiding complex implementation details and showing only the necessary features to the outside world.
Abstraction allows us to focus on what an object does rather than how it does it
Achieved through abstract classes and interfaces in object-oriented programming
Example: A car dashboard abstracts the internal workings of the car and provides only essential information to the driver
Hashtable is synchronized, while hashmap is not. Hashtable does not allow null keys or values, while hashmap does.
Hashtable is synchronized, while hashmap is not
Hashtable does not allow null keys or values, while hashmap does
Hashtable is a legacy class, while hashmap is a newer class
The get() method in HashMap retrieves the value associated with a specified key.
get() method takes a key as input and returns the value associated with that key in the HashMap.
Internally, get() uses the hash code of the key to find the corresponding bucket in the HashMap.
If multiple keys have the same hash code, get() uses the equals() method to find the correct key-value pair.
Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity.
Normalization helps in minimizing data redundancy by dividing the database into multiple tables and defining relationships between them.
It ensures data integrity by avoiding update anomalies and inconsistencies.
There are different normal forms such as 1NF, 2NF, 3NF, BCNF, and 4NF, each with specific rules to fo...
Constraints are limitations or restrictions placed on a system or process.
Constraints define the boundaries within which a system must operate.
They can include limitations on resources, time, or functionality.
Examples of constraints in software engineering include memory limitations, processing speed, and input/output requirements.
Query to retrieve the 3rd highest salary from the employee table
Use the ORDER BY clause to sort salaries in descending order
Use the LIMIT clause to retrieve the 3rd highest salary
Traverse the linked list to find the 2nd last node and return its value.
Traverse the linked list while keeping track of the current and previous nodes.
Once at the end of the list, return the value of the previous node.
Use two variables to keep track of the smallest and second smallest numbers in the array.
Iterate through the array and update the variables accordingly.
Initialize the variables with the maximum possible integer value to start with.
Example: array = [5, 2, 8, 1, 3], smallest = 1, secondSmallest = 2.
posted on 2 May 2023
Procedure and package are two types of database objects used in Oracle database.
A procedure is a subprogram that performs a specific action and can be called by other programs.
A package is a collection of related procedures, functions, and variables that can be used by multiple programs.
Procedures and packages are stored in the database and can be called from any program that has access to the database.
Procedures and p...
View is a virtual table while Materialized view is a physical table.
View is a logical representation of data while Materialized view is a physical copy of data.
View is updated dynamically while Materialized view needs to be refreshed manually.
Materialized view is faster for read-heavy operations while View is better for write-heavy operations.
Materialized view can be indexed while View cannot be indexed.
posted on 10 Dec 2022
I applied via campus placement at Jaipur Engineering College & Research Centre, Jaipur and was interviewed in Dec 2022. There were 3 interview rounds.
OOPS AND DSA QUESTION
posted on 9 Dec 2022
I applied via Recruitment Consulltant and was interviewed in Jun 2022. There were 2 interview rounds.
Associate Staff Engineer
2.8k
salaries
| ₹10 L/yr - ₹35.2 L/yr |
Staff Engineer
2.8k
salaries
| ₹14.5 L/yr - ₹43.2 L/yr |
Senior Engineer
2.3k
salaries
| ₹6.5 L/yr - ₹25 L/yr |
Senior Software Engineer
1.1k
salaries
| ₹7.5 L/yr - ₹31 L/yr |
Software Engineer
935
salaries
| ₹3 L/yr - ₹12.3 L/yr |
Deloitte
Cognizant
TCS
Accenture