i
Cognizant
Filter interviews by
OOPs concepts include encapsulation, inheritance, polymorphism, and abstraction, essential for modular programming.
Encapsulation: Bundling data and methods in a class. Example: A 'Car' class with properties like 'color' and methods like 'drive()'.
Inheritance: Deriving new classes from existing ones. Example: 'ElectricCar' inherits from 'Car', adding features like 'batteryCapacity'.
Polymorphism: Ability to use a si...
Inheritance is a fundamental OOP concept allowing a class to inherit properties and methods from another class, promoting code reuse.
Base Class: The class from which properties and methods are inherited is called the base class (or parent class). For example, 'Animal' can be a base class.
Derived Class: The class that inherits from the base class is called the derived class (or child class). For instance, 'Dog' can...
A leap year occurs every four years, except for years divisible by 100 but not by 400, ensuring calendar accuracy.
Basic Rule: A year is a leap year if it is divisible by 4.
Century Exception: Years divisible by 100 are not leap years unless they are also divisible by 400.
Examples: 2020 is a leap year (divisible by 4), while 1900 is not (divisible by 100 but not by 400).
Correct Calculation: To check if 2000 is a lea...
Polymorphism allows objects to be treated as instances of their parent class, enabling method overriding and dynamic method resolution.
Method Overriding: A subclass can provide a specific implementation of a method that is already defined in its superclass. Example: A class 'Animal' with a method 'sound()', and subclasses 'Dog' and 'Cat' overriding 'sound()' to bark and meow respectively.
Method Overloading: Multip...
What people are saying about Cognizant
Public, private, and hybrid clouds differ in ownership, accessibility, and deployment models, catering to various business needs.
Public Cloud: Services offered over the internet, accessible to anyone (e.g., AWS, Google Cloud).
Private Cloud: Exclusive cloud infrastructure for a single organization, enhancing security and control (e.g., VMware, OpenStack).
Hybrid Cloud: Combines public and private clouds, allowing da...
Python is my preferred language due to its simplicity, versatility, and strong community support, making it ideal for various projects.
Easy to learn and read: Python's syntax is clear and concise, making it accessible for beginners. For example, a simple 'print' statement is intuitive.
Versatile applications: Python is used in web development (Django, Flask), data analysis (Pandas, NumPy), and machine learning (Ten...
Data types define the kind of data a variable can hold, influencing operations and memory usage.
Primitive data types include integers, floats, and characters. Example: int age = 25;
Composite data types include arrays and structures. Example: int numbers[] = {1, 2, 3};
Data types help in memory allocation and type checking during compilation.
Different programming languages have different data types. Example: Python ...
AD domain server is a server that manages user accounts and permissions within a Windows Active Directory domain.
AD domain server stores user account information such as usernames, passwords, and group memberships.
It authenticates and authorizes users to access resources within the domain.
It allows for centralized management of network resources and security policies.
Examples: Windows Server, Active Directory Doma...
0 and 1 are integers and their data type is typically 'int' in programming languages.
Data type of 0 and 1 is 'int' in most programming languages like C, C++, Java, etc.
In some languages like Python, 0 and 1 are considered as 'bool' type for boolean values.
In SQL, 0 and 1 can be used as values for boolean data types like 'BIT'.
Arrays are a collection of elements of the same data type stored in contiguous memory locations.
Arrays have a fixed size determined at the time of declaration.
Elements in an array can be accessed using their index position.
Example: string[] names = {"Alice", "Bob", "Charlie"};
I applied via Campus Placement and was interviewed in Nov 2024. There were 3 interview rounds.
Easy-medium questions were asked in this
The coding questions are mostly easy-moderate level difficulty and they ask questions based on specific clusters selected ( java, python, c# )
OOP concepts can be seen in real life through objects, classes, inheritance, and polymorphism, enhancing code organization and reusability.
1. Classes and Objects: A class is like a blueprint (e.g., Car class) and an object is an instance (e.g., myCar).
2. Inheritance: A subclass (e.g., ElectricCar) inherits properties from a superclass (e.g., Car), promoting code reuse.
3. Polymorphism: A method can perform different tas...
I applied via Campus Placement and was interviewed in Dec 2024. There were 3 interview rounds.
The first round was the Aptitude Round, during which most candidates were eliminated.
Three coding questions, one SQL task, and one development-related task.
Print all even number indexes from an array of strings.
Iterate through the array and check if the index is even using modulo operator.
Print the element at even indexes.
I applied via Campus Placement
It's Gec next Aptitude with English and reasoning
I appeared for an interview in Jul 2024.
GOT GENc offer of 4LPA
>>>Communication round was online it included multiple sections which needs skills of reading, listening, and speaking.(give this round and online coding round seriously as it will decide your interview package GENc,GENc pro,GENc Next).
Correct HTML, CSS, and JS code to meet specified requirements in a Programmer Analyst Trainee interview.
Check for missing or incorrect HTML tags, e.g., <div> instead of <div/>.
Ensure CSS styles are applied correctly, e.g., using class selectors.
Validate JavaScript functions for proper syntax and logic.
Use browser developer tools to debug and test changes.
Ensure responsive design with CSS media queries.
I applied via Campus Placement and was interviewed in Nov 2024. There were 3 interview rounds.
Aptitude test include communication and aptitude test
Coding test according to cluster
OOPs pillars refer to the four main concepts of Object-Oriented Programming: Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Abstraction: Hiding the complex implementation details and showing only the necessary features of an object.
Polymorphism...
Developed a web application for tracking inventory and sales data.
Used HTML, CSS, and JavaScript for front-end development.
Utilized PHP and MySQL for back-end development.
Implemented user authentication and authorization features.
Integrated data visualization tools for reporting purposes.
I applied via Campus Placement and was interviewed in Nov 2024. There was 1 interview round.
A simple Python program that calculates the sum of two numbers and displays the result.
Define a function to add two numbers: `def add(a, b): return a + b`.
Get user input for the two numbers: `num1 = int(input('Enter first number: '))`.
Call the function and display the result: `print('Sum:', add(num1, num2))`.
I appeared for an interview in Feb 2025.
Easy questions ,if you have good knowledge in +2 ,I think that will help you.
OOPs concepts include encapsulation, inheritance, polymorphism, and abstraction, essential for modular programming.
Encapsulation: Bundling data and methods in a class. Example: A 'Car' class with properties like 'color' and methods like 'drive()'.
Inheritance: Deriving new classes from existing ones. Example: 'ElectricCar' inherits from 'Car', adding features like 'batteryCapacity'.
Polymorphism: Ability to use a single ...
C is a procedural programming language, while C++ is an object-oriented language that extends C with classes and objects.
C is a procedural language; C++ supports both procedural and object-oriented programming.
C uses functions as the primary building blocks; C++ uses classes and objects.
C does not support function overloading; C++ allows function overloading.
C has no built-in support for data abstraction; C++ provides ...
A constructor is a special method used to initialize objects in a class, setting initial values for attributes.
Constructors are called when an object is created.
Types of constructors include: Default Constructor, Parameterized Constructor, Copy Constructor.
Example of Default Constructor: `class MyClass { MyClass() { } }`.
Example of Parameterized Constructor: `class MyClass { MyClass(int x) { this.x = x; } }`.
Example of...
I appeared for an interview in Aug 2024.
Basic aptitude questions from Quant, maths and reasoning
I applied via Campus Placement and was interviewed in Aug 2024. There were 2 interview rounds.
Math, reasoning, english
Some of the top questions asked at the Cognizant Programmer Analyst Trainee interview -
The duration of Cognizant Programmer Analyst Trainee interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 244 interview experiences
Difficulty level
Duration
based on 892 reviews
Rating in categories
Associate
73.2k
salaries
| ₹5.1 L/yr - ₹14.4 L/yr |
Programmer Analyst
56.2k
salaries
| ₹2 L/yr - ₹8 L/yr |
Senior Associate
52.8k
salaries
| ₹9 L/yr - ₹28.8 L/yr |
Senior Processing Executive
29.8k
salaries
| ₹1.4 L/yr - ₹9 L/yr |
Technical Lead
18.1k
salaries
| ₹6 L/yr - ₹25.5 L/yr |
TCS
Infosys
Wipro
Accenture