Eduversity.bd — Learn with Us, Achieve Your Dreams

সি শার্প (C#) — MCQ প্রশ্ন

আইটি ও প্রোগ্রামিং MCQ (ওপেন) · আইটি ও প্রোগ্রামিং। এই অধ্যায়ে মোট 366টি প্রশ্ন আছে। নিচে প্রথম 10টি প্রশ্ন ও অপশন দেওয়া হলো; সঠিক উত্তর সার্ভারে যাচাই হয়।

এই অধ্যায়ে সব প্রশ্নে অনুশীলন করুন

  1. In ASP.NET Core, which method is used to configure the HTTP request pipeline?

    1. ConfigureServices
    2. Configure
    3. Main
    4. Build

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  2. Where are services registered for Dependency Injection in ASP.NET Core?

    1. Configure method
    2. ConfigureServices method
    3. Main method
    4. appsettings.json

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  3. What is the default configuration file name in ASP.NET Core?

    1. config.json
    2. settings.json
    3. appsettings.json
    4. web.config

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  4. Which middleware component serves static files (CSS, JS, images) from the wwwroot folder?

    1. UseStaticFiles()
    2. UseDefaultFiles()
    3. UseFileServer()
    4. UseDirectoryBrowser()

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  5. In .NET 6+, what replaces the separate Program.cs and Startup.cs files?

    1. Minimal APIs only
    2. Top-level statements in Program.cs
    3. Global.asax
    4. Web.config

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  6. Which interface represents a component that processes HTTP requests in the middleware pipeline?

    1. IApplicationBuilder
    2. IHttpContextAccessor
    3. IMiddleware
    4. IServiceProvider

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  7. What is the purpose of the 'UseRouting' middleware?

    1. To serve static files
    2. To match incoming requests to endpoints
    3. To handle authentication
    4. To log requests

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  8. Which attribute designates a class as a Controller in ASP.NET Core MVC?

    1. [Controller]
    2. [ApiController]
    3. [Route]
    4. All of the above

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  9. How do you access a configuration value (e.g., 'ConnectionStrings:Default') in a controller?

    1. Configuration.GetConnectionString("Default")
    2. Configuration["ConnectionStrings:Default"]
    3. Both A and B work
    4. Neither works

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  10. What is the lifetime of a service registered with 'AddScoped'?

    1. A new instance for every request
    2. A single instance for the application lifetime
    3. A new instance every time it is requested
    4. A new instance per user session

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

← আগের অধ্যায়পরের অধ্যায় →