i
Nexgile Technologies
Filter interviews by
Coding question on arrays and strings
Top trending discussions
I applied via Naukri.com and was interviewed in Dec 2024. There were 2 interview rounds.
Enums in TypeScript are a way to define a set of named constants. Shallow copy only copies the reference, while deep copy creates a new object. Virtual DOM is a lightweight copy of the actual DOM. Closures are functions that have access to their own scope and the scope of their containing function.
Enums in TypeScript are used to define a set of named constants. For example, enum Color { Red, Green, Blue }
Shallow copy c...
I applied via Naukri.com and was interviewed in Oct 2023. There were 2 interview rounds.
Create a CRUD app to render, edit, delete, and sort a list of objects in a table.
Create a React component to render a table with data from the array of objects.
Implement functions for editing and deleting objects from the list.
Add functionality to sort the list based on object properties.
Use state and props to manage data and re-render the table when changes occur.
rem, em, px are units of measurement in CSS. useEffect is a React hook for side effects. Hooks are used for stateful logic in functional components.
rem: relative to the font-size of the root element (html). Example: 1rem = 16px
em: relative to the font-size of the element. Example: 2em = 32px if the font-size of the element is 16px
px: fixed-size units. Example: font-size: 14px
useEffect: React hook used for side effects ...
I applied via campus placement at G L Bajaj Institute of Technology & Management, Greater Noida and was interviewed in Oct 2024. There were 3 interview rounds.
They asked some general Quantitative and logical questions and code snippets.
posted on 29 Nov 2024
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
We can easily pass the test cases
Interface in Java is a reference type, similar to a class, that can contain only constants, method signatures, default methods, static methods, and nested types.
Interfaces are used to define a contract for classes that implement them.
Classes can implement multiple interfaces in Java.
Interfaces cannot have instance fields, constructors, or non-static methods.
Example: interface Shape { void draw(); }
Example: class Circle...
Abstraction is a concept in object-oriented programming where only relevant data is shown to the user while hiding unnecessary details.
Abstraction helps in simplifying complex systems by only showing essential features.
It allows for creating abstract classes and interfaces in Java.
Example: In a car, the driver only needs to know how to drive it without understanding the internal workings of the engine.
Exceptions are unexpected events that disrupt the normal flow of a program. Exception handling is the process of dealing with these events.
Exceptions are objects that represent an abnormal condition or error in a program.
Exception handling allows developers to gracefully handle errors and prevent the program from crashing.
Java provides try-catch blocks for handling exceptions. The try block contains the code that may t...
Arrays are a collection of elements of the same data type, while Strings are a sequence of characters.
Arrays can store multiple values of the same data type, accessed by index.
Strings are immutable sequences of characters, can be manipulated using various methods.
Example: int[] numbers = {1, 2, 3}; String name = "John";
Code Snept question with 3-4 Reasoning question. Google form
Pen paper coding round. String , Array . Linkedlist , graph, questions
To find the nearest prime number, iterate from the given number in both directions until a prime number is found.
Start iterating from the given number in both directions to find the nearest prime number.
Check if a number is prime by dividing it by all numbers less than its square root.
Keep track of the closest prime number found during the iteration.
Find the second maximum number in an array of strings.
Convert the array of strings to an array of integers.
Sort the array in descending order.
Return the second element in the sorted array.
posted on 30 Sep 2024
Life cycle methods are special methods in class components that allow developers to run code at specific points in the component's life cycle.
componentDidMount() is called after the component has been rendered to the DOM.
componentDidUpdate() is called after the component's state or props have been updated.
componentWillUnmount() is called before the component is removed from the DOM.
FlatList is optimized for rendering large lists efficiently by only rendering the items that are currently visible, while ScrollView renders all of its children at once.
FlatList is more performant for long lists as it only renders the items that are currently visible on the screen.
ScrollView renders all of its children at once, which can lead to performance issues with large datasets.
FlatList supports key extraction fo...
posted on 17 Oct 2024
I applied via Walk-in
To implement a queue using a stack, use two stacks and simulate the queue operations.
Use two stacks, one for enqueue operation and one for dequeue operation.
For enqueue operation, simply push elements onto the stack used for enqueueing.
For dequeue operation, if the dequeue stack is empty, pop all elements from enqueue stack and push onto dequeue stack.
Then pop from the dequeue stack to simulate dequeue operation.
A linked list is a data structure consisting of nodes where each node points to the next node in the sequence.
Create a Node class with data and next pointer
Initialize a head pointer to null
Add nodes by updating next pointers
Traverse the list by following next pointers
posted on 5 Aug 2024
It is very impressive work on Josh technology assessment because we learn many new skills.
API stands for Application Programming Interface. It is a set of rules and protocols that allows different software applications to communicate with each other.
APIs define the methods and data formats that applications can use to request and exchange information.
APIs can be used to access services provided by other software applications, such as retrieving data from a database or sending notifications.
Examples of APIs ...
Software development life cycle (SDLC) is a process used by software developers to design, develop, and test software.
1. Planning: Define the project scope, requirements, and objectives.
2. Analysis: Gather and analyze user requirements.
3. Design: Create a detailed design of the software.
4. Implementation: Develop the software based on the design.
5. Testing: Test the software for bugs and issues.
6. Deployment: Release t...
I applied via Campus Placement and was interviewed in Jun 2024. There were 2 interview rounds.
It was ok. I was not able to solve all the questions.
To remove the last element from a linked list, iterate to the second last node and update its next pointer to null.
Iterate through the linked list to find the second last node
Update the next pointer of the second last node to null
Associate Software Engineer
11
salaries
| ₹2 L/yr - ₹3.4 L/yr |
Software Developer
10
salaries
| ₹2 L/yr - ₹4 L/yr |
Associate Software Developer
7
salaries
| ₹2.5 L/yr - ₹3 L/yr |
Software Engineer
6
salaries
| ₹2 L/yr - ₹2.7 L/yr |
Automation Test Engineer
4
salaries
| ₹3 L/yr - ₹3 L/yr |
TCS
Infosys
Wipro
HCLTech