Clarivate
Manik Engineers Interview Questions and Answers
You have been given stock values/prices for N number of days. Every i-th day signifies the price of a stock on that day. Your task is to find the maximum profit which you can m...read more
Implementation of abstract classes and interface in inheritance and overloading and overriding of functions.
Q3. What is asynchronous function in JavaScript?
Asynchronous functions in JavaScript allow code to run without blocking other code from executing.
Asynchronous functions use callbacks or promises to handle the result of the function.
They are useful for tasks that may take a long time to complete, such as fetching data from a server.
Examples include setTimeout(), fetch(), and XMLHttpRequest().
Q4. What is polymorphism?
Polymorphism is the ability of an object to take on many forms.
It allows objects of different classes to be treated as if they were objects of the same class.
It is achieved through method overriding and method overloading.
Example: A parent class Animal can have child classes like Dog, Cat, and Cow. All of them have a common method called 'makeSound', but each of them makes a different sound.
Example: A method can be overloaded by having the same name but different parameters, ...read more
Q5. Reverse alternate words in a given string
Reverse alternate words in a given string
Split the string into words
Reverse alternate words using a loop
Join the words back into a string
Q6. Find frequency of letters in a given string
Use a hashmap to store the frequency of each letter in the given string.
Iterate through the string and update the frequency of each letter in the hashmap.
Return the hashmap containing the frequency of each letter.
Q7. Implement bubble sort
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.
Start at the beginning of the array and compare the first two elements. If the first element is greater than the second, swap them.
Continue comparing adjacent elements and swapping them if necessary until the end of the array is reached.
Repeat this process for each element in the array until no more swaps are needed, indic...read more
Interview Process at Manik Engineers
Top Associate Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month