Zuno General Insurance
Ultramax Infonet Technologies Interview Questions and Answers
Q1. What are Generator Functions in JS
Generator functions in JS are special functions that can pause and resume their execution, allowing for asynchronous programming.
Generator functions are defined using function* syntax.
They use the yield keyword to pause execution and return a value.
Generators can be iterated over using a for...of loop or by manually calling the next() method on the generator object.
They are commonly used for asynchronous programming, allowing for easier handling of asynchronous tasks.
Q2. What are apply,call, bind methods
apply, call, and bind are methods used in JavaScript to manipulate the context of a function.
apply() - calls a function with a given 'this' value and arguments provided as an array
call() - calls a function with a given 'this' value and arguments provided individually
bind() - creates a new function that, when called, has its 'this' keyword set to the provided value
Q3. Implement a retry function in node.js
Implement a retry function in node.js
Create a function that takes a function and number of retries as parameters
Use a loop to call the function and handle errors
Use setTimeout to delay retries if needed
Q4. Disadvantages of indexes in mongoDb
Indexes in MongoDB can have disadvantages like increased storage space, slower write operations, and potential performance degradation.
Indexes can take up additional storage space as they store copies of the indexed fields.
Creating and maintaining indexes can slow down write operations, as the indexes need to be updated whenever the data changes.
Having too many indexes can lead to performance degradation, as MongoDB has to evaluate multiple indexes to find the optimal query p...read more
Q5. What is Currying
Currying is a technique in functional programming where a function with multiple arguments is transformed into a sequence of functions, each taking a single argument.
Currying helps in creating reusable functions and improving code readability.
It allows partial application of functions, where some arguments are fixed and others are left to be provided later.
Example: const add = (a) => (b) => a + b; add(2)(3) will return 5.
Q6. What is inheritance, Call backs, event loop etc
Inheritance is a mechanism in object-oriented programming where a class inherits properties and behaviors from another class.
Inheritance allows a class to reuse code from another class, promoting code reusability and reducing redundancy.
Subclasses can extend the functionality of the superclass by adding new methods or overriding existing ones.
Callbacks are functions that are passed as arguments to other functions and are executed at a later time or in response to an event.
Eve...read more
Interview Process at Ultramax Infonet Technologies
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month