W3Teacher
  • Explore
    Browse by field
    Artificial Intelligence Accounting & Finance Information Technology
    Show all fields
  • Interview Q&A
    • All Interview Questions
    • Beginner
    • Intermediate
    • Advanced
  • Practice
    • MCQs
    • Quizzes
    • Mock Interviews
  • About
  • Sign in
  • Get Started
  1. Home
  2. Search: Asynchronous Programming
  3. C#
  4. Asynchronous Programming
  5. Question
All 20 Asynchronous Programming questions
More in Asynchronous Programming
What is the difference between Task and Task<T>? What do the 'async' and 'await' keywords do, and how do they relate to each other? What is the difference between the async and await keywords in C#, and how do they work together? How do you run multiple async operations concurrently? What does ConfigureAwait(false) do? Why does calling .Result or .Wait() on a Task risk causing a deadlock, particularly in ASP.NET (non-Core) or UI applications? What does ConfigureAwait(false) do, and when is it appropriate to use? How do you run multiple asynchronous operations concurrently and wait for all of them using Task.WhenAll? What are async streams in C#, and how does IAsyncEnumerable<T> differ from a regular IEnumerable<T> for handling large or slow data sources? Why can .Result or .Wait() deadlock, and what's the fix?
Advertisement
Back to results for “Asynchronous Programming”
C# › Asynchronous Programming

What do async and await do?

Beginner

Answer

await asynchronously waits for a Task, releasing the thread until it completes, then resumes the method; async marks a method that uses await and returns a Task.
public async Task<string> LoadAsync(HttpClient h) => (await h.GetStringAsync("/x")).Trim();
Real-world example A web server frees the request thread during a DB call so it can serve other requests.
Next question What is the difference between Task and Task<T>?
All 20 Asynchronous Programming questions
W3Teacher

Learn technologies. Ace technical interviews.


    Learn
    • Technologies
    • Tutorials
    • Interview Questions
    • MCQs
    Practice
    • Quizzes
    • Mock Interviews
    • Bookmarks
    • Dashboard
    Get the latest questions & tips

    Fresh interview questions and practice tips, straight to your inbox.

    Company
    • About
    • Contact us
    • Privacy Policy
    • Terms & Conditions

    © 2026 W3Teacher. All rights reserved.