i
Cognizant
Filter interviews by
A foreign key is a column or set of columns in a database table that refers to the primary key of another table.
It is used to establish a relationship between two tables in a database.
It ensures referential integrity by preventing invalid data from being inserted into the table.
It can be used to join tables together to retrieve data from multiple tables.
For example, a customer table may have a foreign key that ref...
Polymorphism refers to the ability of an object to take on multiple forms.
Compile-time polymorphism: Function overloading and operator overloading
Run-time polymorphism: Virtual functions and function overriding
Ad-hoc polymorphism: Function templates and operator overloading
Parametric polymorphism: Templates in C++ and generics in Java
DELETE and TRUNCATE are SQL commands used to remove data from a table.
DELETE removes specific rows from a table based on a condition
TRUNCATE removes all rows from a table
DELETE is slower than TRUNCATE
TRUNCATE resets the identity of the table
DELETE can be rolled back, but TRUNCATE cannot
Multiple inheritance can be achieved through interfaces or mixins.
Interfaces allow a class to implement multiple interfaces, each with its own set of methods and properties.
Mixins are classes that contain a set of methods and properties that can be added to other classes.
Example of interfaces: class MyClass implements Interface1, Interface2 {}
Example of mixins: class MyClass extends Mixin1(Mixin2(MyBaseClass)) {}
What people are saying about Cognizant
Collection framework is a set of classes and interfaces that provide a standard way to store and manipulate groups of objects.
It provides interfaces like List, Set, Queue, etc. to store and manipulate collections of objects.
It also provides classes like ArrayList, HashSet, PriorityQueue, etc. that implement these interfaces.
It simplifies the process of storing, searching, sorting, and manipulating collections of o...
Static and final are both keywords in Java with different meanings.
Static is used to define a class-level variable or method that can be accessed without creating an instance of the class.
Final is used to define a constant value that cannot be changed once assigned.
Static can also be used to define a block of code that is executed only once when the class is loaded.
Final can also be used to define a class or metho...
Object oriented programming is a programming paradigm that uses objects to represent and manipulate data.
Object oriented programming focuses on creating reusable code by organizing data and behavior into objects.
Objects have attributes (data) and methods (behavior) that can be accessed and modified through the object's interface.
Inheritance allows objects to inherit attributes and methods from parent objects, prom...
Exceptions in Java can be handled using try-catch blocks.
Enclose the code that may throw an exception in a try block.
Catch the exception using catch block and handle it appropriately.
Finally block can be used to execute code regardless of whether an exception is thrown or not.
Multiple catch blocks can be used to handle different types of exceptions.
Throwing an exception can be done using the throw keyword.
I applied via Campus Placement and was interviewed in Jun 2022. There were 2 interview rounds.
Object oriented programming is a programming paradigm that uses objects to represent and manipulate data.
Object oriented programming focuses on creating reusable code by organizing data and behavior into objects.
Objects have attributes (data) and methods (behavior) that can be accessed and modified through the object's interface.
Inheritance allows objects to inherit attributes and methods from parent objects, promoting...
Static and final are both keywords in Java with different meanings.
Static is used to define a class-level variable or method that can be accessed without creating an instance of the class.
Final is used to define a constant value that cannot be changed once assigned.
Static can also be used to define a block of code that is executed only once when the class is loaded.
Final can also be used to define a class or method tha...
Exceptions in Java can be handled using try-catch blocks.
Enclose the code that may throw an exception in a try block.
Catch the exception using catch block and handle it appropriately.
Finally block can be used to execute code regardless of whether an exception is thrown or not.
Multiple catch blocks can be used to handle different types of exceptions.
Throwing an exception can be done using the throw keyword.
Collection framework is a set of classes and interfaces that provide a standard way to store and manipulate groups of objects.
It provides interfaces like List, Set, Queue, etc. to store and manipulate collections of objects.
It also provides classes like ArrayList, HashSet, PriorityQueue, etc. that implement these interfaces.
It simplifies the process of storing, searching, sorting, and manipulating collections of object...
Polymorphism refers to the ability of an object to take on multiple forms.
Compile-time polymorphism: Function overloading and operator overloading
Run-time polymorphism: Virtual functions and function overriding
Ad-hoc polymorphism: Function templates and operator overloading
Parametric polymorphism: Templates in C++ and generics in Java
Multiple inheritance can be achieved through interfaces or mixins.
Interfaces allow a class to implement multiple interfaces, each with its own set of methods and properties.
Mixins are classes that contain a set of methods and properties that can be added to other classes.
Example of interfaces: class MyClass implements Interface1, Interface2 {}
Example of mixins: class MyClass extends Mixin1(Mixin2(MyBaseClass)) {}
DELETE and TRUNCATE are SQL commands used to remove data from a table.
DELETE removes specific rows from a table based on a condition
TRUNCATE removes all rows from a table
DELETE is slower than TRUNCATE
TRUNCATE resets the identity of the table
DELETE can be rolled back, but TRUNCATE cannot
A foreign key is a column or set of columns in a database table that refers to the primary key of another table.
It is used to establish a relationship between two tables in a database.
It ensures referential integrity by preventing invalid data from being inserted into the table.
It can be used to join tables together to retrieve data from multiple tables.
For example, a customer table may have a foreign key that refers t...
I applied via LinkedIn and was interviewed before Jul 2020. There were 4 interview rounds.
I applied via Company Website and was interviewed before Oct 2020. There were 3 interview rounds.
I applied via Amcat and was interviewed before Jul 2021. There were 2 interview rounds.
Refer R S Agarwal book for apptitude
A C program to perform arithmetic operations on fractional numbers.
Use float or double data type to store fractional numbers.
Use scanf() to take input from the user.
Perform arithmetic operations like addition, subtraction, multiplication, and division.
Use printf() to display the result.
What people are saying about Cognizant
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
I applied via LinkedIn and was interviewed before Jan 2021. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed before Feb 2021. There were 3 interview rounds.
1.It covers all aptitude topics, and English sentences
2.Essay writing
3.Coding
I applied via Naukri.com and was interviewed before Mar 2021. There were 3 interview rounds.
I come from a supportive family that values education and hard work, which has greatly influenced my career path in technology.
Parents: My parents are both educators, instilling a love for learning and curiosity in me from a young age.
Siblings: I have a younger sister who is pursuing a degree in computer science, and we often collaborate on tech projects together.
Family Values: Our family emphasizes the importance of p...
I bring a unique blend of technical skills, problem-solving abilities, and a passion for innovation that aligns with your team's goals.
Strong technical skills: Proficient in languages like Python and Java, demonstrated by developing a web application that improved user engagement by 30%.
Problem-solving mindset: Successfully resolved a critical bug in a production system under tight deadlines, ensuring minimal downtime.
...
I expect a competitive salary based on my skills, experience, and industry standards, ideally in the range of $X to $Y.
Research industry standards: For example, Glassdoor or Payscale can provide insights into average salaries for similar roles.
Consider your experience: If you have 5 years of experience, you might expect a higher salary than someone just starting.
Factor in location: Salaries can vary significantly based...
I excel in problem-solving and teamwork, but I sometimes struggle with time management under tight deadlines.
Strength: Strong problem-solving skills - I enjoy tackling complex coding challenges, like optimizing algorithms for better performance.
Strength: Effective teamwork - I thrive in collaborative environments, having successfully led a project with cross-functional teams.
Weakness: Time management - I occasionally u...
Yes, I have technical certifications and I am proficient in multiple programming languages and development tools.
I have certifications in Java and Python
I am proficient in Java, Python, C++, and JavaScript
I have used development tools such as Eclipse, Visual Studio Code, and PyCharm
I applied via Company Website and was interviewed before Jan 2021. There were 2 interview rounds.
I applied via Job Portal and was interviewed before Dec 2019. There was 1 interview round.
based on 1 review
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