Filter interviews by
I applied via LinkedIn and was interviewed in Jul 2024. There was 1 interview round.
ReactJs is a JavaScript library for building user interfaces.
ReactJs is developed and maintained by Facebook.
It uses a component-based architecture for building reusable UI components.
ReactJs uses a virtual DOM for efficient rendering of components.
It allows developers to create interactive and dynamic web applications.
ReactJs can be used with other libraries and frameworks like Redux for state management.
React JS is a popular JavaScript library for building user interfaces.
Component-based architecture
Virtual DOM for efficient updates
JSX syntax for writing components
One-way data binding
Reusable components
React Native for mobile app development
UseEffect and UseState are React hooks used for managing state and side effects in functional components.
UseEffect is used to perform side effects in functional components, similar to componentDidMount and componentDidUpdate in class components.
UseState is used to manage state in functional components, allowing for re-rendering when the state changes.
Example: const [count, setCount] = useState(0); useEffect(() => { doc
Yes, I use Redux Toolkit for state management in my frontend projects.
I use Redux Toolkit to simplify the process of managing state in my applications.
It provides a set of tools and best practices for managing state in a predictable way.
I find it helpful for handling complex state logic and data flow in my projects.
Redux Toolkit is an official, opinionated, batteries-included toolset for efficient Redux development.
Official toolset for Redux
Opinionated and batteries-included
Helps with common Redux tasks like store setup, reducer logic, and actions
Reducer is a function in Redux that specifies how the application's state changes in response to actions.
Reducer functions take the current state and an action as arguments, and return the new state.
Reducers are pure functions, meaning they do not modify the current state, but return a new state object.
Redux uses reducers to manage the state of the application in a predictable way.
createSlice is a function in Redux Toolkit that simplifies the process of creating Redux slices.
createSlice is a function provided by Redux Toolkit for creating Redux slices with less boilerplate code.
It allows developers to define a slice of the Redux state, including initial state, reducers, and action creators.
createSlice automatically generates action types and action creators based on the defined reducers.
It is co...
Props and state are two important concepts in React for managing and passing data.
Props are read-only data passed from a parent component to a child component.
State is mutable data managed within a component.
Props are used to pass data down the component tree, while state is used for managing data within a component.
Props are passed as attributes in JSX, while state is managed using setState method.
Example: props are u...
Yes, we can send the state from a child component to a parent component in React.
Use callback functions to pass data from child to parent
Parent component can pass a function as a prop to child component
Child component can call this function with the data to update parent's state
React Query is a library for managing server state in React applications.
React Query is used for fetching, caching, synchronizing and updating server state in React applications.
It provides hooks like useQuery and useMutation to interact with server data.
React Query helps in handling loading, error and stale data states efficiently.
Example: const { data, isLoading, isError } = useQuery('todos', fetchTodos)
React Query is used for managing server state and caching data in React applications.
Provides a powerful and flexible way to fetch, cache, and update data from APIs
Automatically handles caching, background refetching, and stale data management
Improves performance by reducing unnecessary network requests
Simplifies data fetching and updating logic in React components
useQuery is for fetching data from the server, useMutation is for making changes to the server data.
useQuery is used for fetching data from the server, while useMutation is used for making changes to the server data.
useQuery is read-only and does not modify data on the server, while useMutation is used for updating, creating, or deleting data on the server.
useQuery is typically used for GET requests, while useMutation ...
Yes, custom hooks are reusable functions in React that allow you to extract component logic into separate functions.
Custom hooks are created by prefixing the function name with 'use' and can be used to share logic between components.
They can be used to manage state, side effects, and other features in functional components.
For example, a custom hook can be created to fetch data from an API and handle loading and error ...
Top trending discussions
I appeared for an interview in Aug 2017.
Merge Sort is a divide and conquer algorithm that sorts an array by dividing it into two halves, sorting them separately, and then merging the sorted halves.
Divide the array into two halves
Recursively sort the two halves
Merge the sorted halves
Find pairs of integers in a BST whose sum is equal to a given number.
Traverse the BST and store the values in a hash set.
For each node, check if (X - node.value) exists in the hash set.
If yes, add the pair (node.value, X - node.value) to the result.
Continue traversal until all nodes are processed.
Merge overlapping time intervals into mutually exclusive intervals.
Sort the intervals based on their start time.
Iterate through the intervals and merge overlapping intervals.
Output the mutually exclusive intervals.
Example: [(1,3), (2,6), (8,10), (15,18)] -> [(1,6), (8,10), (15,18)]
Different types of hashing and alternative for Linear Chaining
Different types of hashing include division, multiplication, and universal hashing
Alternative for Linear Chaining is Open Addressing
Open Addressing includes Linear Probing, Quadratic Probing, and Double Hashing
An AVL tree is a self-balancing binary search tree where the heights of the left and right subtrees differ by at most one.
AVL tree is a binary search tree with additional balance factor for each node.
The balance factor is the difference between the heights of the left and right subtrees.
Insertion and deletion operations in AVL tree maintain the balance factor to ensure the tree remains balanced.
Rotations are performed ...
Find the minimum number of squares whose sum equals to a given number n.
Use dynamic programming to solve the problem efficiently.
Start with finding the square root of n and check if it is a perfect square.
If not, then try to find the minimum number of squares required for the remaining number.
Repeat the process until the remaining number becomes 0.
Return the minimum number of squares required for the given number n.
Insertion sort for a singly linked list.
Traverse the list and compare each node with the previous nodes
If the current node is smaller, swap it with the previous node
Repeat until the end of the list is reached
Time complexity is O(n^2)
I applied via Naukri.com and was interviewed in Mar 2021. There was 1 interview round.
I applied via Company Website and was interviewed in Feb 2021. There was 1 interview round.
I applied via Naukri.com and was interviewed in May 2021. There were 3 interview rounds.
Good
Better
Some of the top questions asked at the CA Monk Frontend Developer Intern interview for freshers -
based on 1 interview
Interview experience
Associate Talent Acquisition
3
salaries
| ₹2 L/yr - ₹5.4 L/yr |
Accenture
Wipro
Infosys
Amazon