Mphasis
20+ Hotel New Krishna Palace Interview Questions and Answers
Q1. Why Mphasis? What do you know about us?
Mphasis is a leading IT solutions provider with a focus on digital transformation.
Mphasis has a strong presence in the banking and financial services industry, providing innovative solutions to clients such as Citibank and Standard Chartered.
The company has a focus on digital transformation and offers services such as cloud computing, data analytics, and artificial intelligence.
Mphasis has won several awards for its work in the IT industry, including the NASSCOM Customer Serv...read more
Q2. Write a program for multiple inheritances?
A program for multiple inheritances
Create a base class with common attributes and methods
Create derived classes that inherit from the base class
Use multiple inheritance to inherit from multiple base classes
Resolve any naming conflicts using scope resolution operator (::)
Example: class Derived: public Base1, public Base2 {}
Example: class Derived: public Base1, public Base2 { public: void method() { Base1::method(); Base2::method(); } }
Q3. What is the difference between structure and union?
Structure is a collection of variables of different data types while union is a collection of variables of same data type.
Structure allocates memory for all its variables while union allocates memory for only one variable at a time.
Structure is used when we need to store different types of data while union is used when we need to store only one type of data.
Example of structure: struct student { char name[20]; int age; float marks; };
Example of union: union data { int i; floa...read more
Q4. What is your definition of work-life balance?
Work-life balance is the ability to prioritize and manage both work and personal life effectively.
It involves setting boundaries and managing time efficiently
It allows for time to pursue personal interests and hobbies
It reduces stress and burnout
Examples include flexible work hours, remote work options, and time off for personal reasons
Q5. C code to perform in-order traversal on a binary tree.
C code for in-order traversal on a binary tree.
Start at the root node.
Traverse the left subtree recursively.
Visit the root node.
Traverse the right subtree recursively.
Repeat until all nodes have been visited.
Example code: void inorderTraversal(Node* root) { if(root != NULL) { inorderTraversal(root->left); printf("%d ", root->data); inorderTraversal(root->right); } }
Q6. Difference between Function overriding and function overloading?
Function overriding vs function overloading
Function overloading is having multiple functions with the same name but different parameters
Function overriding is having a function in a subclass with the same name and parameters as a function in the superclass
Function overloading is resolved at compile-time while function overriding is resolved at runtime
Q7. What do you know about process management?
Process management involves planning, organizing, executing, and monitoring processes to achieve organizational goals.
It includes identifying and defining processes
Assigning responsibilities and resources
Establishing timelines and milestones
Monitoring progress and making adjustments as needed
Examples include project management, supply chain management, and quality management
Q8. What is a dangling pointer?
A dangling pointer is a pointer that points to a memory location that has been deallocated or freed.
Dangling pointers can cause crashes or unexpected behavior when accessed.
They can occur when a pointer is not set to NULL after the memory it points to is freed.
Example: int *ptr = malloc(sizeof(int)); free(ptr); printf('%d', *ptr);
In the above example, ptr becomes a dangling pointer after the memory it points to is freed.
Q9. What is inheritance and type of inheritance
Inheritance is a mechanism in OOP where a new class is derived from an existing class.
It allows the new class to inherit the properties and methods of the existing class.
The existing class is called the parent or base class, and the new class is called the child or derived class.
There are different types of inheritance: single, multiple, multilevel, and hierarchical.
Example: A car class can be a parent class, and a sedan class can be a child class that inherits the properties...read more
Q10. Explain about OSI model
The OSI model is a conceptual model that describes how data is transmitted over a network.
OSI stands for Open Systems Interconnection.
It has 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application.
Each layer has a specific function and communicates with the adjacent layers.
Example: When you send an email, the Application layer sends it to the Presentation layer, which formats the data, and then sends it to the Session layer.
The Session layer ...read more
Q11. Code for sum of n natural numbers
Code for sum of n natural numbers
Use a loop to iterate from 1 to n and add each number to a sum variable
Return the sum variable
Q12. oops concepts with real time examples
Object-oriented programming concepts with real-life examples
Encapsulation: A car's engine is encapsulated and hidden from the user, who only interacts with the car's interface.
Inheritance: A cat is a subclass of the animal class, inheriting its properties and methods.
Polymorphism: A shape class can have different methods for calculating area depending on the shape, such as circle or rectangle.
Abstraction: A TV remote control abstracts the complex inner workings of the TV and ...read more
Q13. Company info. Diff between home and house.
The question is about company info and the difference between home and house.
Company info refers to details about the organization such as its history, mission, and values.
Home refers to a place where one lives and feels comfortable, while house refers to a physical structure.
A house can be a home, but not all homes are houses. For example, an apartment or a mobile home can also be a home.
The difference between home and house is subjective and can vary based on cultural and p...read more
Q14. What are lists and tupples
Lists and tuples are data structures in Python used to store collections of items.
Lists are mutable and ordered, allowing for easy addition and removal of elements.
Tuples are immutable and ordered, making them useful for storing related data that should not be changed.
Both can store any type of data, including other lists or tuples.
Lists are created using square brackets, while tuples use parentheses.
Example: my_list = [1, 'hello', [2, 3]]
Example: my_tuple = (4, 'world', (5, ...read more
Q15. Any program which you know.
One program I know is a simple calculator program written in Python.
The program takes user input for two numbers and an operator (+, -, *, /).
It then performs the operation and displays the result.
Example: input 5, +, 3 -> output 8
Q16. Diff between handwork and smartwork.
Handwork is hard work done manually, while smart work is efficient work done with the use of technology and strategy.
Handwork involves physical effort, while smart work involves mental effort.
Handwork is time-consuming, while smart work is time-efficient.
Handwork may not always yield the desired results, while smart work is focused on achieving specific goals.
Examples of handwork include farming, construction, and cleaning, while examples of smart work include automation, dat...read more
Q17. explain Object oriented program
Object-oriented programming is a programming paradigm based on the concept of objects, which can contain data and code.
Objects are instances of classes, which define the structure and behavior of the objects.
Encapsulation allows data to be hidden within objects and only accessed through methods.
Inheritance allows classes to inherit attributes and methods from other classes.
Polymorphism allows objects to be treated as instances of their parent class, enabling flexibility and r...read more
Q18. abt project and algorithms used
I worked on a project that involved developing a recommendation system using collaborative filtering algorithms.
Implemented collaborative filtering algorithms like user-based and item-based recommendation systems
Utilized cosine similarity and Pearson correlation coefficient for calculating similarity between users/items
Used matrix factorization techniques like Singular Value Decomposition (SVD) for recommendation
Evaluated the performance of algorithms using metrics like RMSE ...read more
Q19. Projects in Engineering
Projects in engineering involve designing, building, and testing systems and structures to solve problems.
Identify problem and constraints
Design solution and create blueprints
Build and test prototype
Refine design based on testing results
Implement final solution
Examples: building a bridge, designing a new software application
Q20. pointers in c
Pointers in C are variables that store memory addresses. They are used to manipulate data and create dynamic data structures.
Pointers are declared using the * symbol, and can be initialized to the address of another variable.
Dereferencing a pointer means accessing the value stored at the memory address it points to, using the * symbol.
Pointers can be used to pass variables by reference, allowing functions to modify the original variable.
Dynamic memory allocation can be done u...read more
Q21. write code for duplicate array
Code to remove duplicates from an array of strings
Use a Set to store unique elements
Iterate through the array and add each element to the Set
Convert the Set back to an array to get the final result
Q22. okay with any location
I am open to any location for the job.
I am willing to relocate for the job
I am flexible with the location
I am excited about the opportunity to work in different places
Q23. constructors in java
Constructors are special methods used to initialize objects in Java.
Constructors have the same name as the class they belong to.
They are called automatically when an object is created.
Constructors can be overloaded to accept different parameters.
Default constructor is provided by Java if no constructor is defined.
Constructors can also call other constructors using 'this' keyword.
Q24. Smart works vs hardwork
Smart work is the key to success, but hard work is equally important.
Smart work involves using your resources efficiently to achieve your goals.
Hard work involves putting in a lot of effort and time to achieve your goals.
A combination of both smart work and hard work is ideal for success.
For example, a student who studies smartly by focusing on important topics and practicing previous year papers along with putting in hard work by studying for long hours is more likely to suc...read more
Top HR Questions asked in Hotel New Krishna Palace
Interview Process at Hotel New Krishna Palace
Top Associate Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month