Filter interviews by
I applied via Instahyre and was interviewed before Apr 2022. There were 5 interview rounds.
Event loop is a mechanism that allows JavaScript to handle multiple tasks simultaneously.
Event loop is a part of JavaScript runtime environment.
It continuously checks the call stack and the task queue.
If the call stack is empty, it takes the first task from the queue and pushes it to the call stack.
Examples of tasks include user input, network requests, and setTimeout() functions.
Shadowing in JavaScript is when a variable declared within a certain scope has the same name as a variable in an outer scope.
Occurs when a variable in a local scope has the same name as a variable in a parent scope
The local variable takes precedence over the parent variable within the local scope
Can cause confusion and unexpected behavior if not handled properly
Find the repeated and missing element in an array of n elements containing 0 to n-1 elements.
Create a hash table to keep track of the frequency of each element.
Iterate through the array and update the hash table.
Find the element with frequency greater than 1 as the repeated element.
Find the missing element by subtracting the sum of array elements from the sum of 0 to n-1 elements.
Return the repeated and missing element
A website gets loaded on the browser through a series of steps including DNS resolution, HTTP request, server response, rendering, and scripting.
The browser sends a DNS request to resolve the website's domain name to an IP address.
The browser sends an HTTP request to the server for the website's resources.
The server responds with the requested resources, including HTML, CSS, JavaScript, and media files.
The browser rend...
Floating point arithmetic is not exact, hence 0.1+0.2 may not be exactly 0.3.
Floating point numbers are represented in binary, which can lead to rounding errors.
0.1 and 0.2 cannot be represented exactly in binary, hence the result may not be exact.
This is not specific to JavaScript, but a general issue with floating point arithmetic.
To avoid such issues, use libraries like decimal.js or round off the result to a certai
React is more lightweight and flexible than Angular, making it ideal for smaller projects or those with less complex requirements.
React is easier to learn and use than Angular, making it more accessible to developers of all skill levels.
React's virtual DOM allows for faster rendering and better performance than Angular's two-way data binding.
React's component-based architecture makes it easier to reuse code and maintai...
Reconciliation process is used by React to update the DOM efficiently.
Reconciliation is the process of comparing the new virtual DOM with the previous one to identify the changes.
React then updates only the necessary changes to the real DOM, instead of re-rendering the entire page.
This process helps in improving the performance of the application.
React uses a diffing algorithm to compare the two virtual DOMs and identi...
React component life cycle defines the stages of a component from initialization to destruction.
React component life cycle consists of three phases: Mounting, Updating, and Unmounting.
Mounting phase includes constructor, getDerivedStateFromProps, render, componentDidMount methods.
Updating phase includes getDerivedStateFromProps, shouldComponentUpdate, render, getSnapshotBeforeUpdate, componentDidUpdate methods.
Unmounti...
React has three main life cycle methods: Mounting, Updating, and Unmounting.
Mounting: constructor(), static getDerivedStateFromProps(), render(), componentDidMount()
Updating: static getDerivedStateFromProps(), shouldComponentUpdate(), render(), getSnapshotBeforeUpdate(), componentDidUpdate()
Unmounting: componentWillUnmount()
Examples: componentDidMount() is used to fetch data from an API, componentWillUnmount() is used ...
A stateful functional component can be created using the useState hook in React.
Import the useState hook from React
Declare a state variable using the useState hook
Use the state variable in the component
Update the state variable using the setState function
Example: const [count, setCount] = useState(0);
Example:
Create a snake game using react.js?
Had a group discussion with CTO and manager about the assignment and other prosperity of role.
Answers to questions related to programming languages and concepts.
Data types in programming languages define the type of data that can be stored and manipulated.
Keywords are reserved words in programming languages that have a specific meaning and cannot be used as variable names.
C++ is a high-level programming language that is used for developing software applications.
Python is a popular programming language that is k...
Answering questions related to Python keywords, data types, header files, and operators.
Python keywords are reserved words that have a specific meaning and cannot be used as variable names.
Data types in Python include integers, floats, strings, lists, tuples, and dictionaries.
Header files are used in C programming to declare functions and variables.
Operators in Python include arithmetic, comparison, logical, and assign
Python is a high-level, interpreted programming language known for its simplicity and ease of use.
Python is a popular language for web development, scientific computing, data analysis, artificial intelligence, and more.
The 'print' keyword is used for outputting data in Python.
The 'input' function is used for taking user input in Python.
Operators in C include arithmetic, relational, logical, bitwise, and assignment oper
posted on 11 Dec 2020
Insurance is a contract between an individual or organization and an insurance company, providing financial protection against potential losses.
Insurance provides coverage for various risks, such as property damage, liability, and personal injury.
It involves the payment of premiums in exchange for the insurer's promise to compensate for covered losses.
Types of insurance include health insurance, auto insurance, home in...
based on 1 review
Rating in categories
Data Scientist
4
salaries
| ₹12 L/yr - ₹19 L/yr |
Product Manager
4
salaries
| ₹10 L/yr - ₹19 L/yr |
Senior Software Engineer
4
salaries
| ₹17 L/yr - ₹40 L/yr |
Assistant Manager- HR
4
salaries
| ₹6 L/yr - ₹9 L/yr |
Operations Coordinator
4
salaries
| ₹2 L/yr - ₹4 L/yr |
CarDekho
Cartrade.com
Droom
CARS24