Revising_Session_Quiz.md - brainchildservices/curriculum GitHub Wiki
-
The Startup class includes two public methods:
Ans: ConfigureServices and Configure.
-
Startup class contained in ------- in the root folder of the project.
Ans: Startup.cs
-
---------------- method is used to configure services that are used by the application.
Ans: ConfigureServices
-
------------------method is used to define how the application will respond on each HTTP request i.e. we can control the ASP.net pipeline.
Ans: Configure.
-
what is Multiple Startup?
Ans: At runtime, the appropriate Startup class is selected when the app defines separate Startup classes for various environments.
The class whose name matches the current environment is prioritized. For example, if the app includes both a Startup class and a StartupDevelopment class and the app is running in the Development environment, then the StartupDevelopment class will be used.
6.---------- is used by ASP.NET Core to add defaults to the beginning of the pipeline without having to make the app author explicitly register the default middleware.
Ans: IStartupFilter
-
----------- allows a different component to call Use{Middleware} on behalf of the app author.
Ans: IStartupFilter
-
To create a pipeline of Configure methods. ----------can set a middleware to run before or after middleware added by libraries.
Ans: IStartupFilter.Configure
-
--------- is software that's assembled into an app pipeline to handle requests and responses.
Ans: Middleware
10: ----------- are used to build the request pipeline and handle each HTTP request.
Ans: Request delegates
- Reusable classes and in-line anonymous methods are middleware, also called ----------.
Ans: middleware components
-
Middleware short-circuits, it's called a ------------- because it prevents further middleware from processing the request.
Ans: terminal middleware
-
When a delegate doesn't pass a request to the next delegate, it's called short-circuiting the request pipeline.
Ans: short-circuiting the request pipeline
-
The ------ encapsulates all of the app's resources.
Ans: host
-
what are two different hosts?
Ans:.NET Generic Host ASP.NET Core Web Host
-
The ----------------- methods configure a host with a set of default options.
Ans: CreateDefaultBuilder and ConfigureWebHostDefaults
-
------------- is a cross-platform web server for ASP.NET Core.
Ans: Kestrel
-
Kestrel is the ----------- that's included and enabled by default in ASP.NET Core project templates.
Ans: web server
-
What is kestrel? Ans: Kestrel is an open-source, cross-platform, lightweight, and default webserver used for Asp.Net Core applications. Asp.Net Core applications run Kestrel webserver as in-process server to handle web request.
-
The Internet is a large network of computers which communicate all together.
Ans: Internet
-
A document that can be displayed in a web browser such as Firefox, Google Chrome, Opera, Microsoft Internet Explorer or Edge, or Apple's Safari is called ------------?
Ans: web page
-
A collection of web pages which are grouped together and usually connected together in various ways. Often called a--------"
Ans: "web site" or a "site.
-
A computer that hosts a website on the Internet is called -------
Ans: web server
-
-------- are normally accessed through a web browser
Ans: Search engines
-
ASP.NET Core supports the ------------software design pattern, which is a technique for achieving Inversion of Control (IoC) between classes and their dependencies.
Ans: dependency injection (DI)
-
A dependency is an ----- that another object depends on
Ans: object
-
When a user request URLs from the server then URLs are handled by the --------------
Ans: routing system
-
The ----------try to find out the matching route pattern of requeted Url with already registered routes which are map to controller, actions, files, or other items.
Ans: Routing system
-
The web root is the ------ for public, static resource files.
Ans: base path
30: The --------- folder in the ASP.NET Core project is treated as a web root folder.
Ans: wwwroot
- The ---------- path is the absolute path to the directory that contains the application content files.
Ans: content root
-
The ------ path is the absolute path to the directory that contains the web-servable application content files.
Ans: web root