SarthiQ

SarthiQ

Interview Preparation Guide

MakeMyTrip
Questions & Answers

A comprehensive, expert-curated list of real interview questions to help you prepare effectively and land your dream job.

Document Details

Topic / Subject
MakeMyTrip
Content Length
18 Curated Q&A
Generated On
October 4, 2026
Provided By
SarthiQ.com
Want to explore more questions & mock interviews? Click on 👉www.sarthiq.com
© 2026 SarthiQ Platform. All rights reserved.
www.sarthiq.com
Resume Upload Get Job in 90 Days Resume Builder AI Interview Coach Interview Questions Placement Committee Self Assessment Get Internship

Need Help?

[email protected]

Top MakeMyTrip Interview Questions

NETFLIX
ORACLE
Adobe
NVIDIA
meta
IBM
wipro
TCS
cisco
intel
SAP
Uber

MakeMyTrip Interview Questions

Practice with real MakeMyTrip interview questions

01
A Software Engineer was asked
SarthiQ MakeMyTrip
Medium
Asked in 2024
Q. What is recursion in algorithms, and how would you implement a function to calculate Fibonacci numbers using recursion?
Ans. Recursion is a programming technique where a function calls itself in order to solve a problem. It is often used for problems that can be broken down into smaller, similar sub-problems. The Fibonacci sequence is a classic example where each number is the sum of the two preceding ones. Here’s how you can implement a recursive function to calculate Fibonacci numbers:
javascript
function fibonacci(n) {
    if (n <= 0) return 0; // base case for n = 0
    if (n === 1) return 1; // base case for n = 1
    return fibonacci(n - 1) + fibonacci(n - 2); // recursive case
}

console.log(fibonacci(5)); // Output: 5
console.log(fibonacci(0)); // Output: 0
console.log(fibonacci(1)); // Output: 1
console.log(fibonacci(6)); // Output: 8
In this implementation, the base cases handle the scenarios for n = 0 and n = 1. The recursive case calls the fibonacci function twice, leading to an exponential time complexity. It is important to note that this naive implementation can be inefficient for larger values of n due to repeated calculations. For improvement, memoization or an iterative approach can be utilized.
Software EngineerCore Concept
02
A Backend Developer was asked
SarthiQ MakeMyTrip
Medium
Asked in 2024
Q. How do you create a simple REST API using Node.js? Provide a code example.
Ans. To create a simple REST API using Node.js, you can use the Express framework, which simplifies the process of handling HTTP requests. Below is an example of a basic REST API that manages a list of books.
javascript
const express = require('express');
const app = express();
const PORT = 3000;

app.use(express.json()); // Middleware to parse JSON bodies

let books = [
    { id: 1, title: '1984', author: 'George Orwell' },
    { id: 2, title: 'To Kill a Mockingbird', author: 'Harper Lee' }
];

// GET all books
app.get('/api/books', (req, res) => {
    res.json(books);
});

// POST a new book
app.post('/api/books', (req, res) => {
    const newBook = { id: books.length + 1, ...req.body };
    books.push(newBook);
    res.status(201).json(newBook);
});

// GET a book by ID
app.get('/api/books/:id', (req, res) => {
    const book = books.find(b => b.id === parseInt(req.params.id));
    if (!book) return res.status(404).send('Book not found.');
    res.json(book);
});

app.listen(PORT, () => {
    console.log(`Server is running on http://localhost:${PORT}`);
});
In this example, we set up a REST API with three endpoints: one for retrieving all books, one for adding a new book, and one for retrieving a specific book by its ID. The API responds with JSON data and handles basic errors such as a missing book.
Backend DeveloperCore Concept
03
Software Engineer
SarthiQ MakeMyTrip
Hard

Question:

How would you design a scalable system for XYZ...

04
Software Engineer
SarthiQ MakeMyTrip
Hard

Question:

How would you design a scalable system for XYZ...