i
Cognizant
Filter interviews by
Fetch data from an API and display it in Angular, using a custom pipe to format IDs.
Use HttpClient to make API calls: `this.http.get(apiUrl).subscribe(data => this.data = data);`
Create a custom pipe using Angular CLI: `ng generate pipe idFormatter`.
In the pipe, implement `transform(value: number): string` to convert ID to 1**8 format.
Use the pipe in the template: `{{ id | idFormatter }}` to display formatted ID...
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 ...
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.
Migrating Angular versions involves planning, updating dependencies, and testing for compatibility issues.
1. Review Angular's official update guide for version-specific instructions.
2. Update Angular CLI globally using: npm install -g @angular/cli@latest.
3. Update local project dependencies using: ng update @angular/core @angular/cli.
4. Check for deprecated APIs and replace them with recommended alternatives.
5. Ru...
What people are saying about Cognizant
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)
Challenges faced during Angular migration, creating reducers in ngrx, flattening arrays, and sorting.
Challenges during migration: compatibility issues, deprecated features, breaking changes.
Creating reducers in ngrx: define actions, create reducer function, update state immutably.
Flattening arrays: use flat() method, recursion, or spread operator.
Sorting arrays: use sort() method with custom comparator function.
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.
Pipes in Angular are used for transforming data in templates.
Pipes are used to format data before displaying it in the view.
Angular provides built-in pipes like DatePipe, UpperCasePipe, LowerCasePipe, etc.
Custom pipes can also be created for specific formatting needs.
Pipes can be chained together for complex transformations.
Example: {{ birthday | date:'dd/MM/yyyy' }} will format the birthday date.
Fetch data from an API and display it in Angular, using a custom pipe to format IDs.
Use HttpClient to make API calls: `this.http.get(apiUrl).subscribe(data => this.data = data);`
Create a custom pipe using Angular CLI: `ng generate pipe idFormatter`.
In the pipe, implement `transform(value: number): string` to convert ID to 1**8 format.
Use the pipe in the template: `{{ id | idFormatter }}` to display formatted IDs.
Challenges faced during Angular migration, creating reducers in ngrx, flattening arrays, and sorting.
Challenges during migration: compatibility issues, deprecated features, breaking changes.
Creating reducers in ngrx: define actions, create reducer function, update state immutably.
Flattening arrays: use flat() method, recursion, or spread operator.
Sorting arrays: use sort() method with custom comparator function.
I appeared for an interview in Jan 2025.
Pipes in Angular are used for transforming data in templates.
Pipes are used to format data before displaying it in the view.
Angular provides built-in pipes like DatePipe, UpperCasePipe, LowerCasePipe, etc.
Custom pipes can also be created for specific formatting needs.
Pipes can be chained together for complex transformations.
Example: {{ birthday | date:'dd/MM/yyyy' }} will format the birthday date.
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...
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.
Migrating Angular versions involves planning, updating dependencies, and testing for compatibility issues.
1. Review Angular's official update guide for version-specific instructions.
2. Update Angular CLI globally using: npm install -g @angular/cli@latest.
3. Update local project dependencies using: ng update @angular/core @angular/cli.
4. Check for deprecated APIs and replace them with recommended alternatives.
5. Run uni...
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)
I applied via Company Website and was interviewed before Jun 2021. There were 2 interview rounds.
First round was coding as well as aptitude done together went well I guess focusing on codes helps a lot.
I applied via Campus Placement and was interviewed in Apr 2020. There was 1 interview round.
Yes, I am open to relocating for the right opportunity that aligns with my career goals and personal growth.
Relocation can provide exposure to new technologies and methodologies.
I am excited about the prospect of working in diverse teams and cultures.
For example, moving to a tech hub like San Francisco could enhance my career.
I understand the challenges of relocating, but I see them as opportunities for growth.
I bring a unique blend of skills, experience, and passion for software development that aligns perfectly with your team's goals.
Proven experience in developing scalable applications, such as a recent project where I improved performance by 30%.
Strong problem-solving skills demonstrated through my contributions to open-source projects, enhancing functionality and fixing bugs.
Excellent teamwork and communication abilitie...
I applied via LinkedIn and was interviewed before Jul 2021. There were 2 interview rounds.
Easy logical questions
basic quant
Easy level coding questions
Counting frequency of alphabets
Multiple dispatch is not a feature of Redux. It can be achieved using middleware or custom logic.
Middleware like redux-thunk or redux-saga can be used to dispatch multiple actions based on a single action.
Custom logic can be implemented in the reducer to handle multiple actions based on a single action type.
For example, a single 'ADD_ITEM' action can trigger multiple actions like 'UPDATE_TOTAL', 'UPDATE_HISTORY', etc.
M...
I applied via Campus Placement and was interviewed before Jun 2020. There were 3 interview rounds.
Some of the top questions asked at the Cognizant Angular Frontend Developer interview -
based on 5 interview experiences
Difficulty level
Duration
based on 1 review
Rating in categories
Associate
73k
salaries
| ₹5.3 L/yr - ₹12.5 L/yr |
Programmer Analyst
56.1k
salaries
| ₹3.5 L/yr - ₹7.3 L/yr |
Senior Associate
53k
salaries
| ₹10.6 L/yr - ₹23.4 L/yr |
Senior Processing Executive
29.8k
salaries
| ₹2.2 L/yr - ₹6.5 L/yr |
Technical Lead
18.1k
salaries
| ₹6 L/yr - ₹25.6 L/yr |
TCS
Infosys
Wipro
Accenture