Routing interview questions

15 real Routing questions from the ASP.NET Core bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Endpoint routing?

Junior
  1. A.a restriction in a template, such as int or guid, that limits which values a URL parameter will accept
  2. B.the system that matches an incoming URL to a registered handler before the matched handler executes
  3. C.defining URL patterns directly on controllers and actions using annotations like Route, HttpGet, and HttpPost
  4. D.a pattern string with literal segments and curly-brace parameters that defines which URLs a handler matches
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Endpoint routing — a restriction in a template, such as int or guid, that limits which values a URL parameter will accept
  2. B.Endpoint routing — the system that matches an incoming URL to a registered handler before the matched handler executes
  3. C.Endpoint routing — a pattern string with literal segments and curly-brace parameters that defines which URLs a handler matches
  4. D.Endpoint routing — the minimal-API method that registers a handler responding only to HTTP GET requests at a given path
Reveal the answer + AI explanation — free account

4. What is Route template?

Junior
  1. A.defining URL patterns directly on controllers and actions using annotations like Route, HttpGet, and HttpPost
  2. B.a pattern string with literal segments and curly-brace parameters that defines which URLs a handler matches
  3. C.the minimal-API method that registers a handler responding only to HTTP GET requests at a given path
  4. D.a restriction in a template, such as int or guid, that limits which values a URL parameter will accept
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Route template — a pattern string with literal segments and curly-brace parameters that defines which URLs a handler matches
  2. B.Route template — the minimal-API method that registers a handler responding only to HTTP GET requests at a given path
  3. C.Route template — the system that matches an incoming URL to a registered handler before the matched handler executes
  4. D.Route template — a restriction in a template, such as int or guid, that limits which values a URL parameter will accept
Reveal the answer + AI explanation — free account

7. What is Attribute routing?

Mid
  1. A.the minimal-API method that registers a handler responding only to HTTP GET requests at a given path
  2. B.defining URL patterns directly on controllers and actions using annotations like Route, HttpGet, and HttpPost
  3. C.a pattern string with literal segments and curly-brace parameters that defines which URLs a handler matches
  4. D.the system that matches an incoming URL to a registered handler before the matched handler executes
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Attribute routing — the system that matches an incoming URL to a registered handler before the matched handler executes
  2. B.Attribute routing — the minimal-API method that registers a handler responding only to HTTP GET requests at a given path
  3. C.Attribute routing — defining URL patterns directly on controllers and actions using annotations like Route, HttpGet, and HttpPost
  4. D.Attribute routing — a pattern string with literal segments and curly-brace parameters that defines which URLs a handler matches
Reveal the answer + AI explanation — free account

10. What is MapGet?

Mid
  1. A.a restriction in a template, such as int or guid, that limits which values a URL parameter will accept
  2. B.the system that matches an incoming URL to a registered handler before the matched handler executes
  3. C.the minimal-API method that registers a handler responding only to HTTP GET requests at a given path
  4. D.a pattern string with literal segments and curly-brace parameters that defines which URLs a handler matches
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.MapGet — a restriction in a template, such as int or guid, that limits which values a URL parameter will accept
  2. B.MapGet — the minimal-API method that registers a handler responding only to HTTP GET requests at a given path
  3. C.MapGet — a pattern string with literal segments and curly-brace parameters that defines which URLs a handler matches
  4. D.MapGet — defining URL patterns directly on controllers and actions using annotations like Route, HttpGet, and HttpPost
Reveal the answer + AI explanation — free account

13. What is Route constraint?

Senior
  1. A.the system that matches an incoming URL to a registered handler before the matched handler executes
  2. B.a pattern string with literal segments and curly-brace parameters that defines which URLs a handler matches
  3. C.a restriction in a template, such as int or guid, that limits which values a URL parameter will accept
  4. D.defining URL patterns directly on controllers and actions using annotations like Route, HttpGet, and HttpPost
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.Route constraint — the system that matches an incoming URL to a registered handler before the matched handler executes
  2. B.Route constraint — the minimal-API method that registers a handler responding only to HTTP GET requests at a given path
  3. C.Route constraint — a restriction in a template, such as int or guid, that limits which values a URL parameter will accept
  4. D.Route constraint — defining URL patterns directly on controllers and actions using annotations like Route, HttpGet, and HttpPost
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Routing free