{"id":36,"date":"2025-06-19T11:09:55","date_gmt":"2025-06-19T11:09:55","guid":{"rendered":"https:\/\/blog.vigplanet.com\/?p=36"},"modified":"2025-09-08T04:21:47","modified_gmt":"2025-09-08T04:21:47","slug":"top-10-interview-questions-on-angular-react-net-core-with-answers","status":"publish","type":"post","link":"https:\/\/blog.vigplanet.com\/?p=36","title":{"rendered":"Top 10 Interview Questions on Angular \/ React \/ .NET Core (With Answers)"},"content":{"rendered":"\n<p>Boost your job readiness with these essential questions and answers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd37 Angular Interview Questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. What are Angular Components?<\/h3>\n\n\n\n<p><strong>Answer:<\/strong> Components are the building blocks of Angular applications. A component controls a view and consists of: Template (HTML), Class (TypeScript), and Metadata (@Component).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. What is Dependency Injection in Angular?<\/h3>\n\n\n\n<p><strong>Answer:<\/strong> DI is a pattern where components receive dependencies instead of creating them. Angular has built-in DI for modular and testable code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. What are Observables in Angular?<\/h3>\n\n\n\n<p><strong>Answer:<\/strong> Observables are used for asynchronous operations like HTTP requests. They provide operators like <code>.subscribe()<\/code>, <code>.map()<\/code>, <code>.filter()<\/code> using RxJS.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u269b\ufe0f React Interview Questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">4. What is the Virtual DOM in React?<\/h3>\n\n\n\n<p><strong>Answer:<\/strong> A virtual DOM is a JavaScript representation of the actual DOM. React updates the virtual DOM first and then reconciles it with the real DOM efficiently.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. What are React Hooks? Name a few commonly used hooks.<\/h3>\n\n\n\n<p><strong>Answer:<\/strong> Hooks are functions that let you use state and lifecycle in functional components. Examples: <code>useState()<\/code>, <code>useEffect()<\/code>, <code>useRef()<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. Explain the difference between Props and State in React.<\/h3>\n\n\n\n<p><strong>Answer:<\/strong> Props are read-only and passed from parent to child. State is managed within the component and can be changed using <code>setState()<\/code> or <code>useState()<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u2699\ufe0f .NET Core Interview Questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">7. What is .NET Core and how is it different from .NET Framework?<\/h3>\n\n\n\n<p><strong>Answer:<\/strong> .NET Core is a cross-platform, open-source framework for modern apps. It runs on Windows, Linux, and macOS unlike the Windows-only .NET Framework.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">8. Explain Middleware in .NET Core.<\/h3>\n\n\n\n<p><strong>Answer:<\/strong> Middleware handles requests\/responses in the HTTP pipeline. In <code>Startup.cs<\/code>, it&#8217;s configured with methods like <code>app.UseRouting()<\/code>, <code>app.UseEndpoints()<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">9. What is Dependency Injection in .NET Core?<\/h3>\n\n\n\n<p><strong>Answer:<\/strong> Built-in DI is used to manage object lifetimes. Services are added in <code>Startup.cs<\/code> using Scoped, Singleton, or Transient lifetimes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">10. What are the differences between IApplicationBuilder, IHostBuilder, and IWebHostBuilder?<\/h3>\n\n\n\n<p><strong>Answer:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>IApplicationBuilder<\/strong>: Configures middleware.<\/li>\n\n\n\n<li><strong>IWebHostBuilder<\/strong>: Used in older ASP.NET Core apps.<\/li>\n\n\n\n<li><strong>IHostBuilder<\/strong>: Unified model supporting web apps and background services.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 Final Tips<\/h2>\n\n\n\n<p>Practice building apps using Angular, React, and .NET Core. Learn common tools like Postman, VS Code, Git, and Docker to stand out.<\/p>\n\n\n\n<p>\u00a9 2025 YourSite.com | Angular \/ React \/ .NET Core Interview Guide<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Boost your job readiness with these essential questions and answers. \ud83d\udd37 Angular Interview Questions 1. What are Angular Components? Answer: Components are the building blocks of Angular applications. A component controls a view and consists of: Template (HTML), Class (TypeScript), and Metadata (@Component). 2. What is Dependency Injection in Angular? Answer: DI is a pattern<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-net-core","category-angular"],"_links":{"self":[{"href":"https:\/\/blog.vigplanet.com\/index.php?rest_route=\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.vigplanet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vigplanet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vigplanet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vigplanet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36"}],"version-history":[{"count":1,"href":"https:\/\/blog.vigplanet.com\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":37,"href":"https:\/\/blog.vigplanet.com\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions\/37"}],"wp:attachment":[{"href":"https:\/\/blog.vigplanet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vigplanet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vigplanet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}