i
Cognizant
Filter interviews by
This code removes duplicate characters from a string while preserving the original order.
Use a set to track seen characters. Example: 'hello' -> 'helo'.
Iterate through the string and build a new string with unique characters.
Consider using a list to maintain order before joining it back to a string.
Example code in Python: 'result = ''.join(sorted(set(input_string), key=input_string.index))'.
Java 8 introduced significant enhancements over Java 7, including lambdas, streams, and new date/time APIs.
Lambda Expressions: Java 8 introduced lambda expressions, allowing for more concise and functional-style programming. Example: (x, y) -> x + y.
Streams API: Java 8 added the Streams API for processing sequences of elements, enabling operations like filter, map, and reduce. Example: list.stream().filter(x -&...
OOPs concepts are the fundamental principles of Object-Oriented Programming.
Abstraction: Hiding implementation details and showing only necessary information.
Encapsulation: Binding data and functions together to protect data from outside interference.
Inheritance: Acquiring properties and behavior of a parent class by a child class.
Polymorphism: Ability of an object to take many forms or have multiple behaviors.
A variable is a container that holds a value. A structure is a collection of variables of different data types.
Variables are declared with a data type and a name, and can be assigned a value.
Structures are declared using the 'struct' keyword and can contain variables of different data types.
Example code: int age = 25; struct person { char name[20]; int age; float height; };
Variables and structures are fundamental ...
What people are saying about Cognizant
A program using recursion
Recursion is a technique where a function calls itself to solve a problem
It involves a base case and a recursive case
Examples include factorial, Fibonacci sequence, and binary search
Design patterns are reusable solutions to common software problems in Java.
Design patterns provide a standard way to solve common problems in software development.
They help in creating flexible, reusable, and maintainable code.
Examples of design patterns include Singleton, Factory, Observer, and Decorator.
Design patterns can be categorized into three types: creational, structural, and behavioral.
Synchronization in Java is the process of controlling access to shared resources by multiple threads.
Synchronization is achieved using the synchronized keyword in Java.
It ensures that only one thread can access the shared resource at a time.
Synchronization can be applied to methods or blocks of code.
It is used to prevent race conditions and ensure thread safety.
Example: synchronized void myMethod() { //code }
Examp...
An array is a collection of elements of the same data type, stored in contiguous memory locations.
Arrays can be one-dimensional or multi-dimensional
Elements in an array can be accessed using their index
Arrays can be initialized with values at declaration
Examples: int[] numbers = {1, 2, 3}; char[] letters = {'a', 'b', 'c'};
Arrays have a fixed size once declared
A stack is a data structure that follows the Last In First Out (LIFO) principle.
Elements are added to the top of the stack and removed from the top.
Common operations include push (add element) and pop (remove element).
Stacks are used in programming for function calls, expression evaluation, and memory management.
Data type in C refers to the type of data that a variable can hold.
C has basic data types like int, float, char, double, etc.
Derived data types like arrays, pointers, structures, and unions can also be created.
Each data type has a specific range of values that it can hold.
Data types can be modified using type qualifiers like const, volatile, etc.
I applied via Campus Placement
Code to design a Pattern , Fibonacci series, palindrome.. and others.
I applied via Recruitment Consulltant and was interviewed in Jan 2024. There was 1 interview round.
I applied via Job Fair and was interviewed in Feb 2023. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Jun 2023. There were 4 interview rounds.
There will be verbal , English test etc we need to cross the best score to move on to round 2
There will 2coding question will be given need to clear with in given time and should pass all the test cases
Common aptitude questions ,that include all fields,if you prepare well you can crack this test,and maybe some basic programming questions can ask
OOPs concepts are the fundamental principles of Object-Oriented Programming.
Abstraction: Hiding implementation details and showing only necessary information.
Encapsulation: Binding data and functions together to protect data from outside interference.
Inheritance: Acquiring properties and behavior of a parent class by a child class.
Polymorphism: Ability of an object to take many forms or have multiple behaviors.
I applied via Recruitment Consulltant and was interviewed in Nov 2022. There were 2 interview rounds.
I applied via Campus Placement and was interviewed in Sep 2022. There were 3 interview rounds.
Interview questions for Software Engineer position
Datatypes: int, float, string, boolean, etc.
Predefined functions: print(), len(), range(), etc.
List is linear while tree is hierarchical. Trees are preferred for faster search and insertion.
Class is a blueprint while object is an instance of a class.
Inheritance is a way to create a new class from an existing class while polymorphism is the ability of an object to take o...
Sort and search an array in software engineering interview
Use built-in sorting functions or implement your own sorting algorithm
For searching, use linear search or binary search depending on the size of the array
Consider the time complexity of the sorting and searching algorithms
Ensure the code is efficient and handles edge cases properly
Yes
Yes, I am open to relocation for the right opportunity.
Yes, I am comfortable with shift-wise working.
Strengths: Strong problem-solving skills, excellent programming abilities, and effective communication skills.
Weaknesses: Sometimes I can be overly detail-oriented and perfectionistic.
Biggest achievement: Successfully leading a team to develop and launch a complex software project within a tight deadline.
I appeared for an interview before Mar 2024.
Aptitude test to test analytical skills
2 questions based on building logic
Some of the top questions asked at the Cognizant Software Engineer interview for freshers -
The duration of Cognizant Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 14 interview experiences
Difficulty level
Duration
based on 1.2k 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