TCS
10+ MakeMyTrip Interview Questions and Answers
Q1. Why is inheritance important in our programming ? Explain it with an example and write a program using it
Inheritance is important in programming as it allows for code reuse, promotes modularity, and enables polymorphism.
Inheritance allows us to create new classes that inherit the properties and methods of existing classes.
It promotes code reuse by allowing us to define common attributes and behaviors in a base class and extend it in derived classes.
Inheritance promotes modularity as it allows us to organize classes into a hierarchy, making the code more manageable and maintainab...read more
Q2. 1) Introduction 2) why python ... any project in python ? 3) what is list comprehension? 4) what is xml? 5) what is JSON ... similarities between json and html? 6) format specifier in C 7) what is intent ( rela...
read moreThe interview questions cover topics like Python, list comprehension, XML, JSON, format specifiers in C, intents in projects, use of GitHub, GSM messaging, and Bootstrap.
Python is chosen for its simplicity and readability, used in a project for data analysis.
List comprehension is a concise way to create lists in Python, like [x for x in range(10) if x%2==0].
XML is a markup language for storing and transporting data.
JSON is a lightweight data interchange format, similar to HTM...read more
Q3. What is object oriented programming ?
Object oriented programming is a programming paradigm that focuses on objects and their interactions.
Objects are instances of classes that encapsulate data and behavior.
Inheritance allows classes to inherit properties and methods from parent classes.
Polymorphism allows objects to take on multiple forms and behave differently based on context.
Encapsulation hides the implementation details of an object and only exposes a public interface.
Examples of object oriented programming ...read more
Q4. Full form of RDBMS, HTTP, HTTPS, RAM, HTML, CSS etc.
RDBMS - Relational Database Management System, HTTP - Hypertext Transfer Protocol, HTTPS - Hypertext Transfer Protocol Secure, RAM - Random Access Memory, HTML - HyperText Markup Language, CSS - Cascading Style Sheets
RDBMS: Relational Database Management System (e.g. MySQL, Oracle)
HTTP: Hypertext Transfer Protocol (used for communication between web servers and clients)
HTTPS: Hypertext Transfer Protocol Secure (encrypted version of HTTP)
RAM: Random Access Memory (temporary st...read more
Q5. Write a code without using modulus operator to find given number is odd or even.
Code to determine if a number is odd or even without using modulus operator.
Use bitwise AND operator with 1 to check if the last bit is 0 or 1
If the result is 0, the number is even, else it is odd
Q6. What do u understand by GDP ?
GDP stands for Gross Domestic Product, which is the total value of goods and services produced in a country in a given period.
GDP is a measure of a country's economic performance.
It includes all final goods and services produced within a country's borders.
It is calculated by adding up the value of all goods and services produced, minus the value of intermediate goods used in production.
GDP can be used to compare the economic performance of different countries or to track chan...read more
Q7. Do u know anything about cloud computing?
Cloud computing is the delivery of computing services over the internet.
Cloud computing allows users to access data and applications from anywhere with an internet connection.
It offers scalability, flexibility, and cost-effectiveness compared to traditional on-premises computing.
Examples of cloud computing services include Amazon Web Services, Microsoft Azure, and Google Cloud Platform.
Q8. What are the questions I attempted in codevita and what technology i used
I attempted three questions in Codevita using Java and Python technologies.
I used Java for the first question which was based on string manipulation.
For the second question, I used Python to implement a dynamic programming solution.
The third question was related to graph theory and I used Java to solve it.
I also utilized various data structures and algorithms to optimize my solutions.
Overall, the experience of participating in Codevita was challenging and rewarding.
Q9. Explain the term rectifier and tunnel diode
Rectifier converts AC to DC while tunnel diode has negative resistance.
Rectifier is an electronic device that converts alternating current (AC) to direct current (DC).
Tunnel diode is a type of diode that exhibits negative resistance.
Tunnel diode is used in microwave oscillators, amplifiers, and detectors.
Rectifiers are used in power supplies, battery chargers, and welding machines.
Q10. Anything from ur daily life that uses artificial intelligence
Smartphone personal assistants like Siri and Google Assistant use AI to assist in daily tasks.
Smartphone personal assistants use natural language processing to understand and respond to user requests
They can set reminders, make phone calls, send messages, and even control smart home devices
They learn from user behavior and adapt to provide more personalized assistance
Other examples include recommendation algorithms on streaming services and voice recognition technology in car...read more
Q11. What is polymorphism,inheritance?
Polymorphism is the ability of an object to take on many forms. Inheritance is the mechanism of deriving new classes from existing ones.
Polymorphism allows objects of different classes to be treated as if they were objects of the same class.
Inheritance allows a class to inherit properties and methods from another class.
Polymorphism and inheritance are key concepts in object-oriented programming.
Example of polymorphism: a shape class with different subclasses like circle, squa...read more
Q12. Cut the pizza in 8 pieces in 3 strokes
Cut pizza into 8 pieces in 3 strokes
Make two perpendicular cuts through the center of the pizza to get 4 equal pieces
Make a third cut through the center of one of the 4 pieces to get 8 equal pieces
Ensure the cuts intersect at the center of the pizza for even slices
Q13. What is an operating system?
An operating system is a software that manages computer hardware and software resources.
It acts as an interface between the user and the computer hardware.
It provides services such as memory management, process management, and device management.
Examples include Windows, macOS, Linux, and Android.
It allows multiple applications to run simultaneously.
It provides security features such as user authentication and access control.
Q14. What is deadlock
Deadlock is a situation where two or more processes are unable to proceed because they are waiting for each other to release resources.
Deadlock occurs when two or more processes are blocked and unable to continue executing.
It happens when each process is holding a resource and waiting for another resource held by another process.
Deadlock can be prevented by using techniques like resource allocation graph and banker's algorithm.
Examples of resources that can cause deadlock inc...read more
Q15. Difference between GitHub and Git
GitHub is a web-based platform for hosting and collaborating on Git repositories.
GitHub is a web-based platform for hosting Git repositories.
Git is a version control system that tracks changes in files.
GitHub provides additional features like issue tracking, pull requests, and project management.
Git is a command-line tool used for version control.
Q16. Difference between c++ and java
C++ is a statically typed language with manual memory management, while Java is a dynamically typed language with automatic memory management.
C++ is compiled directly to machine code, while Java is compiled to bytecode and runs on a virtual machine (JVM)
C++ supports multiple inheritance, while Java supports only single inheritance through classes and multiple inheritance through interfaces
C++ has pointers and allows direct memory manipulation, while Java does not have pointer...read more
Q17. What is expected ctc
The expected CTC (Cost to Company) is the salary package that the company is willing to offer to the Assistant Software Engineer.
The expected CTC is usually discussed during the interview process to ensure that both the candidate and the company are aligned on salary expectations.
It is important to research the market rates for Assistant Software Engineers in the specific location and industry to have a realistic expectation.
Factors such as the candidate's experience, skills,...read more
Q18. Types of inheritance
Types of inheritance include single, multiple, multilevel, hierarchical, hybrid, and so on.
Single inheritance: a class inherits from only one base class.
Multiple inheritance: a class inherits from more than one base class.
Multilevel inheritance: a class inherits from a class which in turn inherits from another class.
Hierarchical inheritance: multiple classes inherit from a single base class.
Hybrid inheritance: a combination of multiple and multilevel inheritance.
Example: clas...read more
More about working at TCS
Top HR Questions asked in MakeMyTrip
Interview Process at MakeMyTrip
Reviews
Interviews
Salaries
Users/Month