Netomi
Masadir Hr Services Interview Questions and Answers
Q1. find the result for simplify(add20, multiply30, divide10, subtract10)(100)
Perform mathematical operations on 100 using given functions.
The given functions are add20, multiply30, divide10, and subtract10.
Start with 100 and apply the functions in the given order.
The result will be ((100 - 10) * 30) / 10 + 20 = 290.
Q2. Linux file system role of each folders.
Linux file system folders and their roles
The / directory is the root directory
The /bin directory contains essential command binaries
The /etc directory contains configuration files
The /home directory contains home directories for users
The /lib directory contains shared library files
The /tmp directory contains temporary files
The /usr directory contains user binaries, libraries, documentation, and source-code
The /var directory contains variable data files
Q3. Reverse the whole string with spaces remaining in the same place
Reverse the whole string with spaces remaining in the same place
Iterate through the string and reverse each word individually
Keep track of spaces and add them back in the reversed string
Join the reversed words together to form the final reversed string
Q4. pollyfill for group method of Array
The polyfill for group method of Array is not available in ES6, but can be implemented using reduce method.
The group method is used to group the elements of an array based on a given key.
The reduce method can be used to implement the group method by iterating over the array and creating a new object with keys as the group values and values as the array of elements belonging to that group.
The polyfill can be written as a function and added to the Array prototype to make it ava...read more
Q5. Can we perform data driven testing using postman
Yes, Postman supports data driven testing through the use of variables and data files.
Postman allows users to define variables and use them in requests for data driven testing.
Data files such as CSV or JSON can be imported into Postman to drive test data.
Iterations can be set up in Postman to run tests with different data sets.
Q6. Convert Roman numeral to decimal number.
Convert Roman numeral to decimal number
Create a dictionary mapping each Roman numeral to its corresponding decimal value
Iterate through the Roman numeral from left to right
If the current numeral is smaller than the next numeral, subtract its value from the total
Otherwise, add its value to the total
Q7. Largest BST in binary tree.
The largest BST in a binary tree is the subtree with the maximum number of nodes that satisfies the BST property.
A binary search tree (BST) is a binary tree where the value of each node is greater than all values in its left subtree and less than all values in its right subtree.
To find the largest BST in a binary tree, we can perform a depth-first search (DFS) and keep track of the largest BST found so far.
At each node, we can check if the subtree rooted at that node is a BST...read more
Interview Process at Masadir Hr Services
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month