i
Cognizant
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Clear (1)
I was interviewed in Jan 2025.
Closure in JavaScript allows a function to access variables from its outer scope even after the function has finished executing.
Closure is created when a function is defined within another function and the inner function references variables from the outer function.
The inner function maintains a reference to the outer function's scope even after the outer function has finished executing.
Closures are commonly used in ev...
What people are saying about Cognizant
A directive in Angular is a class with a @Directive decorator that allows you to attach behavior to elements in the DOM.
Directives are used to manipulate the DOM in Angular applications.
There are three types of directives in Angular: component, structural, and attribute directives.
Examples of directives include ngIf, ngFor, and ngStyle.
Cognizant interview questions for designations
I applied via Superset and was interviewed before Oct 2022. There were 2 interview rounds.
Fibonacci sequence code in python
Data structure in Python refers to the way data is organized and stored for efficient access and manipulation.
Data structures in Python include lists, tuples, dictionaries, sets, and arrays.
Each data structure has its own characteristics and use cases.
For example, lists are mutable and ordered, while sets are unordered and do not allow duplicates.
List is mutable and can be modified, while tuple is immutable and cannot be changed.
List can be modified by adding, removing, or changing elements.
Tuple cannot be modified once it is created.
Example: list = [1, 2, 3], tuple = (1, 2, 3)
Get interview-ready with Top Cognizant Interview Questions
posted on 5 Aug 2024
I applied via Recruitment Consulltant and was interviewed in Jul 2024. There was 1 interview round.
Directives are used to add behavior to existing DOM elements, while components are used to create new custom elements.
Directives are used to manipulate the behavior of existing DOM elements, such as changing their appearance or adding event listeners.
Components are used to create custom elements with their own templates, styles, and behavior.
Directives can be structural (like ngIf and ngFor) or attribute-based (like ng...
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope during compilation.
Variable and function declarations are hoisted to the top of their scope, regardless of where they are declared in the code.
Only the declarations are hoisted, not the initializations.
Function declarations are hoisted before variable declarations.
Design patterns are reusable solutions to common problems in software design.
Design patterns help in creating maintainable, scalable, and efficient code.
They provide a common language for developers to communicate about solutions to recurring problems.
Examples of design patterns include Singleton, Factory, Observer, and Strategy patterns.
ReplaySubject is a type of Subject in RxJS that records multiple values and replays them to new subscribers.
ReplaySubject is a type of Subject in RxJS
It records multiple values and replays them to new subscribers
It has a buffer size that determines how many values to replay
Time queue in API refers to managing requests in a sequential order.
Time queue ensures that API requests are processed in the order they are received.
It helps in preventing overload on the server by limiting the number of concurrent requests.
Examples include using promises or async/await in JavaScript to handle API calls sequentially.
NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
I applied via LinkedIn and was interviewed in May 2023. There were 2 interview rounds.
Lazy loading is a technique used to defer loading of non-essential resources until they are actually needed.
Lazy loading helps improve the initial loading time of a web application by only loading essential resources upfront.
In Angular, lazy loading is achieved by creating separate modules for different parts of the application and loading them on demand.
Lazy loading can be implemented using the loadChildren property i...
Constructor is used to initialize class properties, NgOnInit() is a lifecycle hook used to perform initialization after Angular has initialized the component.
Constructor is a TypeScript feature used to create and initialize class properties.
NgOnInit() is an Angular lifecycle hook that is called after Angular has initialized the component.
Constructor is called before NgOnInit() during component initialization.
Example: C...
Two-way binding is a feature in Angular that allows automatic synchronization of data between the model and the view.
Two-way binding allows changes in the model to be reflected in the view and vice versa
It simplifies the process of updating the UI based on user input or changes in the data model
Example: Using ngModel directive in Angular forms to bind input fields to model properties
Observable is a stream that allows multiple values over time, while Promise is a single value that resolves or rejects.
Observable can handle multiple values over time, while Promise can only handle a single value.
Observable is lazy, meaning it won't execute until it is subscribed to, while Promise is eager and executes immediately.
Observable is cancellable, allowing you to unsubscribe, while Promise is not cancellable ...
A pipe in Angular is used to transform data before displaying it in the template.
Pipes are used in templates to format data before displaying it to the user
There are built-in pipes like DatePipe, UpperCasePipe, LowerCasePipe, etc.
Custom pipes can also be created by implementing the PipeTransform interface
Pipes can be chained together to perform multiple transformations on the data
based on 5 interviews
1 Interview rounds
based on 1 review
Rating in categories
Associate
72.3k
salaries
| ₹5.1 L/yr - ₹16 L/yr |
Programmer Analyst
55.6k
salaries
| ₹2.4 L/yr - ₹9.6 L/yr |
Senior Associate
48.6k
salaries
| ₹9 L/yr - ₹27.4 L/yr |
Senior Processing Executive
28.9k
salaries
| ₹1.8 L/yr - ₹9 L/yr |
Technical Lead
17.6k
salaries
| ₹5.9 L/yr - ₹24.9 L/yr |
TCS
Infosys
Wipro
Accenture