Mphasis
20+ Bharti Airtel Interview Questions and Answers
Q1. Familiar languages you are going through What you learn in lockdown
I am familiar with Java, Python, and JavaScript. During lockdown, I learned React and Node.js.
Familiar with Java, Python, and JavaScript
Learned React and Node.js during lockdown
Q2. 2 programming questions Find the 2nd greatest in 2 different ways
Find the 2nd greatest in 2 different ways
Sort the array and return the second largest element
Use a loop to find the largest element and then find the second largest element
Use a priority queue to find the second largest element
Q3. Write the program to find smaller value from 3 input
Program to find the smallest value from 3 inputs.
Compare the first two inputs and store the smaller value.
Compare the stored value with the third input and update if smaller.
Return the final stored value as the smallest value.
Q4. what is meant by polymorphism? abstarction code
Polymorphism in programming refers to the ability of a function or method to behave differently based on the object it is called with.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example: Inheritance in Java allows a subclass to override a method of its superclass, exhibiting polymorphic behavior.
Q5. Difference between functional and non functional testing
Functional testing checks if the software functions as expected, while non-functional testing checks other aspects like performance and usability.
Functional testing focuses on the specific functions of the software.
Non-functional testing focuses on aspects like performance, usability, security, and scalability.
Examples of functional testing include unit testing, integration testing, and system testing.
Examples of non-functional testing include load testing, stress testing, an...read more
Q6. Linear and binary search algorithm
Linear search checks each element in a list sequentially, while binary search divides the list in half at each step.
Linear search has a time complexity of O(n), while binary search has a time complexity of O(log n).
Linear search is used for unsorted lists, while binary search is used for sorted lists.
Example: Linear search - searching for a name in a phone book. Binary search - searching for a word in a dictionary.
Q7. GD-one time use plastic should be banned r not
Yes, GD-one time use plastic should be banned.
One-time use plastic is harmful to the environment and wildlife.
Alternatives like reusable bags and containers are readily available.
Many countries and cities have already implemented bans on single-use plastics.
Reducing plastic waste is crucial for the health of our planet.
Q8. Difference between smoke and sanity testing
Smoke testing is a quick test to check if the basic functionalities of the software are working, while sanity testing is a more thorough test to check if the specific features are working as expected.
Smoke testing is a shallow and wide test, while sanity testing is a deep and narrow test.
Smoke testing is done to ensure the stability of the system, while sanity testing is done to ensure the rationality of the system.
Smoke testing is usually done before sanity testing in the te...read more
Q9. How to create the table
To create a table, use SQL CREATE TABLE statement with column names and data types.
Specify the table name after CREATE TABLE keyword
List column names and data types separated by commas inside parentheses
Add any constraints like PRIMARY KEY or FOREIGN KEY if needed
Example: CREATE TABLE customers (id INT PRIMARY KEY, name VARCHAR(50), email VARCHAR(100))
Q10. What is overloading?
Overloading is the ability to have multiple methods with the same name but different parameters.
Overloading allows for more flexibility in method naming and usage.
The methods must have different parameters, such as different data types or different numbers of parameters.
Example: public void print(int num) and public void print(String str) are both methods with the same name but different parameters.
Overloading is determined at compile time based on the method signature.
Q11. Write a prime number program
A program to print all prime numbers up to a given limit.
Iterate through numbers up to the limit
For each number, check if it is divisible by any number from 2 to its square root
If it is not divisible, print it as a prime number
Q12. What is overriding
Overriding is a feature in object-oriented programming where a subclass provides its own implementation of a method that is already defined in its superclass.
Overriding allows a subclass to provide a specific implementation of a method that is already defined in its superclass.
The method signature (name, parameters, and return type) must be the same in both the superclass and subclass.
The subclass method must have the same or a more accessible access modifier than the supercl...read more
Q13. Decorators and it's functionalty
Decorators in software engineering are functions that modify the behavior of other functions or methods.
Decorators are used to add functionality to existing functions without modifying their code.
They are commonly used in Python to add additional behavior to functions or classes.
Decorators are implemented using the @ symbol followed by the decorator function name.
They can be used for logging, authentication, caching, and more.
Example: @staticmethod decorator in Python marks a...read more
Q14. What is abstraction?
Abstraction is the process of hiding complex implementation details and exposing only the necessary information.
Abstraction is a way to manage complexity by breaking down a system into smaller, more manageable parts.
It allows us to focus on the essential features of a system while ignoring the non-essential details.
Abstraction can be achieved through the use of interfaces, abstract classes, and encapsulation.
For example, a car can be abstracted as a vehicle with certain prope...read more
Q15. Whats is java and polymorphism
Java is a popular programming language used for developing various applications. Polymorphism is a concept in object-oriented programming where a single function or method can be used to perform different actions based on the object it is called with.
Java is a high-level, class-based, object-oriented programming language.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism in Java: compile-time (m...read more
Q16. What is oops concepts
Object-oriented programming concepts that focus on objects and classes for better code organization and reusability.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Ability of a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing only the necessary features of an object.
Q17. What is inheritance?
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows code reusability and saves time and effort in writing new code.
The existing class is called the parent or base class, and the new class is called the child or derived class.
The child class inherits all the properties and methods of the parent class and can also add its own unique properties and methods.
For example, a class 'An...read more
Q18. Explain about OOPS concepts
OOPS concepts are the principles of Object-Oriented Programming that help in designing and implementing software systems.
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 and showing only necessary information
Objects - instances of classes that en...read more
Q19. Explain about STLC and SDLC
STLC focuses on testing software while SDLC focuses on developing software.
STLC (Software Testing Life Cycle) involves planning, designing, executing, and reporting on tests.
SDLC (Software Development Life Cycle) involves planning, designing, coding, testing, and maintenance of software.
STLC ensures that the software meets quality standards, while SDLC ensures that the software meets user requirements.
Example: In STLC, test cases are designed and executed to validate the func...read more
Q20. Explain data binding in angular
Data binding in Angular is a way to automatically synchronize data between the model and the view.
Data binding allows you to bind data from the component to the view and vice versa.
There are two types of data binding in Angular: one-way binding and two-way binding.
One-way binding updates the view when the model changes, while two-way binding updates both the model and the view simultaneously.
Example: {{ data }} in HTML template binds data from the component to the view.
Q21. challeneges faced in project
Tight deadlines, communication issues, technical constraints
Tight deadlines required efficient time management and prioritization
Communication issues among team members led to misunderstandings and delays
Technical constraints like limited resources or outdated technology posed challenges
Q22. Coding quastion using java 8
Implement a function to filter out strings starting with a specific letter using Java 8.
Use Java 8 Stream API to filter the strings based on a condition.
Use lambda expressions to define the filtering condition.
Use the 'filter' method of Stream to apply the filtering condition.
Q23. Search from chrome
To search from Chrome, type your query in the address bar or use the search bar on the new tab page.
Type your query in the address bar and press enter
Use the search bar on the new tab page
You can also use keyboard shortcuts like Ctrl+T to open a new tab and Ctrl+L to focus on the address bar
Q24. Superclass of java
Object class is the superclass of all classes in Java.
Object class provides basic functionalities like toString(), equals(), hashCode() etc.
All classes in Java directly or indirectly inherit from Object class.
Object class is located in java.lang package.
Example: String class extends Object class.
Q25. memory managment in Python
Python uses automatic memory management through garbage collection.
Python uses reference counting to keep track of memory usage and automatically deallocates memory when an object is no longer referenced.
Python also utilizes a garbage collector to reclaim memory from objects with circular references or when reference counting alone is not sufficient.
Memory management in Python is handled by the Python memory manager, which is responsible for allocating and deallocating memory...read more
Top HR Questions asked in Bharti Airtel
Interview Process at Bharti Airtel
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month