i
Cognizant
Filter interviews by
SQL query to create a table for storing employee details including ID, name, position, and salary.
Use CREATE TABLE statement to define a new table.
Specify the table name, e.g., 'Employees'.
Define columns with data types, e.g., 'EmployeeID INT PRIMARY KEY'.
Include other fields like 'Name VARCHAR(100)', 'Position VARCHAR(50)', and 'Salary DECIMAL(10, 2)'.
Example query: CREATE TABLE Employees (EmployeeID INT PRIMARY ...
Use Python to check for prime numbers by testing divisibility from 2 to the square root of the number.
A prime number is greater than 1 and has no divisors other than 1 and itself.
Use a loop to check divisibility for numbers from 2 to the square root of the target number.
Example: To check if 7 is prime, test divisibility by 2, 3 (up to sqrt(7)).
Use a function to encapsulate the logic for reusability.
Example functio...
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...
Web development involves creating and maintaining websites through various stages, including planning, design, coding, and testing.
1. Planning: Define the website's purpose and target audience. Example: A portfolio site for showcasing work.
2. Design: Create wireframes and mockups to visualize layout. Example: Using tools like Figma or Adobe XD.
3. Development: Write code using languages like HTML, CSS, and JavaScri...
What people are saying about Cognizant
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...
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...
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...
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 ...
I appeared for an interview in Jan 2025, where I was asked the following questions.
Use Python to check for prime numbers by testing divisibility from 2 to the square root of the number.
A prime number is greater than 1 and has no divisors other than 1 and itself.
Use a loop to check divisibility for numbers from 2 to the square root of the target number.
Example: To check if 7 is prime, test divisibility by 2, 3 (up to sqrt(7)).
Use a function to encapsulate the logic for reusability.
Example function: de...
SQL query to create a table for storing employee details including ID, name, position, and salary.
Use CREATE TABLE statement to define a new table.
Specify the table name, e.g., 'Employees'.
Define columns with data types, e.g., 'EmployeeID INT PRIMARY KEY'.
Include other fields like 'Name VARCHAR(100)', 'Position VARCHAR(50)', and 'Salary DECIMAL(10, 2)'.
Example query: CREATE TABLE Employees (EmployeeID INT PRIMARY KEY, ...
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# )
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.
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
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.
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 245 interview experiences
Difficulty level
Duration
based on 898 reviews
Rating in categories
Associate
71k
salaries
| ₹5.3 L/yr - ₹12.5 L/yr |
Programmer Analyst
56.1k
salaries
| ₹3.5 L/yr - ₹7.3 L/yr |
Senior Associate
55.4k
salaries
| ₹9.9 L/yr - ₹23.5 L/yr |
Senior Processing Executive
30k
salaries
| ₹2.2 L/yr - ₹6.5 L/yr |
Technical Lead
18.5k
salaries
| ₹6 L/yr - ₹21.2 L/yr |
TCS
Infosys
Wipro
Accenture