Mindtree Technical Interview Questions

Mindtree Technical Interview Questions and Answers 2023

Find the most recently asked technical questions in the Mindtree Interview 2023.

Page Highlights:

  • Mindtree Test Pattern
  • Top 20 Mindtree Technical Interview Questions
Mindtree Technical Interview Questions

Mindtree Test Pattern

Section No. of Questions Time Allotted
Logical Ability 18 Questions 20mins
Quantitative Aptitude 18 Questions 20mins
Computer Programming 25 Questions 35mins
Communication Ability 30-40 Questions 20mins

Top 20 Mindtree Technical Interview Questions

Question 1: What are the advantages of object-oriented programming?

Answer:

The advantages of Object-Oriented programming:

  • Modularity facilitates troubleshooting.
  • Inheritance allows for code reuse.
  • Polymorphism provides flexibility.
  • It aids in effective problem-solving.

Question 2:- What is the difference between a Primary Key and Unique Key in SQL?

Answer:

The 3 main SQL commands are

  • DDL(data definition language)
  • DCL(data control language)
  • DML(data manipulation language)

Question 3: Briefly explain the approaches to develop algorithms?

Answer:

There are three major approaches to algorithm development.

Greedy Approach: Creating a solution by selecting the next best option

Divide and conquer: the problem by breaking it down into the smallest possible sub-problems and solving them independently.

Dynamic Programming: reduces the problem to the smallest possible sub-problems and solves them all at once.

Questions 4: What do you mean by memory management?

Answer:

Memory Management: In a multiprogramming computer, the operating system occupies a portion of memory, while the remainder is shared by multiple processes. Memory management refers to the task of dividing memory among various processes. Memory management is an operating system technique for managing operations between main memory and disc during process execution. Memory management’s primary goal is to maximize memory utilization.

Question 5: How is multiprogramming different from multitasking?

Multiprogramming Multitasking
Multiprogramming is primarily used to increase CPU efficiency by arranging applications so that only one program runs at a time.Multitasking attempts to improve reaction time by sharing computing resources among multiple users.
Multiprogramming’s goal is to make the CPU work harder. The programs are written in such a way that the CPU is never idle; each program is executed sequentially.The goal of multitasking is to improve CPU reaction time.
The concept of multiprogramming is based on context switching, which is a common operation that allows the CPU of a single processor computer to transition from one task to another. The Process Control Block (PCB) keeps track of the state of an active process so that the CPU can resume where it left off. Multitasking relies on time-sharing, which means that each activity or process takes the same amount of time to complete.
In order to reduce CPU idle time, multiprogramming makes use of a computer’s ability to store programs for longer periods of time. The scheduling mechanism is used to assign processes. The operating system runs a segment of one program at a time, then another, and so on.Under a multitasking operating system, the CPU permits numerous processes to operate at the same time through time-sharing and executes them properly.

Question 6: Define Serialization.

Answer:

The process of transforming an entity’s state into a byte stream is known as serialization.

Question 7: Write the stack conditions.

Answer:

Overflow Condition: top=MaxSize-1

Underflow Condition: top=MinSize-1

Question 8: What is the best way to send data from one JSP to another JSP?

Answer:

This can be accomplished using one of three ways:

  • Making use of request attributes:

Set the value to transmit in the request property to whichever name you like.

setAttribute(“send”, “valueToSend”) and use request to retrieve it on another jsp.

getAttribute(“send”);

  • Making use of session attributes

Similar to above, but instead of requests, session objects are used.

  • Using characteristics in applications

Same as 1 and 2, but instead of request and session, use application objects.

Questions 9: What is the ABAP query? Why is it used?

Answer:

ABAP Query is a powerful tool that allows you to create simple reports without having to code them. In most cases, a central Functional Group and a User Group shape an ABAP query first. The functional group can also be bent in a logical table orientation. The user group is allocated to the functional group once the functional group is apparent. The final step is to create ambiguity about the functional group that has been created.

SQ01 and SQ02 are ABAP transactions that are used to conduct ABAP queries. It can be used to create three different types of reports:

  • Statistical Report: Statistics reports are reports that use arithmetic functions like regular, percentages, and so on.
  • Ranked Reports: Ranked Lists used for logical purposes, ranked lists are utilized.
  • Basic Reports: Reports with basic formatting but no intended fields are called basic lists.

Question 10: What are DataSet.Clone and DataSet.Copy?

Answer

Dataset.clone(): 

  • Dataset.clone() duplicates a dataset’s structure but not its contents.
  • It duplicates only the structure, not the data.

Dataset.copy():

  • It performs a deep copy of the dataset using Dataset.copy().
  • Both the data and the structure are duplicated.

Question 11: Find non-repeating characters in a string using C and C++

Question 12: What are namespace and assembly?

Answer:

Namespace: A namespace is a logical collection of related classes that can be utilized by other languages that target the Microsoft.Net framework. It’s primarily used to keep your lessons organized. Namespaces are a way of arranging type names to avoid name clashes.

Assembly: An assembly is a collection of types and capital that are designed to work together and form a coherent functional entity. It’s a.exe or.dll-based production unit. It is an operation component and versioning unit that also holds all metadata about types, modules, and other fundamentals in the manifest structure.

Question 13: Define the linked list.

Answer:

A linked list is a linear data structure in which each component is a separate object.

Question 14: What are the differences between the interface and the abstract?

Answer:

Interface:

  • An Interface can only be used to enhance the functionality of another interface.
  • An Interface can extend an unlimited number of interfaces at once and only has abstract methods
  • Declaring a method as an abstract is an optional step.
  • Only one public static final variable is allowed.
  • Only abstract methods are allowed.

Abstract Class:

  • An abstract class can be used to extend a concrete class.
  • An abstract can only extend one or more abstract classes at a time.
  • It’s possible to have both protected and abstract public methods.
  • To declare a method as an abstract, it must have an abstract.
  • Any access specifiers can be used on a static, final variable.
  • Both abstract and tangible methods are possible.

Question 15: Write a program to print the power of a number?

Question 16: What do you mean by the database?

Answer:

A relational database is a database that provides linked information across multiple tables and allows you to query data from multiple tables at the same time.

Question 17: Define polymorphism.

Answer:

Polymorphism is an object-oriented programming concept that relates to a variable’s ability to function. Polymorphism in a programming language allows developers to plan in broad terms rather than programming in detail.

Question 18: What are the differences between Delete and Truncate SQL commands?

SQL Delete SQL Truncate
The Delete command can be used to delete all or a subset of rows from a table using a Where clause.The truncate command gets rid of all the rows in a table. We cannot use a Where clause in this situation.
It is a DML command.It is a DDL command.
The Delete command creates a record in the transaction log for each deleted row.For each eliminated row, the truncate command does not create a transaction log entry.
The SQL Delete statement locks each record in a table that needs to be deleted.The SQL Truncate command creates a table and a page lock in order to remove all records.
It consumes more transaction log space than the truncate command does.It takes up less space in the transaction log than the truncate command.
The Delete command takes longer to execute than the Truncate command.It is more efficient than the delete command.
It removes rows one by one.It deletes all rows from a table by relocating the pages used to store the table data.
It keeps the identity rather than resetting it to the seed value.The Truncate command returns the identity to its original seed value.

Question 19: Define static functions.

Answer:

A static purpose is a class member function that can be invoked even if the class’s objective hasn’t been set. Apart from static variables, a function cannot accept any variable of its class.

Question 20: Write the recursive C function to count the number of nodes present in a binary tree.

int count (struct node* t){  
    if(t){  
        int l, r;  
        l = count(t->left);  
        r=count(t->right);  
        return (1+l+r);  
    }  
    else{  
        return 0;  
    }  
}