Add office photos
Premium Employer

Tesco

3.9
based on 1.3k Reviews
Filter interviews by

FAG Controls Interview Questions and Answers

Updated 13 Apr 2024

Q1. differences between arrays and linked lists

Ans.

Arrays are fixed in size and contiguous in memory, while linked lists are dynamic and non-contiguous.

  • Arrays have constant time access to elements, while linked lists require traversal.

  • Arrays are better for random access, while linked lists are better for insertion and deletion.

  • Arrays use less memory overhead, while linked lists use more due to pointers.

  • Examples: array of integers vs linked list of nodes.

  • Examples: array of characters vs linked list of strings.

Add your answer

Q2. explain algorithms of few problem statements

Ans.

Explaining algorithms for various problem statements

  • For sorting: bubble sort, insertion sort, merge sort, quick sort

  • For searching: linear search, binary search

  • For graph traversal: breadth-first search, depth-first search

  • For dynamic programming: Fibonacci sequence, knapsack problem

  • For string manipulation: string reversal, palindrome check

Add your answer

Q3. memory management topic in linked lists

Ans.

Memory management in linked lists involves allocation and deallocation of nodes.

  • Dynamic memory allocation is used to create nodes in a linked list.

  • Memory leaks can occur if nodes are not properly deallocated.

  • Freed memory should be returned to the operating system using free() function.

  • Using a garbage collector can automate memory management in linked lists.

Add your answer

Q4. write an algorithm to return the maximum element in an array

Ans.

Algorithm to find the maximum element in an array of strings

  • Iterate through the array and compare each element to find the maximum

  • Initialize a variable to store the maximum element and update it as needed

  • Return the maximum element at the end of the iteration

Add your answer
Discover FAG Controls interview dos and don'ts from real experiences

Q5. Return the maximum element of an array

Ans.

Return the maximum element of an array

  • Iterate through the array and keep track of the maximum element found so far

  • Compare each element with the current maximum and update if a larger element is found

  • Return the maximum element after iterating through the entire array

Add your answer

Q6. Golden rules of accounting

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

Interview Process at FAG Controls

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

Top Interview Questions from Similar Companies

4.1
 • 2.2k Interview Questions
4.0
 • 269 Interview Questions
3.9
 • 264 Interview Questions
3.6
 • 228 Interview Questions
3.8
 • 170 Interview Questions
3.2
 • 163 Interview Questions
View all
Top Tesco 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