i
Nagarro
Filter interviews by
posted on 3 Jan 2025
I applied via Referral and was interviewed in Dec 2024. There were 2 interview rounds.
Deep copy creates a new copy of an object with its own unique memory space, while shallow copy creates a new object that references the same memory locations as the original object.
Deep copy duplicates all nested objects, while shallow copy only duplicates the references to nested objects.
Deep copy ensures that changes to the copied object do not affect the original object, while shallow copy may lead to unintended sid...
Use a loop to swap characters of two strings without using strcpy function.
Create two arrays of characters to store the strings
Use a loop to iterate through each character of the strings and swap them
Ensure to handle cases where strings have different lengths
Fundamentals of Data Structures and Algorithms, including SQL.
posted on 10 Dec 2024
I was interviewed in Nov 2024.
OOP is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
OOP focuses on creating objects that interact with each other to solve problems.
Key concepts include encapsulation, inheritance, and polymorphism.
Encapsulation involves bundling data and methods that operate on the data into a single unit.
Inheritance allows classes to inherit at...
Multithreading is the ability of a CPU to execute multiple threads concurrently, allowing for improved performance and responsiveness.
Multithreading allows multiple tasks to be executed simultaneously on a single CPU core.
Each thread has its own program counter, stack, and set of registers.
Example: A web browser using multithreading to load a webpage while simultaneously downloading images in the background.
Rotate a 2D matrix by 180 degrees in place without using extra space.
Iterate through the matrix and swap elements symmetrically across the center row.
Use two pointers, one starting from the first row and the other from the last row, to swap elements.
Repeat the swapping process for each row until the entire matrix is rotated.
Example: Input matrix = [[1,2,3],[4,5,6],[7,8,9]], Output matrix = [[9,8,7],[6,5,4],[3,2,1]]
posted on 12 Nov 2024
It was an aptitute round and 2 coding questions was there
I applied via LinkedIn and was interviewed in Nov 2024. There were 2 interview rounds.
Basic C# coding Questions
Dependency Injection is a design pattern in which components are given their dependencies rather than creating them internally.
Allows for easier testing by providing mock dependencies
Promotes loose coupling between components
Improves code reusability and maintainability
Examples: Constructor injection, Setter injection, Interface injection
In Java, exceptions can be handled using try-catch blocks to catch and handle specific exceptions.
Use try-catch blocks to catch exceptions and handle them gracefully
Use multiple catch blocks to handle different types of exceptions
Use finally block to execute code regardless of whether an exception is thrown or not
Throw custom exceptions using throw keyword
map transforms each element in a stream, while flatMap transforms each element into multiple elements
map applies a function to each element in a stream and returns a new stream of the results
flatMap applies a function that returns a stream for each element in the original stream, then flattens the streams into a single stream
Example: map - stream.map(x -> x * x), flatMap - stream.flatMap(str -> Arrays.stream(str.split(
ConcurrentModificationException occurs when a collection is modified while iterating over it.
Use Iterator to iterate over the collection instead of foreach loop.
If modification is necessary, use Iterator's remove() method instead of collection's remove() method.
Consider using synchronized collections or ConcurrentHashMap to avoid ConcurrentModificationException.
posted on 20 Oct 2024
Fetch cart items and display them
Create a function to fetch cart items from database
Display the items in the cart on the user interface
Handle empty cart scenarios
Consider pagination for large number of items
Fetch characters and their movies
Use API like IMDb or The Movie Database to fetch movie data
Parse the data to extract characters and their associated movies
Store the characters and movies in an array of strings
posted on 13 Nov 2024
I applied via Job Portal
posted on 24 Dec 2024
I was interviewed in Jun 2024.
To get the 3rd highest salary, you can use a SQL query with the 'LIMIT' and 'OFFSET' keywords.
Use a SQL query to select distinct salaries in descending order.
Use the 'LIMIT' keyword to limit the results to 3.
Use the 'OFFSET' keyword to skip the first 2 highest salaries.
Example: SELECT DISTINCT salary FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 2;
The inner join of two tables with duplicate values results in a combined set of common values.
Inner join combines rows from both tables where the key columns match
In this case, the result would be [1,1,1,1,1,1] as all values are common in both tables
Developed a web application for tracking and managing project tasks
Used React.js for front-end development
Implemented RESTful APIs using Node.js and Express
Utilized MongoDB for database management
Incorporated authentication and authorization features for user security
SQL is a relational database management system, while NoSQL is a non-relational database management system.
SQL databases are table-based, NoSQL databases are document, key-value, graph, or wide-column stores
SQL databases use structured query language for defining and manipulating data, NoSQL databases use different query languages
SQL databases are vertically scalable, NoSQL databases are horizontally scalable
SQL databa...
NoSQL is better for handling unstructured data, providing scalability and flexibility.
NoSQL databases are better suited for handling unstructured data like social media posts, user-generated content, and IoT data.
NoSQL databases provide better scalability as they can easily distribute data across multiple servers, allowing for horizontal scaling.
NoSQL databases offer more flexibility in terms of data model, allowing fo...
Designed and implemented a real-time data pipeline for processing and analyzing user behavior data.
Used Apache Kafka for real-time data streaming
Utilized Apache Spark for data processing and analysis
Implemented data transformations and aggregations using Scala
Stored processed data in a data warehouse like Amazon Redshift
Built monitoring and alerting systems to ensure data pipeline reliability
I would address the conflict directly and professionally, seeking to understand the root cause and find a mutually beneficial solution.
Schedule a private meeting with the manager to discuss the conflict
Listen actively to the manager's perspective and express your own calmly
Seek to find common ground and propose potential solutions
If necessary, involve HR or a mediator to help resolve the conflict
I love to spend my free time hiking, reading, and trying out new recipes in the kitchen.
Hiking in the mountains or local trails
Reading fiction and non-fiction books
Experimenting with new recipes and cooking techniques
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
933
salaries
| ₹3 L/yr - ₹12.2 L/yr |
Deloitte
Cognizant
TCS
Accenture