Premium Employer

Info Edge

4.0
based on 1.9k Reviews
Filter interviews by

Mundada Ent & Eye Care Center Interview Questions and Answers

Updated 7 Nov 2024
Popular Designations

Q1. What do you mean by run time polymorphism and how is it achieved?

Ans.

Run time polymorphism is the ability of a method to do different things based on the object it is acting upon.

  • Run time polymorphism is achieved through method overriding in object-oriented programming.

  • It allows a subclass to provide a specific implementation of a method that is already provided by its superclass.

  • The actual method that gets called is determined by the type of object at run time.

  • Example: Animal class has a method 'makeSound'. Dog and Cat classes extend Animal a...read more

Add your answer

Q2. Explain each oops concept with clarity and write a class where you are implementing these.

Ans.

Explanation of OOPs concepts with a class implementation

  • Encapsulation: Class with private data members and public methods to access them

  • Inheritance: Class extending another class to inherit its properties and methods

  • Polymorphism: Class with multiple methods with the same name but different parameters

  • Abstraction: Class with abstract methods that must be implemented by subclasses

Add your answer

Q3. How is encapsulation different than abstraction?

Ans.

Encapsulation is the concept of bundling data and methods that operate on the data into a single unit, while abstraction is the concept of hiding the implementation details and showing only the necessary features of an object.

  • Encapsulation is about wrapping the data (variables) and methods (functions) that operate on the data into a single unit (class).

  • Abstraction is about hiding the implementation details and showing only the necessary features of an object.

  • Encapsulation hel...read more

Add your answer

Q4. Explain OOPS concepts with some code

Ans.

OOPS concepts are fundamental to object-oriented programming and include inheritance, encapsulation, polymorphism, and abstraction.

  • Inheritance: Allows a class to inherit properties and behavior from another class. Example: class Dog extends Animal.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: private variables and public methods.

  • Polymorphism: Ability to present the same interface for different data types. Example: method overlo...read more

Add your answer
Discover Mundada Ent & Eye Care Center interview dos and don'ts from real experiences

Q5. palindrome all methods you can think

Ans.

Various methods to check if a string is a palindrome

  • Reverse the string and compare with the original string

  • Iterate through the string from both ends towards the middle

  • Use a stack to push the characters of the string and then pop them to compare with the original string

Add your answer

Q6. Peak element in array

Ans.

Peak element in array is the element which is greater than or equal to its neighbors.

  • Iterate through the array and check if the current element is greater than its neighbors.

  • If the current element is greater than both neighbors, it is a peak element.

  • If the current element is at the start or end of the array, only compare with one neighbor.

Add your answer

Q7. Prime number to check

Ans.

A prime number is a number greater than 1 that can only be divided by 1 and itself.

  • A prime number is a number greater than 1.

  • It can only be divided by 1 and itself.

  • Examples: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Mundada Ent & Eye Care Center

based on 4 interviews in the last 1 year
Interview experience
4.5
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
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
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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