Premium Employer

Infosys

3.7
based on 37.7k Reviews
Filter interviews by

10+ Wipro Interview Questions and Answers

Updated 6 Jan 2025
Popular Designations

Q1. What is lazy loading and how can we achieve this?

Ans.

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 in the route configuration of Angular.

  • Lazy loading is commo...read more

Add your answer

Q2. Difference between in constructor and NgOninit()?

Ans.

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: Constructor is used to inject services, NgOnInit() is used ...read more

Add your answer

Q3. What is a pipe in angular and its types

Ans.

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

Add your answer

Q4. Write a logic in javascript to eliminate the duplicate elements in an array.

Ans.

Use JavaScript to remove duplicate elements from an array of strings.

  • Create a new Set from the array to automatically remove duplicates

  • Convert the Set back to an array to get the final result

Add your answer
Discover Wipro interview dos and don'ts from real experiences

Q5. What is two-way binding?

Ans.

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

Add your answer

Q6. Difference between Observable and Promise

Ans.

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 once it is settled.

  • Observable provides operators for trans...read more

Add your answer
Are these interview questions helpful?

Q7. Array methods in javascript. Differences among those

Ans.

Array methods in JavaScript and their differences

  • forEach() - executes a provided function once for each array element

  • map() - creates a new array with the results of calling a provided function on every element

  • filter() - creates a new array with all elements that pass the test implemented by the provided function

  • reduce() - applies a function against an accumulator and each element in the array to reduce it to a single value

  • find() - returns the first element in the array that s...read more

Add your answer

Q8. What is data binding ?

Ans.

Data binding is the automatic synchronization of data between the model and view components in an application.

  • Data binding allows for the seamless updating of data in the model to be reflected in the view and vice versa.

  • There are two-way data binding and one-way data binding.

  • Two-way data binding updates the model and view simultaneously, while one-way data binding updates in one direction only.

  • Example: In Angular, using interpolation {{ }} or property binding [ ] for one-way ...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. do you know lazy loading?

Ans.

Lazy loading is a technique used to defer loading of non-essential resources until they are actually needed.

  • Lazy loading helps improve performance by only loading resources when they are required.

  • In Angular, lazy loading is commonly used for loading modules on demand rather than loading everything upfront.

  • Lazy loading can be implemented using Angular's RouterModule and loadChildren feature.

Add your answer

Q10. Sort array without using merhods

Ans.

Sort array without using methods

  • Iterate through the array and compare each element with the rest to find the correct position

  • Swap elements if necessary to sort the array in ascending order

  • Repeat the process until the array is fully sorted

Add your answer

Q11. explain rxjs operators and usecase?

Ans.

RxJS operators are functions used to manipulate and work with streams of data in reactive programming.

  • RxJS operators are used to transform, filter, combine, and handle errors in data streams.

  • Examples of RxJS operators include map, filter, mergeMap, switchMap, catchError, and debounceTime.

  • Operators are used in combination with Observables to create powerful data processing pipelines.

  • Understanding and mastering RxJS operators is essential for efficient data handling in Angular ...read more

Add your answer

Q12. How to apply ngclass

Ans.

ngClass is used to conditionally apply CSS classes to an element in Angular.

  • Use ngClass directive in the template with an object or array of classes and conditions

  • Classes are applied when the condition is true, and removed when false

  • Example:

Add your answer

Q13. Angular Interceptors concept ?

Ans.

Angular interceptors are a way to intercept HTTP requests and responses to perform operations like logging, modifying requests, or handling errors.

  • Interceptors can be used to modify outgoing requests or incoming responses.

  • They can be used for tasks like adding headers, logging requests, handling errors, or transforming data.

  • Interceptors are implemented as services that implement the HttpInterceptor interface.

  • Multiple interceptors can be chained together to perform different t...read more

Add your answer

Q14. Why we should use angular

Ans.

Angular provides a robust framework for building dynamic web applications with features like two-way data binding, dependency injection, and modular architecture.

  • Angular offers a powerful toolset for creating single-page applications (SPAs) with a clean and organized code structure.

  • It provides built-in features like routing, forms handling, and HTTP client for seamless development.

  • Angular's two-way data binding simplifies the process of updating the UI based on changes in the...read more

Add your answer

Q15. What is Decorator?

Ans.

Decorators are a design pattern in Angular that allows you to add behavior to classes, properties, or methods.

  • Decorators are functions that are prefixed with @ symbol and are used to modify classes or class members.

  • They are commonly used in Angular for metadata annotations, dependency injection, and more.

  • Examples include @Component, @Injectable, @Input, @Output, etc.

Add your answer

Q16. What is Directive?

Ans.

Directives are markers on a DOM element that tell Angular to attach a specified behavior to that DOM element or transform the DOM element and its children.

  • Directives are used to extend HTML with new attributes or elements.

  • There are three types of directives in Angular: Component, Structural, and Attribute directives.

  • Examples of directives include ngIf, ngFor, ngStyle, and custom directives created by developers.

Add your answer

Q17. Reverse string without methods

Ans.

Reverse a string without using built-in methods

  • Create an empty string to store the reversed string

  • Iterate through the input string from the last character to the first

  • Append each character to the empty string to reverse the input string

Add your answer

Q18. Entry point of angular

Ans.

The entry point of Angular is typically the main.ts file.

  • Main.ts file is the first file that is executed when an Angular application is started.

  • It bootstraps the AppModule, which is the root module of the application.

  • Main.ts file also imports other necessary modules and components required for the application to run.

Add your answer

Q19. Explain lazy-loading?

Ans.

Lazy-loading is a technique used to defer the loading of non-essential resources until they are actually needed.

  • Lazy-loading helps improve performance by only loading resources when they are required.

  • It is commonly used in web development to load images, scripts, or components on demand.

  • Lazy-loading can be implemented in Angular using the loadChildren method in the routing configuration.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Wipro

based on 13 interviews
2 Interview rounds
Technical Round - 1
Technical Round - 2
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Angular Frontend Developer Interview Questions from Similar Companies

3.7
 • 15 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter