i
Cognizant
Filter interviews by
Components can communicate using @Input and @Output decorators, services, and event emitters.
Use @Input decorator to pass data from parent to child component
Use @Output decorator and EventEmitter to emit events from child to parent component
Use services to share data between components
Implementing a login page involves creating a form for users to input their credentials and validating them against a database.
Create a login form with fields for username and password
Use Angular's form validation to ensure required fields are filled out
Send the user's credentials to a backend server for authentication
Upon successful authentication, redirect the user to the main application page
This C code demonstrates a simple program that prints 'Hello, World!' to the console.
Include the standard input-output header: #include <stdio.h>
Define the main function: int main() { ... }
Use printf to output text: printf('Hello, World!\n');
Return 0 to indicate successful execution: return 0;
Using services or @Input/@Output decorators to share data between components
Use services to create a shared data service that can be injected into multiple components
Use @Input decorator to pass data from parent to child component
Use @Output decorator with EventEmitter to emit events and pass data from child to parent component
What people are saying about Cognizant
Http request in Angular is used to fetch data from a server or API.
Use HttpClient module to make HTTP requests in Angular
Subscribe to the Observable returned by the HTTP request to get the data
Handle errors using catchError operator
Set headers, query parameters, and request body as needed
Pipe is a feature in Angular that allows transforming data before displaying it in the view.
Pipes are used to format and filter data in Angular templates.
They can be used to transform data types, apply currency and date formatting, and filter data based on certain criteria.
Pipes can be chained together to perform multiple transformations on the same data.
Custom pipes can also be created to perform specific transfo...
Promises are used for asynchronous operations that return a single value, while Observables are used for streams of data.
Promises return a single value, while Observables can return multiple values over time.
Observables can be cancelled, while Promises cannot.
Observables have operators like map, filter, and reduce, while Promises do not.
Observables are lazy, meaning they only execute when subscribed to, while Prom...
Services in Angular are singleton objects that provide specific functionality and can be injected into components or other services.
Services are used to share data and functionality across components.
They are typically created using the @Injectable() decorator.
Example: A logging service can be created to log messages from various components.
Services can be provided at different levels: root, module, or component.
T...
Dependency injection in Angular allows for better code organization and testing by managing service instances efficiently.
Dependency Injection (DI) is a design pattern used to implement IoC (Inversion of Control).
In Angular, DI allows components to receive their dependencies from an injector rather than creating them directly.
Types of DI in Angular include Constructor Injection, Property Injection, and Method Inje...
Implementing a login page involves creating a form for users to input their credentials and validating them against a database.
Create a login form with fields for username and password
Use Angular's form validation to ensure required fields are filled out
Send the user's credentials to a backend server for authentication
Upon successful authentication, redirect the user to the main application page
Components can communicate using @Input and @Output decorators, services, and event emitters.
Use @Input decorator to pass data from parent to child component
Use @Output decorator and EventEmitter to emit events from child to parent component
Use services to share data between components
I applied via Company Website and was interviewed in Sep 2024. There was 1 interview round.
Using services or @Input/@Output decorators to share data between components
Use services to create a shared data service that can be injected into multiple components
Use @Input decorator to pass data from parent to child component
Use @Output decorator with EventEmitter to emit events and pass data from child to parent component
Http request in Angular is used to fetch data from a server or API.
Use HttpClient module to make HTTP requests in Angular
Subscribe to the Observable returned by the HTTP request to get the data
Handle errors using catchError operator
Set headers, query parameters, and request body as needed
I appeared for an interview in Oct 2024, where I was asked the following questions.
I appeared for an interview in Feb 2024.
I applied via Campus Placement and was interviewed before Dec 2023. There were 2 interview rounds.
An aptitude test was conducted for 90 minutes where all the modules were covered and it was pretty easy.
This C code demonstrates a simple program that prints 'Hello, World!' to the console.
Include the standard input-output header: #include <stdio.h>
Define the main function: int main() { ... }
Use printf to output text: printf('Hello, World!\n');
Return 0 to indicate successful execution: return 0;
Promises are used for asynchronous operations that return a single value, while Observables are used for streams of data.
Promises return a single value, while Observables can return multiple values over time.
Observables can be cancelled, while Promises cannot.
Observables have operators like map, filter, and reduce, while Promises do not.
Observables are lazy, meaning they only execute when subscribed to, while Promises ...
Pipe is a feature in Angular that allows transforming data before displaying it in the view.
Pipes are used to format and filter data in Angular templates.
They can be used to transform data types, apply currency and date formatting, and filter data based on certain criteria.
Pipes can be chained together to perform multiple transformations on the same data.
Custom pipes can also be created to perform specific transformati...
Directives in Angular are classes that add behavior to elements in Angular applications.
Types of directives: Components, Structural directives (e.g., *ngIf, *ngFor), and Attribute directives (e.g., ngClass, ngStyle).
Components are directives with a template, e.g., <app-header></app-header>.
Structural directives modify the DOM layout by adding/removing elements, e.g., *ngIf conditionally displays an element.
...
Services in Angular are singleton objects that provide specific functionality and can be injected into components or other services.
Services are used to share data and functionality across components.
They are typically created using the @Injectable() decorator.
Example: A logging service can be created to log messages from various components.
Services can be provided at different levels: root, module, or component.
They p...
Dependency injection in Angular allows for better code organization and testing by managing service instances efficiently.
Dependency Injection (DI) is a design pattern used to implement IoC (Inversion of Control).
In Angular, DI allows components to receive their dependencies from an injector rather than creating them directly.
Types of DI in Angular include Constructor Injection, Property Injection, and Method Injection...
based on 6 interview experiences
Difficulty level
Duration
based on 12 reviews
Rating in categories
Noida,
Greater Noida
6-10 Yrs
Not Disclosed
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