Filter interviews by
I applied via Walk-in and was interviewed in Aug 2023. There was 1 interview round.
Object-oriented programming (OOP) is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
OOP focuses on creating objects that interact with each other to solve problems.
Key principles of OOP include encapsulation, inheritance, and polymorphism.
Example: In OOP, a car object can have properties like color and speed, and methods like accel
A constructor is a special type of method that is automatically called when an object is created.
Constructors have the same name as the class they belong to.
They are used to initialize the object's state.
Constructors do not have a return type.
Example: public class Car { public Car() { // constructor code here } }
Inheritance is a mechanism in object-oriented programming where a class inherits properties and behaviors from another class.
Allows a class to reuse code from another class
Establishes a parent-child relationship between classes
Derived class inherits attributes and methods from base class
Promotes code reusability and reduces redundancy
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
Polymorphism allows for flexibility and reusability in code.
Examples include method overriding in inheritance and interface implementation.
For example, a Shape superclass can have subclasses like Circle and Square that override a calculateArea method.
Top trending discussions
Improving quality of education in India
Investing in teacher training and development
Increasing access to technology and digital resources
Encouraging parental involvement in education
Promoting vocational education and skill development
Addressing the issue of inadequate infrastructure and resources
I know multiple programming languages including Java, Python, and C++.
Proficient in Java with experience in developing web applications using Spring framework
Familiar with Python for data analysis and machine learning
Experience in C++ for developing high-performance applications
Also familiar with HTML, CSS, and JavaScript for front-end development
Class is a blueprint for creating objects, encapsulation is the process of hiding data and methods within a class.
Class is a template or blueprint that defines the properties and behaviors of an object.
Encapsulation is the process of bundling data and methods together within a class, hiding the internal details from the outside world.
Other features of OOP include inheritance, polymorphism, and abstraction.
Inheritance a...
Program to find the sum of squares of each term of Fibonacci series
Generate Fibonacci series using loop or recursion
Calculate square of each term
Add all squares to get the sum
I would like to join Cognizant because of its reputation as a leading global technology and consulting company.
Cognizant has a strong presence in the industry and is known for its innovative solutions.
I am impressed by Cognizant's commitment to digital transformation and its ability to deliver value to clients.
The company offers excellent career growth opportunities and a supportive work environment.
Cognizant's diverse...
I am excited to join your company because of its reputation for excellent customer service and commitment to employee development.
I have researched your company and am impressed by the positive reviews from customers and employees alike.
I am excited about the opportunity to work with a team that values collaboration and innovation.
I am confident that I can contribute to the company's success by utilizing my strong comm...
based on 1 interview
Interview experience
based on 12 reviews
Rating in categories
Software Developer
4
salaries
| ₹1.8 L/yr - ₹2.2 L/yr |
HR Manager
4
salaries
| ₹1.8 L/yr - ₹2.4 L/yr |
Python Developer
4
salaries
| ₹2.1 L/yr - ₹4 L/yr |
DOT NET Developer
4
salaries
| ₹2 L/yr - ₹3 L/yr |
Software Tester
3
salaries
| ₹1.5 L/yr - ₹2.5 L/yr |
TCS
Infosys
Wipro
HCLTech