40 cards generated

Lưu bộ thẻ trước khi nó biến mất

Các flashcard này chưa được lưu — chúng sẽ biến mất khi bạn rời đi. Tạo tài khoản miễn phí để giữ lại và mở khóa mọi thứ bên dưới.

Lưu & ôn
  • Save this deck to your account
  • Study with spaced repetition
  • Export to Anki (.apkg) or PDF
Tạo nhiều hơn & tốt hơn
  • Process documents up to 100 pages
  • Images extracted from your PDFs
  • Sharper text extraction & a more advanced AI model
Sign up free → Free forever · No credit card

Flashcards in this deck (40)

Đang tìm...
  • What is the difference between a reference type and a value type?


    Value types hold data directly; reference types store a reference to data. Value types are on the stack; reference types on the heap. Examples: value types - int, bool; reference types - classes, arrays, strings.

    c# data_types
  • What is a singleton?


    A singleton is a design pattern that restricts a class to a single instance throughout the application's lifecycle.

    c# design_pattern
  • What is the difference between an array and a List?


    Array is fixed-size; List is dynamic and can grow/shrink. Lists provide more functionality like adding/removing elements.

    c# collections
  • What is a dictionary/map?


    A dictionary is a collection of key-value pairs for fast lookups based on keys.

    c# collections
  • How does a hashset differ from a dictionary?


    A hashset stores unique values and does not allow duplicates; a dictionary uses key-value pairs.

    c# collections
  • What is a static field?


    A static field belongs to the class itself and is shared across all instances.

    c# fields
  • How is a static method called?


    A static method is called on the class itself, e.g., ClassName.StaticMethod().

    c# methods
  • What is a namespace?


    A namespace organizes code and prevents naming conflicts by grouping related types.

    c# namespaces
  • What are common access modifiers in C#?


    Public, private, protected, internal, protected internal.

    c# access_modifiers
  • What is the using statement used for?


    The using statement manages resources and ensures IDisposable objects are disposed of properly.

    c# resources
  • What is the difference between abstract classes and interfaces?


    Abstract classes can have both abstract and concrete methods; interfaces can only declare methods without implementation.

    c# oop
  • How does async/await work?


    async marks a method as asynchronous; await pauses execution until the awaited task completes.

    c# asynchronous
  • What is the yield keyword used for?


    To simplify the implementation of iterators when returning values one at a time from a collection.

    programming c# yield
  • What interface is yield commonly used with?


    IEnumerable interface.

    programming c# ienumerable
  • What method is used in LINQ to filter results?


    The Where method.

    programming linq filter
  • What method is used in LINQ to project or convert?


    The Select method.

    programming linq project
  • What methods are used in LINQ to sort results?


    OrderBy and OrderByDescending methods.

    programming linq sort
  • How are IEnumerable and IQueryable similar?


    Both are interfaces used for data querying.

    programming c# ienumerable iqueryable
  • How are IEnumerable and IQueryable different?


    IEnumerable executes queries on the client side, while IQueryable executes on the server side.

    programming c# ienumerable iqueryable
  • What does MVC stand for?


    Model-View-Controller.

    programming mvc
  • What does the Model represent in MVC?


    The data and business logic.

    programming mvc model
  • What does the View represent in MVC?


    The user interface.

    programming mvc view
  • What does the Controller do in MVC?


    Handles user input and interactions, updating the Model and View.

    programming mvc controller
  • What are common return types for an MVC action?


    ViewResult, JsonResult, RedirectResult, ContentResult, FileResult.

    programming mvc return_types
  • What is dependency injection?


    A design pattern for achieving Inversion of Control between classes and their dependencies.

    programming di design_pattern
  • Why is dependency injection important?


    It makes code more modular, testable, and maintainable.

    programming di importance
  • What is the Transient scope in DI?


    A new instance is created each time it is requested.

    programming di scopes
  • What is the Singleton scope in DI?


    A single instance is created and shared throughout the application.

    programming di scopes
  • What is the Scoped scope in DI?


    A new instance is created once per request or scope.

    programming di scopes
  • What is middleware in ASP.NET Core?


    A component that processes HTTP requests and responses.

    programming asp.net middleware
  • What are filters in ASP.NET MVC?


    Used to execute code before or after certain stages of request processing.

    programming asp.net filters
  • What is model binding in ASP.NET MVC?


    Mapping HTTP request data to action method parameters.

    programming asp.net model_binding
  • What is attribute routing in ASP.NET MVC?


    Defining routes directly on controller actions using attributes.

    programming asp.net routing
  • What are RESTful principles in Web API development?


    Creating APIs that use standard HTTP methods and are stateless.

    programming web_api rest
  • What HTTP methods are used in RESTful APIs?


    GET, POST, PUT, DELETE.

    programming web_api http_methods
  • What methods do REST APIs use?


    GET, POST, PUT, DELETE

    apis http methods
  • What type of URIs do REST APIs provide?


    Meaningful resource URIs

    apis uris
  • What is a key characteristic of REST APIs?


    They are stateless

    apis stateless
  • What do REST APIs follow to be predictable?


    Conventions

    apis conventions
  • Why are REST APIs easy to use?


    They are predictable

    apis usability