Filter interviews by
I applied via LinkedIn and was interviewed in Nov 2023. There were 2 interview rounds.
useMemo is used to memoize a value, while useCallback is used to memoize a function.
useMemo is used to memoize a computed value and recompute it only when its dependencies change.
useCallback is used to memoize a function instance and re-render it only when its dependencies change.
Example: useMemo(() => computeExpensiveValue(a, b), [a, b]) vs useCallback(() => handleButtonClick(a, b), [a, b])
A React application for tic-tac-toe game.
Create a Board component to display the game grid
Implement logic to handle player turns and winning conditions
Use state management to update the game state
Top trending discussions
I was interviewed before Dec 2020.
Round duration - 360 minutes
Round difficulty - Medium
Basically TCS conduct its flagship event named as CODEVITA . And it offers Internship to prefinal (3rd )year students .
Given an array of integers arr
, where arr[i]
represents the number of pages in the i-th
book, and an integer m
representing the number of students, allocate all the books ...
Allocate books to students in a way that minimizes the maximum number of pages assigned to a student.
Iterate through possible allocations and calculate the maximum pages assigned to a student.
Find the minimum of these maximums to get the optimal allocation.
Return the minimum pages allocated in each test case, or -1 if not possible.
Tip 1 : Good understanding of Data Structure and Algorithms
Tip 2 : Be clear in your Core Subjects.
Tip 3 : Do at least 1 good Project .
Tip 4 : Be humble and speak truth .
Tip 1 : Simple and Crisp .
Tip 2 : Do host your project and mention the link in the resume .
Tip 3 : Single Page
posted on 18 Feb 2024
I applied via LinkedIn and was interviewed before Feb 2023. There were 3 interview rounds.
It was easy not that hard
Coding question were on medium level
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
CSS Box-model defines how elements are rendered in a webpage, including padding, border, and margin.
Box-model consists of content, padding, border, and margin
Content area is where text or images are displayed
Padding is the space between content and border
Border is the line around the content and padding
Margin is the space outside the border
Flexbox is for one-dimensional layouts, grid is for two-dimensional layouts.
Flexbox is best for arranging items in a single row or column.
Grid is best for creating complex layouts with rows and columns.
Flexbox is more suitable for smaller scale layouts, while grid is better for larger scale layouts.
Flexbox is more flexible in terms of item order and sizing, while grid provides more control over the overall layout.
Both
I applied via Naukri.com and was interviewed before Mar 2023. There was 1 interview round.
I applied via Company Website and was interviewed before Jan 2022. There were 3 interview rounds.
Event Loop is a mechanism in JavaScript that manages the execution of code and handles asynchronous operations.
Event Loop continuously checks the call stack and the message queue.
If the call stack is empty, it takes the first message from the queue and pushes it onto the call stack.
If the message is a callback function, it is executed and removed from the call stack.
If the message is not a callback function, it is pass...
Use CSS to make a set of 6 boxes responsive
Use percentage or viewport units for width and height
Use media queries to adjust styles for different screen sizes
Consider using flexbox or grid for layout
Avoid using fixed pixel values
Test on different devices and browsers
Use CSS frameworks like Bootstrap or Foundation for easier implementation
Reverse a given string
Use built-in methods like split(), reverse(), and join() to reverse the string
Alternatively, loop through the string from end to start and build a new reversed string
State in functional components can be managed using the useState hook in React.
Use the useState hook to declare state variables in functional components.
useState returns an array with the current state value and a function to update that value.
Example: const [count, setCount] = useState(0);
State variables should be immutable, so always use the setter function to update them.
Event loop in JavaScript is responsible for handling asynchronous operations by executing callback functions in a non-blocking way.
Event loop is a mechanism that allows JavaScript to perform non-blocking operations.
It continuously checks the call stack and the callback queue to see if there are any functions that need to be executed.
If the call stack is empty, it takes the first function from the callback queue and pus...
Hosting in JavaScript refers to the process of declaring a variable or function before it is used in the code.
Hosting allows you to use variables and functions before they are declared in the code.
Variables are hoisted to the top of their scope, while functions are fully hoisted.
Example: console.log(myVar); var myVar = 10; This will not throw an error because 'myVar' is hoisted to the top of the scope.
I applied via Walk-in and was interviewed in Jul 2024. There was 1 interview round.
Comments in JavaScript are used to explain the code and are not executed by the browser.
Use // for single line comments
Use /* */ for multi-line comments
Comments help other developers understand your code
Async-await is a feature in JavaScript that allows for asynchronous programming using promises.
Use the 'async' keyword before a function to make it asynchronous
Use the 'await' keyword inside an async function to wait for a promise to resolve
Async-await simplifies asynchronous code and makes it easier to read and maintain
based on 1 interview
Interview experience
based on 2 reviews
Rating in categories
Junior Software Engineer
581
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
527
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Software Engineer
211
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
164
salaries
| ₹0 L/yr - ₹0 L/yr |
Softwaretest Engineer
162
salaries
| ₹0 L/yr - ₹0 L/yr |
Infosys
Wipro
TCS
HCLTech