Member Technical Staff 2

filter-iconFilter interviews by

Member Technical Staff 2 Interview Questions and Answers

Updated 18 May 2017

Q1. What is page fault and segmentation?

Ans.

A page fault occurs when a requested page is not found in the main memory. Segmentation is a memory management technique.

  • Page fault: Occurs when a requested page is not present in the main memory

  • Segmentation: Memory management technique that divides the memory into segments

  • Examples: Page fault occurs when accessing data from virtual memory, while segmentation allows different segments for code, data, and stack

Q2. Implement a min heap using priority queue.

Ans.

A min heap can be implemented using a priority queue, where the smallest element has the highest priority.

  • Use a priority queue data structure to implement the min heap.

  • Ensure that the smallest element has the highest priority.

  • Implement the necessary operations like insert, delete, and extract min.

  • Maintain the heap property by percolating up or down as needed.

Q3. Implementation of Towers of Hanoi problem.

Ans.

The Towers of Hanoi problem involves moving a stack of disks from one peg to another, following specific rules.

  • The problem consists of three pegs and a number of disks of different sizes.

  • The disks are initially stacked in decreasing order of size on one peg.

  • The goal is to move the entire stack to another peg, following these rules:

  • 1. Only one disk can be moved at a time.

  • 2. Each move consists of taking the top disk from one of the stacks and placing it on top of another stack....read more

Are these interview questions helpful?
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

4.4
 • 145 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

Recently Viewed
REVIEWS
Ninjacart
No Reviews
REVIEWS
Frugal Testing
No Reviews
INTERVIEWS
Leap India Institute
No Interviews
SALARIES
Namekart
SALARIES
ZS
REVIEWS
Octro
No Reviews
SALARIES
Sears Holdings
SALARIES
Sears Holdings
REVIEWS
Innoplexus
No Reviews
SALARIES
Octro
Member Technical Staff 2 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

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