Bhavna Corp.
MATHEUS IT SOLUTION Interview Questions and Answers
Q1. What is Heap sort. Write it's structure and explain max and min heap
Heap sort is a comparison-based sorting algorithm that uses a binary heap data structure.
Heap sort involves building a heap from the input array and then repeatedly removing the largest (for max heap) or smallest (for min heap) element from the heap and adding it to the sorted array.
The structure of heap sort involves two main steps: heapify the input array to create a heap and then repeatedly extract the root element to get the sorted array.
Max heap is a binary tree where th...read more
Q2. Data hiding in c#
Data hiding in C# refers to the practice of encapsulating data within a class to restrict access from outside the class.
Data hiding is achieved in C# using access modifiers like private, protected, and internal.
Private members can only be accessed within the same class.
Protected members can be accessed within the same class or derived classes.
Internal members can be accessed within the same assembly.
Encapsulation is used to hide the internal state of an object and only expose...read more
Q3. Print Linked List in reverse order using Stack
Use a stack to reverse print a linked list
Create a stack to store the elements of the linked list
Traverse the linked list and push each element onto the stack
Pop elements from the stack and print them to get the reverse order
Q4. Write code for finding duplicate charecters
Code to find duplicate characters in an array of strings
Iterate through each string in the array
For each string, iterate through each character and store in a set
If a character is already in the set, it is a duplicate
Q5. What are OOPS concepts in Java
OOPS concepts in Java are fundamental principles of object-oriented programming such as inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: class B extends class A.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: private variables with public getter and setter methods.
Polymorphism: Ability of a method to do different things based on t...read more
Q6. Sql query writing in detail
SQL query writing involves creating commands to retrieve, manipulate, and manage data in a database.
Understand the database schema and relationships between tables
Use SELECT, INSERT, UPDATE, and DELETE statements to retrieve, add, modify, and delete data
Utilize WHERE, JOIN, GROUP BY, HAVING, and ORDER BY clauses for filtering, joining, grouping, and sorting data
Consider performance optimization techniques like indexing and query tuning
Practice writing complex queries involvin...read more
Interview Process at MATHEUS IT SOLUTION
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month