
Tech Mahindra


10+ Tech Mahindra Associate Software Engineer Interview Questions and Answers for Freshers
Q1. 1) What is NullPointerExceprion and give me a example?
NullPointerException is a runtime exception that occurs when a program tries to access or use an object reference that is null.
It is a common exception in Java programming.
It is thrown when a program attempts to use an object reference that has not been initialized.
It indicates that there is an attempt to access or invoke a method on an object that is null.
Example: String str = null; str.length();
Q2. 2) Can you call the base class method without creating an instance?
Yes, by using the super() method in the derived class.
super() method calls the base class method
Derived class must inherit from the base class
Example: class Derived(Base): def method(self): super().method()
Q3. 5) What are access specifiers and what is their significance?
Access specifiers define the level of access to class members. They ensure encapsulation and data hiding in object-oriented programming.
Access specifiers are keywords used in class definitions to specify the access level of class members.
There are three access specifiers in C++: public, private, and protected.
Public members can be accessed from anywhere in the program, while private members can only be accessed within the class.
Protected members can be accessed within the cla...read more
Q4. 3) What is call by value and call hy refarance?
Call by value and call by reference are two ways of passing arguments to a function.
Call by value passes a copy of the argument value to the function.
Call by reference passes a reference to the memory location of the argument.
Call by value is used for simple data types like int, float, etc.
Call by reference is used for complex data types like arrays, structures, etc.
Q5. 4) How does C++ support Polymorphism?
C++ supports polymorphism through virtual functions and inheritance.
Polymorphism allows objects of different classes to be treated as if they were of the same class.
Virtual functions are declared in the base class and overridden in the derived class.
Dynamic binding is used to determine which function to call at runtime.
Examples include function overriding, templates, and operator overloading.
Q6. What is opps nd briefly about oops and variables
OOPs stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects.
OOPs is a way of organizing and designing code around objects
Variables are used to store data within an object
In OOPs, variables are also known as properties or attributes
Variables can have different access modifiers like public, private, protected
Example: A car object can have properties like color, model, and speed
Q7. What is IOT, angular js, give some live examples
IOT is the interconnection of physical devices, while AngularJS is a JavaScript framework for web development.
IOT enables devices to communicate and exchange data, leading to automation and efficiency in various industries.
Examples of IOT include smart homes, wearable devices, and industrial automation.
AngularJS simplifies web development by providing a framework for building dynamic and responsive web applications.
Examples of AngularJS include Google Analytics, PayPal, and T...read more
Q8. Uses of turbine and types of turbinew
Turbines are used to convert kinetic energy into mechanical energy. There are various types of turbines such as steam, gas, and hydraulic.
Turbines are used in power generation, aviation, and marine propulsion.
Steam turbines are used in thermal power plants to generate electricity.
Gas turbines are used in aircraft engines and power plants.
Hydraulic turbines are used in hydroelectric power plants.
Wind turbines are used to generate electricity from wind energy.
Turbines can be cl...read more
Q9. Tell me avkit yourslef
I am a dedicated and passionate software engineer with experience in Java, Python, and web development.
Experienced in Java, Python, and web development technologies
Strong problem-solving skills
Excellent communication and teamwork abilities
Q10. Terms and condition
Terms and conditions are rules and guidelines that users must agree to follow in order to use a service or product.
Terms and conditions outline the rights and responsibilities of both the user and the company providing the service.
They often include information about privacy policies, payment terms, and usage restrictions.
Users are typically required to agree to the terms and conditions before using a service or product.
Examples of terms and conditions can be found on website...read more
Top HR Questions asked in Tech Mahindra Associate Software Engineer for Freshers
Interview Process at Tech Mahindra Associate Software Engineer for Freshers

Top Associate Software Engineer Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

