Tuesday, January 31, 2023

Interview 1

  1. Constructor Overloading
    1. same constructor name with different parameters
  2. why Main method is static
    1. it called without instantiating the class.
  3. Can we pass values other than string in Argument in main method
    1. No
  4. MSIL
    1. C# Compiler translate source code into  CIL Code
  5. private virtual method
    1. We can not use private virtual
  6. Middleware
    1. Middleware is a piece of code in an application pipeline used to handle request and responses
    2. Each component: Chooses whether to pass the request to the next component in the pipeline. Can perform work before and after the next component in the pipeline.
  7. Routing
    1. app.UseRouting()
    2. app.UseEndpoints(m=>m.MapControllers();)
    3. [Route("users/{id:int:min(1)}")]
    4. [Route("api/[controller]/[action]")]
    5. [Route("api/[controller]/[action]/{id?}")]
  8. Web API: Same method name with different parameters
    1. We can call it by Routing attribute
  9. SOA (Service Oriented Architecture) 
    1. It is an architecture for developing distributed and interoperable applications
    2. An application wants to use some of the services provided by for other enterprises


No comments:

Post a Comment