Member Technology

Member Technology Interview Questions and Answers

Updated 4 Jun 2015

Q1. Compiler Stages to execute the c program, symbol table

Ans.

Compiler stages include preprocessing, compilation, assembly, and linking. Symbol table stores information about identifiers.

  • Preprocessing stage handles directives like #include and #define

  • Compilation stage translates source code to assembly language

  • Assembly stage converts assembly code to machine code

  • Linking stage combines object files and libraries into an executable

  • Symbol table stores information about identifiers like variable names and function names

Q2. Deadlock avoidance algorithm(Banker's algorithm)

Ans.

Banker's algorithm is a deadlock avoidance algorithm used in operating systems.

  • It is used to avoid deadlock in a multi-process system.

  • It works by checking if a request for resources will leave the system in a safe state.

  • It uses a matrix to represent the current state of the system and the maximum resources each process can request.

  • If the request can be granted without leaving the system in an unsafe state, it is granted.

  • If not, the process must wait until the resources become...read more

Q3. Allocation of memory on Heap and stack

Ans.

Heap and stack are two memory allocation areas in a program.

  • Heap is used for dynamic memory allocation and is managed by the programmer.

  • Stack is used for static memory allocation and is managed by the system.

  • Heap memory is allocated using 'new' keyword in C++ and 'malloc' function in C.

  • Stack memory is allocated automatically for local variables and function calls.

  • Heap memory is not automatically deallocated and can cause memory leaks if not managed properly.

  • Stack memory is au...read more

Q4. Intersection on two list in java

Ans.

Intersection of two lists in Java

  • Convert lists to sets and use retainAll() method

  • Iterate through one list and check if element is present in other list

  • Use Java 8 streams and filter() method

Are these interview questions helpful?

Q5. Difference between Calloc and malloc

Ans.

Calloc initializes memory with zero while malloc does not.

  • Calloc allocates memory and initializes it with zero

  • Malloc allocates memory but does not initialize it

  • Calloc is useful for allocating memory for arrays

  • Malloc is useful for allocating memory for single variables

Q6. Page Replacement Algorithm

Ans.

Page Replacement Algorithm is used to decide which page to remove from memory when new page is to be loaded.

  • It is used in operating systems to manage memory.

  • It is based on the principle of locality of reference.

  • Examples include FIFO, LRU, Optimal, etc.

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q7. Inorder traversal of tree

Ans.

Inorder traversal is a way of visiting each node in a binary tree in a specific order.

  • Start at the leftmost node and traverse the left subtree recursively.

  • Visit the current node.

  • Traverse the right subtree recursively.

  • Repeat until all nodes have been visited.

  • Inorder traversal is commonly used to print the nodes of a binary search tree in sorted order.

Member Technology Jobs

0
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.8
 • 115 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Member Technology Interview Questions
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
65 L+

Reviews

4 L+

Interviews

4 Cr+

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