Add office photos
Engaged Employer

Mastek

3.6
based on 745 Reviews
Filter interviews by

Interview Questions and Answers

Updated 13 Dec 2024

Q1. What Stored procedure in sql , Database, query to find maxiumum salary

Ans.

Use a stored procedure in SQL to find the maximum salary in a database table.

  • Create a stored procedure that selects the maximum salary from the table.

  • Use the MAX() function in SQL to find the maximum salary value.

  • Execute the stored procedure to retrieve the maximum salary.

Add your answer

Q2. what is Oops, Polymorphism

Ans.

Oops stands for Object-Oriented Programming. Polymorphism is the ability of a function to behave differently based on the object it is called with.

  • Oops is a programming paradigm that uses objects and classes to design applications.

  • Polymorphism allows a function to take different forms based on the object it is called with.

  • Example: Inheritance is a form of polymorphism where a subclass can override a method from its superclass.

Add your answer

Q3. What's OOPs concept

Ans.

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.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit (object).

  • Inheritance: Ability of a class to inherit properties and behavior from another class.

  • Polymorphism: Ability to present the same interface for different data types.

  • Abstraction: Hiding the complex implementation details and showing only the nece...read more

Add your answer

Q4. Revise oops concepts , sql.

Ans.

OOPs concepts include inheritance, polymorphism, encapsulation, and abstraction. SQL is a language used to manage databases.

  • Inheritance allows a class to inherit properties and methods from another class.

  • Polymorphism allows objects to take on multiple forms.

  • Encapsulation is the practice of hiding data and methods within a class.

  • Abstraction is the process of hiding complex implementation details and only showing the necessary information.

  • SQL is used to create, modify, and quer...read more

Add your answer
Discover null interview dos and don'ts from real experiences

Q5. Reverse a array

Ans.

Reverse an array of strings

  • Create a new array and iterate through the original array in reverse order, adding each element to the new array

  • Use built-in array methods like reverse() or spread operator for a more concise solution

  • Alternatively, you can swap elements from start to end and end to start until you reach the middle of the array

Add your answer

Q6. Sorting algorithm

Ans.

Sorting algorithm is a method to arrange elements in a specific order.

  • Sorting algorithms can be categorized as comparison-based or non-comparison-based.

  • Examples of sorting algorithms include Bubble Sort, Merge Sort, and Quick Sort.

  • Efficiency of sorting algorithms is measured in terms of time complexity and space complexity.

Add your answer

Q7. Explain Inheritance

Ans.

Inheritance is a concept in object-oriented programming where a class inherits properties and behaviors from another class.

  • Allows a class to inherit attributes and methods from another class

  • Promotes code reusability and reduces redundancy

  • Creates a parent-child relationship between classes

  • Derived class can override or extend the functionality of the base class

  • Example: Class 'Car' can inherit from class 'Vehicle' and inherit properties like 'color' and methods like 'drive()'

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

Interview Process at null

based on 6 interviews in the last 1 year
1 Interview rounds
Aptitude Test Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

3.7
 • 24 Interview Questions
3.4
 • 24 Interview Questions
3.5
 • 16 Interview Questions
4.0
 • 14 Interview Questions
4.1
 • 11 Interview Questions
3.6
 • 10 Interview Questions
View all
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