Filter interviews by
React is a JavaScript library for building user interfaces.
React allows developers to create reusable UI components.
It uses a virtual DOM for efficient rendering.
React uses JSX, a syntax extension that allows mixing HTML with JavaScript.
State and props are used for managing data and passing data between components.
React virtual DOM is a lightweight copy of the actual DOM that React uses to improve performance by minimizing actual DOM updates.
Virtual DOM is a representation of the actual DOM in memory.
React compares the virtual DOM with the actual DOM to determine the minimal changes needed to update the UI.
Changes are batched and applied efficiently to the actual DOM for better performance.
Example: When a user interacts with a R...
I applied via Naukri.com and was interviewed in Dec 2020. There were 3 interview rounds.
Hooks are functions that let you use state and other React features without writing a class.
Hooks were introduced in React 16.8 to manage state and lifecycle in functional components.
Common hooks include useState, useEffect, and useContext.
useState allows you to add state to functional components: const [count, setCount] = useState(0);
useEffect lets you perform side effects in function components: useEffect(() => { ...
Virtual DOM is a lightweight copy of the real DOM, used to improve performance by minimizing updates.
Real DOM is the actual HTML document, while Virtual DOM is a JavaScript object.
Virtual DOM updates are faster as it only updates the changed elements.
Real DOM updates are slower as it updates the entire tree.
React and Vue.js use Virtual DOM for efficient rendering.
Virtual DOM is not visible to the user, while Real DOM i...
Top trending discussions
I applied via Recruitment Consultant and was interviewed before Oct 2020. There was 1 interview round.
I applied via Campus Placement and was interviewed before Nov 2021. There were 2 interview rounds.
Best wishes to you know that you have to come to the day da
Hi sir I have sent the best for first year and all the best for your reference
I applied via Company Website and was interviewed in May 2021. There were 3 interview rounds.
Design Patterns are reusable solutions to commonly occurring problems in software design.
Design Patterns provide a common vocabulary for developers to communicate about solutions to problems.
They help in making code more flexible, reusable, and maintainable.
Examples of Design Patterns include Singleton, Factory, Observer, and Decorator.
I appeared for an interview before Sep 2020.
Round duration - 30 Minutes
Round difficulty - Easy
The interviewer was quite friendly. There were two questions one from arrays and other one from strings.
Implement a program that performs basic string compression. When a character is consecutively repeated more than once, replace the consecutive duplicates with the coun...
Implement a program to compress a string by replacing consecutive duplicates with the count of repetitions.
Iterate through the string and keep track of consecutive characters and their counts.
Replace consecutive duplicates with the count of repetitions.
Ensure the count of repetitions is ≤ 9.
Return the compressed string.
Given an array ARR
consisting of N
integers, your goal is to determine the maximum possible sum of a non-empty contiguous subarray within this array.
Find the maximum sum of a contiguous subarray in an array of integers.
Use Kadane's algorithm to find the maximum subarray sum in linear time.
Initialize two variables: maxEndingHere and maxSoFar to keep track of the current subarray sum and the maximum subarray sum seen so far.
Iterate through the array and update the variables accordingly.
Return the maxSoFar as the result.
Tip 1 : Practice at-least 200-250 questions from different topics.
Tip 2 : Prepare aptitude well.
Tip 1 : Resume should be always one pager.
Tip 2 : Mention all your projects and if you have a good score mention it on top.
based on 1 interview experience
based on 5 reviews
Rating in categories
Software Developer
5
salaries
| ₹3 L/yr - ₹4 L/yr |
Developer
3
salaries
| ₹3.5 L/yr - ₹3.6 L/yr |
TCS
Accenture
Wipro
Cognizant