0% found this document useful (0 votes)
18 views5 pages

Interview QA MultiTopic

The document provides interview questions and answers on various topics including Azure DevOps, RxJS operators in Angular, Middleware in .NET Core 8, differences between const and readonly in C#, and the distinction between Observable and Promise in Angular. Key concepts such as CI/CD implementation, middleware creation, and the characteristics of observables and promises are discussed. Each section includes definitions, examples, and explanations to aid understanding of the topics.

Uploaded by

Sahil Rafeeq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views5 pages

Interview QA MultiTopic

The document provides interview questions and answers on various topics including Azure DevOps, RxJS operators in Angular, Middleware in .NET Core 8, differences between const and readonly in C#, and the distinction between Observable and Promise in Angular. Key concepts such as CI/CD implementation, middleware creation, and the characteristics of observables and promises are discussed. Each section includes definitions, examples, and explanations to aid understanding of the topics.

Uploaded by

Sahil Rafeeq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Interview Questions and Answers - Multi Topic

Azure DevOps Interview Q&A

1. What is Azure DevOps?

Azure DevOps is a cloud-based platform from Microsoft that provides a set of tools for software development including

source control, build pipelines, testing, and deployment.

2. What are the core services of Azure DevOps?

- Azure Repos (Version Control)

- Azure Pipelines (CI/CD)

- Azure Boards (Work Items, Kanban)

- Azure Test Plans (Testing Tools)

- Azure Artifacts (Package Management)

3. What is the difference between Build and Release pipelines?

Build pipelines compile and test your code, while Release pipelines deploy builds to environments like staging or

production.

4. How do you implement CI/CD in Azure DevOps?

By setting up YAML or classic pipelines for automated build, testing, and deployment on code push.

5. What is the use of YAML in Azure Pipelines?

YAML provides a configuration-as-code way to define CI/CD pipelines in a version-controlled file.


Interview Questions and Answers - Multi Topic

RxJS Operators in Angular (map, switchMap, mergeMap, catchError)

- map: Transforms each emitted value (like Array.map).

- switchMap: Cancels previous inner observable when a new value arrives.

- mergeMap: Flattens all inner observables concurrently.

- catchError: Catches errors and allows fallback logic.

Example: search API call on input keypress using switchMap to avoid race conditions.
Interview Questions and Answers - Multi Topic

Middleware in .NET Core 8

- Types: Built-in, Third-party, Custom.

- Custom Middleware: Create a class with `Invoke` or `InvokeAsync`, inject via `UseMiddleware` in Program.cs.

- Bulk Generation: Use a script to register 1000+ DI middlewares (not recommended for production).

Example:

public class LoggingMiddleware {

private readonly RequestDelegate _next;

public LoggingMiddleware(RequestDelegate next) => _next = next;

public async Task InvokeAsync(HttpContext context) {

Console.WriteLine("Request Path: " + context.Request.Path);

await _next(context);

}
Interview Questions and Answers - Multi Topic

Difference Between const and readonly in C#

- const: Compile-time constant, static by default, must be initialized where declared.

- readonly: Runtime constant, can be assigned in constructor.

Example:

const int Max = 100;

readonly int id = 101; // valid in constructor


Interview Questions and Answers - Multi Topic

Difference between Observable and Promise in Angular

- Observable: Lazy, cancellable, supports multiple values.

- Promise: Eager, not cancellable, supports only one value.

Use Observable for HTTP calls and reactive forms; Promise for simple one-time async operations.

You might also like