i
Cognizant
Filter interviews by
I took a structured approach to learn data science.
Started with learning the basics of statistics and programming
Took online courses and read books on data science
Practiced on real-world datasets and participated in Kaggle competitions
Joined a data science community to learn from others and share knowledge
Continuously updated my skills and knowledge through online resources and attending conferences
Code to print prime numbers in right angle triangle format.
Create a function to check if a number is prime or not.
Use nested loops to print the numbers in right angle triangle format.
Start with the first prime number and keep adding prime numbers to the triangle.
Example: 2 3 5 7 11 13 17 19 23 29
The 4 pillars of OOP are Abstraction, Encapsulation, Inheritance, and Polymorphism.
Abstraction: Hiding implementation details and showing only necessary information.
Encapsulation: Binding data and functions together to prevent external interference.
Inheritance: Creating new classes from existing ones, inheriting properties and methods.
Polymorphism: Using a single interface to represent multiple types of objects.
Java does not support multiple inheritance, but it can be achieved using interfaces.
Java supports multiple interface inheritance.
A class can implement multiple interfaces.
Interfaces can have default methods with implementation.
Example: class A implements Interface1, Interface2 {}
What people are saying about Cognizant
Checked exceptions are checked at compile-time while unchecked exceptions are not.
Checked exceptions are those that are checked at compile-time and must be handled by the programmer using try-catch or throws clause.
Unchecked exceptions are those that are not checked at compile-time and can occur at runtime, such as NullPointerException or ArrayIndexOutOfBoundsException.
Checked exceptions are usually used for recov...
Answering questions related to prime numbers, reversing strings, and palindrome numbers.
A prime number is a number that is only divisible by 1 and itself, such as 2, 3, 5, 7, 11, etc.
To reverse a string, you can use a loop to iterate through the string and append each character to a new string in reverse order.
Palindrome numbers are numbers that read the same backward as forward, such as 121, 1331, 1441, etc.
Exception handling in Java involves using try-catch-finally blocks to handle and manage exceptions.
Java provides a mechanism to handle runtime errors called exceptions.
The try block is used to enclose the code that might throw an exception.
The catch block is used to catch and handle the exception.
The finally block is used to execute code regardless of whether an exception occurred or not.
There are two types of exc...
I applied via Campus Placement
It was the Basic aptitude round
I applied via Campus Placement and was interviewed in Aug 2022. There were 2 interview rounds.
There were 5 Coding questions. Out of 5, 2 Questions were based on SQL query with scheme diagram and 3 normal coding questions with problem statement. (Can use any language).
Answering Java related questions on encapsulation and inheritance.
Encapsulation is implemented in Java by declaring the variables as private and providing public getter and setter methods.
Java supports single, multiple and hierarchical inheritance.
Single inheritance is when a class extends only one parent class.
Multiple inheritance is when a class extends more than one parent class using interfaces.
Hierarchical inherit...
Exception handling in Java involves using try-catch-finally blocks to handle and manage exceptions.
Java provides a mechanism to handle runtime errors called exceptions.
The try block is used to enclose the code that might throw an exception.
The catch block is used to catch and handle the exception.
The finally block is used to execute code regardless of whether an exception occurred or not.
There are two types of exceptio...
I took a structured approach to learn data science.
Started with learning the basics of statistics and programming
Took online courses and read books on data science
Practiced on real-world datasets and participated in Kaggle competitions
Joined a data science community to learn from others and share knowledge
Continuously updated my skills and knowledge through online resources and attending conferences
I applied via Campus Placement and was interviewed in Jul 2022. There were 4 interview rounds.
There was a coding test
3 questions on programming and 2 questions from DBMS query part.
In DBMS question ER diagram is presented and tables. We need to find the output using our knowledge on query ( Oracle or MYSQL) databases.
Tip: Good Knowledge of Joins in required for DBMS.
Coding is easy to moderate level. ( One out of 3 can be moderately hard)
I applied via Campus Placement and was interviewed in Nov 2022. There were 4 interview rounds.
They give 3coding question which are medium difficult and ask to write 2sqlqueries
It was easy and questions were asked about time and work
Second round was communication assessment it was also easy
I applied via Campus Placement and was interviewed before Jul 2022. There were 3 interview rounds.
Questions were from basic mathematical reasoning, output questions & english
I applied via Campus Placement and was interviewed in Aug 2022. There were 2 interview rounds.
Coding Test-There were 2 coding question which can be solve in any language and 2 sql queries
next was communication round - where they check your speaking and listening skills also few aptitute question.
every round is an elimination round.
Answering questions related to prime numbers, reversing strings, and palindrome numbers.
A prime number is a number that is only divisible by 1 and itself, such as 2, 3, 5, 7, 11, etc.
To reverse a string, you can use a loop to iterate through the string and append each character to a new string in reverse order.
Palindrome numbers are numbers that read the same backward as forward, such as 121, 1331, 1441, etc.
I applied via Campus Placement and was interviewed before May 2023. There were 3 interview rounds.
2 coding question and 3 sql query
Communication assement test
I applied via Campus Placement and was interviewed in Mar 2022. There were 3 interview rounds.
There were three coding questions and two sql releated question.
Ist round is simple and easy and round 2 communication assessment and round 3 interview inwhich mostly dbms questions asked
Some of the top questions asked at the Cognizant GenC Elevate interview -
based on 7 interview experiences
Difficulty level
Duration
based on 2 reviews
Rating in categories
Associate
73k
salaries
| ₹5.3 L/yr - ₹12.5 L/yr |
Programmer Analyst
56.2k
salaries
| ₹3.5 L/yr - ₹7.3 L/yr |
Senior Associate
55.1k
salaries
| ₹9.7 L/yr - ₹23.4 L/yr |
Senior Processing Executive
29.8k
salaries
| ₹2.3 L/yr - ₹6.5 L/yr |
Technical Lead
19k
salaries
| ₹6 L/yr - ₹21 L/yr |
TCS
Infosys
Wipro
Accenture