
LTIMindtree

20+ LTIMindtree Graduate Engineer Trainee (Get) Interview Questions and Answers for Freshers
Q1. Can we write int func() and int func(int a) in a single class?
Yes, we can write int func() and int func(int a) in a single class.
We can overload the function with different parameters.
The function with no parameter is called default constructor.
Example: class MyClass { int func(); int func(int a); };
Both functions can have different implementations.
Q2. How to insert a java code in (html tags) 9
You can insert Java code in HTML tags using the <script> tag.
Use the <script> tag to insert Java code within HTML tags.
Make sure to properly close the <script> tag.
Example: <script>System.out.println('Hello, World!');</script>
Q3. structure of an html file or DOM structure use of meta tag what are hooks in react how to import index.css in index.js router in react where is styling done and some other basic web dev questions
Basic web development questions covering HTML structure, meta tags, React hooks, CSS import, and routing.
HTML file structure includes <html>, <head>, and <body> tags
Meta tags provide metadata about the HTML document
React hooks are functions that let you use state and other React features in functional components
To import index.css in index.js, use 'import './index.css';' at the top of the index.js file
React Router is a standard library for routing in React applications
Styling...read more
Q4. Write a program to display prime numbers from 1-35
Program to display prime numbers from 1-35
Loop through numbers 1-35
Check if each number is prime
If prime, display the number
Q5. Is method overloading possible in c++?
Yes, method overloading is possible in C++.
Method overloading allows multiple functions with the same name but different parameters.
The compiler determines which function to call based on the number and types of arguments passed.
Example: void print(int x), void print(float x), void print(char x) can all be overloaded.
Overloading can also be done with operators like +, -, *, /, etc.
Overloading improves code readability and reduces code duplication.
Q6. BE project, what softwares you will use?
I will use software tools that are relevant to my BE project.
The software tools I will use will depend on the nature of my BE project.
For example, if my project involves designing a circuit, I may use software like LTSpice or Proteus.
If my project involves programming, I may use software like Visual Studio or Eclipse.
I will also use software for data analysis and visualization, such as MATLAB or Python.
Ultimately, I will choose software tools that will help me achieve the goa...read more
Q7. what is linked list difference between calloc and malloc
A linked list is a data structure that consists of a sequence of nodes, each containing a reference to the next node.
Linked lists are useful for dynamic data structures where the size of the data can change during runtime.
They can be singly linked or doubly linked.
Traversal of a linked list is done by starting at the head node and following the next pointers until the end is reached.
C++ example: struct Node { int data; Node* next; };
Java example: class Node { int data; Node n...read more
Q8. Does schema consist more than 1 database. Example
Yes, a schema can consist of multiple databases.
A schema is a logical container for database objects.
Multiple databases can be grouped under a single schema.
For example, a company may have separate databases for HR, finance, and sales, but all under the same schema.
This allows for easier management and organization of the databases.
Q9. What is polymorphism?
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects of different classes to be treated as if they are of the same class.
It can be achieved through method overloading or method overriding.
Example: A shape class can have different subclasses like circle, square, triangle, etc. and all can be treated as shapes.
Polymorphism helps in achieving code reusability and flexibility.
Q10. Wap to reverse a string in C
A program to reverse a string in C language.
Declare a character array to store the string.
Use a loop to read the string from the user.
Use another loop to reverse the string.
Print the reversed string.
Q11. Write a program to reverse a string
A program to reverse a string
Create an empty string to store the reversed string
Loop through the original string from the end to the beginning
Add each character to the new string
Return the new string
Q12. What is exception handling in java
Exception handling is a mechanism to handle runtime errors in Java programs.
Exceptions are objects that represent errors or exceptional conditions that occur during program execution.
Java provides try-catch-finally blocks to handle exceptions.
The try block contains the code that might throw an exception.
The catch block catches the exception and handles it.
The finally block contains code that is executed regardless of whether an exception is thrown or not.
Example: try { //code...read more
Q13. explain oops concepts Difference between list and tuple
OOPs concepts include inheritance, polymorphism, encapsulation, and abstraction. List is mutable while tuple is immutable.
OOPs concepts: inheritance, polymorphism, encapsulation, abstraction
List: mutable, can be modified after creation (e.g. [1, 2, 3])
Tuple: immutable, cannot be modified after creation (e.g. (1, 2, 3))
Q14. difference between structure and classes
Structures are used for storing data while classes are used for storing data and methods.
Structures are value types while classes are reference types.
Structures do not support inheritance while classes do.
Structures are used for simple data types while classes are used for complex data types.
Example of structure: struct Employee { int id; string name; }
Example of class: class Car { string make; string model; void start() { //code to start the car } }
Q15. What is SQL
SQL is a programming language used to manage and manipulate relational databases.
SQL stands for Structured Query Language
It is used to create, modify, and query databases
Common commands include SELECT, INSERT, UPDATE, and DELETE
Examples of database management systems that use SQL include MySQL, Oracle, and Microsoft SQL Server
Q16. What is schema
Schema is a blueprint or structure that defines the organization of data in a database.
Schema is used to define the structure of a database.
It includes information about tables, columns, data types, relationships, and constraints.
It helps ensure data consistency and integrity.
Examples of schema include SQL Server, Oracle, and MySQL.
Schema can also refer to the organization of data in XML or JSON documents.
Q17. Features of OOPS
OOPS is a programming paradigm that focuses on objects and their interactions.
Encapsulation: bundling of data and methods that operate on that data
Inheritance: ability of a class to inherit properties and methods from a parent class
Polymorphism: ability of objects to take on multiple forms or behaviors
Abstraction: hiding of complex implementation details from the user
Examples: Java, C++, Python
Q18. What are String Tokenizers
String tokenizers are tools used to break a string into smaller parts based on a specified delimiter.
String tokenizers are commonly used in programming to parse strings and extract relevant information.
They can be used to split a sentence into individual words, or to extract specific data from a structured text.
For example, in Java, the StringTokenizer class can be used to break a string into tokens based on a specified delimiter.
Q19. what is struct and unions
Structs and unions are data structures in C programming used to group different data types under a single name.
Structs allow you to group different data types together under a single name. For example, a struct 'Person' can have fields like name, age, and gender.
Unions are similar to structs but they share the same memory location for all its members. Only one member can contain a value at a time. For example, a union 'Data' can have fields like int, float, and char, but only...read more
Q20. Prime numbers in a range
Finding prime numbers within a given range.
A prime number is a number that is only divisible by 1 and itself.
Start with the first number in the range and check if it is prime.
If it is prime, add it to the list of prime numbers.
If it is not prime, move on to the next number.
Repeat until all numbers in the range have been checked.
Examples: Prime numbers between 1 and 10 are 2, 3, 5, and 7.
Examples: Prime numbers between 20 and 30 are 23 and 29.
Q21. OOP in python study properly
OOP in Python refers to the concept of using classes and objects to organize and structure code.
Python supports object-oriented programming (OOP) principles such as encapsulation, inheritance, and polymorphism.
Classes are used to define objects, which can have attributes (variables) and methods (functions).
Inheritance allows a class to inherit attributes and methods from another class.
Polymorphism enables objects to be treated as instances of their parent class or their own c...read more
Q22. Namespaces in python
Namespaces in Python are a way to organize and group related code together.
Namespaces prevent naming conflicts and improve code readability.
Python uses a hierarchical namespace structure.
Namespaces can be created using modules, classes, and functions.
The 'global' and 'local' keywords are used to access variables in different namespaces.
Examples of namespaces in Python include built-in, global, and local namespaces.
More about working at LTIMindtree




Top HR Questions asked in LTIMindtree Graduate Engineer Trainee (Get) for Freshers
Interview Process at LTIMindtree Graduate Engineer Trainee (Get) for Freshers

Top Graduate Engineer Trainee (Get) Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

