LTIMindtree
10+ Interview Questions and Answers
Q1. What is the Difference between C & C++?
C is a procedural programming language while C++ is a multi-paradigm programming language with object-oriented features.
C is a procedural programming language while C++ supports both procedural and object-oriented programming.
C does not have classes and objects like C++.
C++ has features like inheritance, polymorphism, and encapsulation which are not present in C.
C++ allows function overloading and operator overloading which are not supported in C.
C++ has a richer standard lib...read more
Q2. What is the difference between type casting and type conversion
Type casting is changing the data type of a variable, while type conversion is converting a value from one data type to another.
Type casting is done explicitly by the programmer, while type conversion can be done implicitly by the compiler.
Type casting can lead to loss of data if the new data type cannot hold the original value, while type conversion may involve data loss depending on the conversion.
Example of type casting: int x = (int) 3.14;
Example of type conversion: int y...read more
Q3. What function used to change string to int
The function used to change a string to an integer is parseInt() in JavaScript.
parseInt() function is used to convert a string to an integer in JavaScript.
It takes in the string as an argument and returns the integer value.
Example: parseInt('10') will return 10.
Q4. basic sql query to find the maximum salary of an employee from a table
Use SQL query with MAX() function to find the maximum salary of an employee from a table.
Use SELECT MAX(salary) FROM employees;
Make sure to replace 'employees' with the actual table name where employee salaries are stored.
Q5. Does C program run without main function
No, a C program cannot run without a main function.
The main function is the entry point of a C program, without it the program cannot be executed.
The main function is mandatory in C programming as it tells the compiler where to start the execution of the program.
Attempting to compile a C program without a main function will result in a compilation error.
Q6. What are the types of Exceptions
Types of Exceptions include checked, unchecked, and errors.
Checked Exceptions: Must be either caught or declared in the method signature. Example: IOException
Unchecked Exceptions: Not required to be caught or declared. Example: NullPointerException
Errors: Irrecoverable issues that should not be caught or handled. Example: OutOfMemoryError
Q7. Mention few object oriented programming languages
Some object oriented programming languages include Java, C++, Python, and C#.
Java
C++
Python
C#
Q8. explain method overloading and overriding
Method overloading is having multiple methods in the same class with the same name but different parameters. Method overriding is redefining a method in a subclass with the same signature as in the superclass.
Method overloading allows multiple methods with the same name but different parameters in the same class.
Method overriding involves redefining a method in a subclass with the same signature as in the superclass.
Example of method overloading: void print(int num) and void ...read more
Q9. sdlc model,what is agile
Agile is a software development methodology that emphasizes flexibility, collaboration, and iterative development.
Agile focuses on delivering working software in short iterations
It values customer collaboration and responding to change over following a strict plan
Agile teams work closely together and adapt to changing requirements
Popular Agile frameworks include Scrum, Kanban, and Extreme Programming (XP)
Q10. Lifecycle components of threads
Lifecycle components of threads include creation, scheduling, execution, and termination.
Creation: Threads are created using the 'Thread' class in Java or 'pthread_create' function in C.
Scheduling: Threads are scheduled by the operating system based on priority and other factors.
Execution: Threads execute the code specified in their run method or function.
Termination: Threads can terminate either by completing their task or by being explicitly stopped.
Q11. types of testing
Types of testing include unit testing, integration testing, system testing, and acceptance testing.
Unit testing focuses on testing individual components or modules of a system.
Integration testing involves testing how different components work together.
System testing tests the entire system as a whole.
Acceptance testing is done to ensure the system meets the requirements of the end users.
Q12. room for relocation
I am open to relocation for the right opportunity.
I am willing to relocate for the job if necessary.
I am flexible and open to new experiences in different locations.
I have relocated in the past for internships or other opportunities.
I understand the importance of being geographically mobile in the engineering field.
Q13. Explain OOPS
OOPS stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.
OOPS is based on the four main principles: Encapsulation, Inheritance, Polymorphism, and Abstraction.
Encapsulation is the process of hiding the implementation details of an object from the outside world.
Inheritance allows a class to inherit properties and methods from another class.
Polymorphism allows objects to take on multiple forms or behaviors.
Abstraction is th...read more
More about working at LTIMindtree
Top HR Questions asked in null
Interview Process at null
Top Graduate Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month