Filter interviews by
Top trending discussions
I applied via Company Website and was interviewed in Jan 2023. There were 2 interview rounds.
The basics of OOP (Object-Oriented Programming) pillars are encapsulation, inheritance, and polymorphism.
Encapsulation: Bundling data and methods together in a class to hide implementation details.
Inheritance: Creating new classes from existing ones, inheriting their properties and behaviors.
Polymorphism: Objects of different classes can be treated as objects of a common superclass, allowing flexibility and extensibili
A copy constructor is a special constructor that creates a new object by copying the values of another object.
Copy constructor is used to create a new object with the same values as an existing object.
It is passed by reference to avoid unnecessary object copying, which can be expensive.
Copy constructor cannot be void because it needs to return the newly created object.
Array is a contiguous block of memory, while linked list is a collection of nodes connected by pointers.
Array has constant time access to elements, while linked list requires traversing the list.
Array has fixed size, while linked list can dynamically grow or shrink.
Insertion and deletion in array is expensive, while linked list can easily insert or delete nodes.
Array is suitable for random access, while linked list is
To check if three points are colinear, calculate the slope between each pair of points and compare them.
Calculate the slope between the first two points using the formula: slope = (y2 - y1) / (x2 - x1)
Calculate the slope between the second and third points using the same formula
If the slopes between all pairs of points are equal, then the points are colinear
To determine if a point is inside or outside a circle, calculate the distance between the point and the center of the circle.
Calculate the distance between the point and the center of the circle using the distance formula: sqrt((x2 - x1)^2 + (y2 - y1)^2)
If the distance is less than the radius of the circle, the point is inside the circle. If it is equal to the radius, the point is on the circle. Otherwise, it is outsid
The resultant of two vectors can be found by adding the magnitudes and finding the direction using trigonometry.
To find the magnitude of the resultant, use the Pythagorean theorem: magnitude = sqrt(a^2 + b^2)
To find the direction of the resultant, use trigonometry: direction = atan(b/a)
If the vectors are given in terms of their components, add the corresponding components to find the resultant
Yes, a child class can point to a base class.
In object-oriented programming, a child class can inherit from a base class and use its methods and properties.
A child class can also override the methods of the base class to provide its own implementation.
Polymorphism allows a child class object to be treated as a base class object, enabling it to point to the base class.
This is useful for code reusability and creating a h
posted on 1 Nov 2024
Basic math questions
Function overloading is having multiple functions with the same name but different parameters. Function overriding is redefining a base class function in a derived class.
Function overloading allows multiple functions with the same name but different parameters.
Function overriding involves redefining a base class function in a derived class with the same name and parameters.
Example of function overloading: void print(in...
posted on 12 Sep 2024
I am a passionate software developer with experience in Java, Python, and web development.
Experienced in Java, Python, and web development technologies
Strong problem-solving skills
Familiar with Agile methodologies
Worked on projects involving database management systems
Continuous learner and always looking to improve
I applied via Naukri.com and was interviewed before Dec 2021. There were 3 interview rounds.
posted on 17 Oct 2024
posted on 16 Apr 2024
I applied via Campus Placement and was interviewed in Mar 2024. There were 3 interview rounds.
Basic level of Q asked based on math ,english and programming
Easy to medium level 7 Q asked and minimum 4 is compulsory for crack next round
I applied via Company Website and was interviewed in Jan 2023. There were 2 interview rounds.
The basics of OOP (Object-Oriented Programming) pillars are encapsulation, inheritance, and polymorphism.
Encapsulation: Bundling data and methods together in a class to hide implementation details.
Inheritance: Creating new classes from existing ones, inheriting their properties and behaviors.
Polymorphism: Objects of different classes can be treated as objects of a common superclass, allowing flexibility and extensibili
A copy constructor is a special constructor that creates a new object by copying the values of another object.
Copy constructor is used to create a new object with the same values as an existing object.
It is passed by reference to avoid unnecessary object copying, which can be expensive.
Copy constructor cannot be void because it needs to return the newly created object.
Array is a contiguous block of memory, while linked list is a collection of nodes connected by pointers.
Array has constant time access to elements, while linked list requires traversing the list.
Array has fixed size, while linked list can dynamically grow or shrink.
Insertion and deletion in array is expensive, while linked list can easily insert or delete nodes.
Array is suitable for random access, while linked list is
To check if three points are colinear, calculate the slope between each pair of points and compare them.
Calculate the slope between the first two points using the formula: slope = (y2 - y1) / (x2 - x1)
Calculate the slope between the second and third points using the same formula
If the slopes between all pairs of points are equal, then the points are colinear
To determine if a point is inside or outside a circle, calculate the distance between the point and the center of the circle.
Calculate the distance between the point and the center of the circle using the distance formula: sqrt((x2 - x1)^2 + (y2 - y1)^2)
If the distance is less than the radius of the circle, the point is inside the circle. If it is equal to the radius, the point is on the circle. Otherwise, it is outsid
The resultant of two vectors can be found by adding the magnitudes and finding the direction using trigonometry.
To find the magnitude of the resultant, use the Pythagorean theorem: magnitude = sqrt(a^2 + b^2)
To find the direction of the resultant, use trigonometry: direction = atan(b/a)
If the vectors are given in terms of their components, add the corresponding components to find the resultant
Yes, a child class can point to a base class.
In object-oriented programming, a child class can inherit from a base class and use its methods and properties.
A child class can also override the methods of the base class to provide its own implementation.
Polymorphism allows a child class object to be treated as a base class object, enabling it to point to the base class.
This is useful for code reusability and creating a h
posted on 30 May 2024
Assistant Manager
480
salaries
| ₹4.5 L/yr - ₹13 L/yr |
Manager
336
salaries
| ₹6.4 L/yr - ₹16.1 L/yr |
Senior Engineer
330
salaries
| ₹3.5 L/yr - ₹10 L/yr |
Senior Manager
310
salaries
| ₹10 L/yr - ₹23 L/yr |
Assistant General Manager
167
salaries
| ₹12 L/yr - ₹31 L/yr |
Infosys
Wipro
HCLTech
Tech Mahindra