Siemens Industry Software (India)
10+ Maharshi Udhyog Interview Questions and Answers
Q1. What is a stack ? Write it implementation
A stack is a data structure that follows the Last In First Out (LIFO) principle.
Stack is a collection of elements with two main operations: push (adds element) and pop (removes top element)
Common implementations include using arrays or linked lists
Example: Undo feature in text editors uses a stack to store previous states
Q2. What is the merge sort algorithm and what is its time complexity?
Merge sort is a divide and conquer algorithm that divides the input array into two halves, sorts them recursively, and then merges them back together.
Divide the input array into two halves
Recursively sort each half
Merge the sorted halves back together
Time complexity is O(n log n)
Q3. How could we optimize a stack optimization
Optimizing a stack involves reducing unnecessary operations and improving memory usage.
Implementing tail call optimization to reduce stack space usage
Using iterative algorithms instead of recursive ones to avoid stack overflow
Minimizing the number of local variables stored on the stack
Using dynamic memory allocation instead of fixed-size arrays to optimize memory usage
Q4. Database query from 2 table without a common column
Use a JOIN statement to combine data from two tables without a common column.
Use a JOIN statement to combine data from two tables based on a different column
Specify the columns to select from each table in the query
Use aliases to differentiate between columns with the same name in different tables
Q5. sql for deleting dulicates and keeping one
Use SQL query with ROW_NUMBER() function to delete duplicates and keep one.
Use ROW_NUMBER() function to assign a unique number to each row partitioned by the duplicate column(s)
Delete rows where the row number is greater than 1
Q6. java stream for sorting emp object
Use Java Stream API to sort a list of employee objects based on a specific field.
Use the sorted() method of Stream to sort the employee objects based on a Comparator.
Define a Comparator based on the field you want to sort by.
Example: List
sortedList = employeeList.stream().sorted(Comparator.comparing(Employee::getSalary)).collect(Collectors.toList());
Q7. What is the Quick Sort algorithm?
Quick Sort is a popular sorting algorithm that uses a divide-and-conquer approach to sort elements in an array.
Divides the array into two sub-arrays based on a pivot element
Recursively sorts the sub-arrays
Combines the sorted sub-arrays to produce the final sorted array
Example: [3, 6, 8, 10, 1, 2, 1] -> [1, 1, 2, 3, 6, 8, 10]
Q8. sql for getting the max salary
Use SQL query with MAX function to get the maximum salary from a table.
Use SELECT MAX(salary) FROM employees;
Make sure to replace 'employees' with the actual table name where salary information is stored.
Ensure that the column name for salary is correct in the query.
Q9. Design considerations for a front end web application
Design considerations for front end web applications include user experience, performance, scalability, accessibility, and security.
Consider user experience by designing intuitive interfaces and smooth interactions.
Optimize performance by minimizing loading times and reducing unnecessary requests.
Ensure scalability by designing modular and flexible components.
Prioritize accessibility by following web content accessibility guidelines (WCAG).
Implement security measures such as ...read more
Q10. Detail OOP concept with real life examples?
OOP is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
OOP focuses on creating objects that interact with each other to solve problems
Encapsulation: Objects can hide their internal state and require interaction through defined interfaces
Inheritance: Objects can inherit attributes and methods from parent classes
Polymorphism: Objects can take on different forms or have different behaviors
Exa...read more
Q11. What is your expected CTC
My expected CTC is based on my experience, skills, and the market rate for Softwaretest Engineers.
My expected CTC is in line with industry standards for Softwaretest Engineers.
I have taken into consideration my years of experience and expertise in software testing.
I am open to negotiation based on the overall compensation package offered by the company.
Q12. Design a Flight booking system
Design a flight booking system with user authentication, flight search, booking, seat selection, and payment handling.
Implement user authentication for secure access.
Create a database of flights with availability and pricing.
Allow users to search for flights based on criteria like date, destination, and number of passengers.
Provide seat selection options for users during booking.
Include a payment gateway for secure transactions.
Implement cancellation policies for users to man...read more
Q13. Managing cultural differences
Managing cultural differences is essential for effective team collaboration and communication.
Promote open communication and encourage team members to share their perspectives and ideas.
Respect and value diversity within the team to foster a positive and inclusive work environment.
Provide cultural sensitivity training to help team members understand and appreciate different cultural norms and practices.
Encourage team bonding activities to build trust and camaraderie among tea...read more
Q14. Whay you decided to change Job
Seeking new challenges and opportunities for growth in a different environment.
Desire for career advancement
Interest in working with new technologies
Seeking better work-life balance
Company restructuring or downsizing
Relocation to a new city
Q15. SQL query to find highest salary.
Use SQL query with MAX function to find highest salary.
Use SELECT statement with MAX function to retrieve highest salary from salary column.
Example: SELECT MAX(salary) FROM employees;
Make sure to replace 'employees' with the actual table name where salary data is stored.
Top HR Questions asked in Maharshi Udhyog
Interview Process at Maharshi Udhyog
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month