Cognizant
JSW Steel Interview Questions and Answers
Q1. What challenges faced during migration angular 12 to 17 and how to fix What is reducer in ngrx and how to create How to flat an array and sorting
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.
Q2. OOPS Concepts, what is data structure 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.
Q3. Difference between list and tuple
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)
Q4. What is directive
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.
Q5. Closure in Java script
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 event handlers, callbacks, and to create private variables i...read more
Q6. Pipes in angular
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.
More about working at Cognizant
Interview Process at JSW Steel
Top Angular Frontend Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month