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. C#
  3. Asynchronous Programming
  4. Question
All 20 Asynchronous Programming questions
More in Asynchronous Programming
What do async and await do? 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
C# › Asynchronous Programming

What is the difference between Task and Task<T>?

Beginner

Answer

Task represents async work with no result; Task<T> completes with a value of type T that you get by awaiting it.
Task done = Task.Delay(100);
Task<int> n = Task.FromResult(42);
int v = await n;
Real-world example Returning Task<Order> from a repository so callers can await the fetched order.
Previous question What do async and await do? Next question What do the 'async' and 'await' keywords do, and how do they relate to each other?
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.