Tesco
FAG Controls Interview Questions and Answers
Q1. differences between arrays and linked lists
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.
Q2. explain algorithms of few problem statements
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
Q3. memory management topic in linked lists
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.
Q4. write an algorithm to return the maximum element in an array
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
Q5. Return the maximum element of an array
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
Q6. Golden rules of accounting
Top HR Questions asked in FAG Controls
Interview Process at FAG Controls
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month