Add office photos
Employer?
Claim Account for FREE

FarEye

3.1
based on 198 Reviews
Filter interviews by

10+ Acufore India Interview Questions and Answers

Updated 12 Nov 2024

Q1. How to find second highest salaried person details from a table

Ans.

To find the second highest salaried person details from a table

  • Sort the table in descending order based on salary

  • Select the second row from the sorted table

  • Retrieve the details of the person from the selected row

Add your answer

Q2. What is LRU caching and how it can be implemented?

Ans.

LRU caching is a technique to store frequently used data in cache memory to improve performance.

  • LRU stands for Least Recently Used.

  • It removes the least recently used item from the cache when the cache is full.

  • It uses a doubly linked list and a hash map to implement the cache.

  • When an item is accessed, it is moved to the front of the list.

  • When the cache is full, the item at the end of the list is removed.

  • Example: Java LinkedHashMap and Python OrderedDict use LRU caching.

Add your answer

Q3. Print the all anagrams of same type in same line from array of Strings

Ans.

Print all anagrams of same type in same line from array of Strings

  • Create a HashMap with sorted string as key and list of anagrams as value

  • Iterate through array and add each string to corresponding list in HashMap

  • Print all values in HashMap

Add your answer

Q4. Explain producer-consumer problem and write code using thread.

Ans.

Producer-consumer problem involves synchronization between threads to avoid race conditions.

  • Producer produces data and adds it to a shared buffer

  • Consumer consumes data from the shared buffer

  • Synchronization is required to avoid race conditions

  • Code example: https://www.geeksforgeeks.org/producer-consumer-solution-using-threads-in-java/

Add your answer
Discover Acufore India interview dos and don'ts from real experiences

Q5. what is umass and u mass value for root user

Ans.

UMASK is a value that sets default permissions for newly created files and directories for a user. UMASK value for root user is typically 022.

  • UMASK is a four-digit octal number that represents the permissions for newly created files and directories.

  • The UMASK value for the root user is typically 022, which means that the default permissions for new files are 644 and for new directories are 755.

Add your answer

Q6. Programming questions- 1) wap to print 1,5,10,....,100. 2)wap to print Fibonacci series. 3)given an array to strings. Print last 3words of every string in that array.

Ans.

Programming questions on printing numbers and manipulating strings.

  • For printing 1,5,10,...,100, use a loop and increment the number by 4 in each iteration.

  • For printing Fibonacci series, use a loop and add the previous two numbers to get the next number.

  • For printing last 3 words of every string in an array, split each string into words and print the last three words.

Add your answer
Are these interview questions helpful?

Q7. PODs and manifiest file in Kubernetes

Ans.

PODs are the smallest deployable units in Kubernetes, while manifest files define the desired state of resources.

  • PODs are groups of containers that share the same network and storage resources

  • Manifest files are YAML or JSON files that describe the desired state of Kubernetes resources

  • Manifest files include information such as the type of resource, its name, labels, and specifications

  • Manifest files can be used to create, update, or delete resources in Kubernetes

Add your answer

Q8. Check a tree is BST or not.

Ans.

To check if a tree is a BST or not.

  • Traverse the tree in-order and check if the values are in ascending order.

  • For each node, check if its value is greater than the maximum value of its left subtree and less than the minimum value of its right subtree.

  • Recursively check if the left and right subtrees are also BSTs.

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Reverse a single linked list.

Ans.

Reverse a single linked list.

  • Iterate through the list and change the direction of the pointers

  • Keep track of the previous, current and next nodes

  • Set the head of the list to the last node after reversing

Add your answer

Q10. Features added in Java 8

Ans.

Java 8 introduced lambda expressions, functional interfaces, streams, and default methods.

  • Lambda expressions allow functional programming in Java.

  • Functional interfaces are interfaces with a single abstract method.

  • Streams provide a way to process collections of data in a functional way.

  • Default methods allow interfaces to have implementation.

  • Date and Time API improvements.

  • Nashorn JavaScript engine added.

Add your answer

Q11. Given a sorted and rotated array arr[] of size N and a key, the task is to find the key in the array. Input : arr[] = {5, 6, 7, 8, 9, 10, 1, 2, 3}, key = 3 Solution log(n)

Ans.

Use binary search to find the key in a sorted and rotated array.

  • Apply binary search to efficiently find the key in the array.

  • Check if the key is in the left or right half of the array based on the mid element.

  • Adjust the search space accordingly based on the comparison of key with elements at start, mid, and end of the array.

Add your answer

Q12. too find all numbers whose consecutive digits differ by 1

Ans.

Find all numbers whose consecutive digits differ by 1

  • Iterate through all numbers and check if consecutive digits differ by 1

  • Start with 12 and increment by 1 until 98

  • Add the number to the result array if it satisfies the condition

Add your answer

Q13. Sort Array having only 0 and 1 in O(n)

Ans.

Sort an array of 0s and 1s in O(n) time complexity.

  • Use two pointers, one at the beginning and one at the end of the array.

  • Swap 0s from the beginning with 1s from the end until the pointers meet.

  • Alternatively, count the number of 0s and 1s and overwrite the array with the correct number of each.

Add your answer

Q14. What is smoke testing

Ans.

Smoke testing is a preliminary testing to check if the basic functionalities of a software application are working fine.

  • Smoke testing is a quick and shallow testing of the critical functionalities of an application.

  • It is usually performed before more in-depth testing to ensure that the application is stable enough for further testing.

  • The main purpose of smoke testing is to verify that the application is ready for more rigorous testing.

  • Smoke testing is not exhaustive and does ...read more

Add your answer

Q15. What is regression testing

Ans.

Regression testing is the process of retesting a software application to ensure that new code changes have not adversely affected existing functionality.

  • Regression testing is performed after code changes to verify that the existing functionality still works correctly.

  • It helps in identifying any defects introduced by new code changes.

  • Automated testing tools are often used for regression testing to save time and effort.

  • Regression testing can be done manually or automatically.

  • Ex...read more

Add your answer

Q16. write a code and explain it

Ans.

Code to sort an array of strings in alphabetical order

  • Use the sort() method to sort the array of strings

  • Pass a compare function to sort alphabetically

Add your answer
Asked in
SDE Interview

Q17. Left View of a tree

Ans.

The left view of a tree shows the nodes that are visible when looking at the tree from the left side.

  • Traverse the tree in a level order manner

  • Keep track of the first node encountered at each level

  • Add the first node at each level to the result array

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Acufore India

based on 7 interviews in the last 1 year
Interview experience
4.7
Excellent
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.4
 • 770 Interview Questions
3.7
 • 626 Interview Questions
3.8
 • 328 Interview Questions
3.7
 • 304 Interview Questions
4.2
 • 206 Interview Questions
4.2
 • 198 Interview Questions
View all
Top FarEye Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter