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: Delegates
  3. C#
  4. Delegates, Events & Lambdas
  5. Question
All 17 Delegates, Events & Lambdas questions
More in Delegates, Events & Lambdas
What is a delegate in C#? What is a delegate in C#, and what does it represent conceptually? How do you write and use a lambda expression as a shorthand for a delegate? What is a delegate in C#, and how does it enable passing methods as values? What is a closure and what is a common pitfall? How do events differ from plain delegates? What is an event, and how does it differ from a plain public delegate field? What are multicast delegates, and in what order do their subscribed methods get invoked? How does variable capture (closures) work in a C# lambda expression, and what pitfall occurs when capturing a loop variable? What causes event-handler memory leaks and how do you prevent them?
Advertisement
Back to results for “Delegates”
C# › Delegates, Events & Lambdas

What is the difference between Func, Action and Predicate?

Beginner

Answer

Func<...,TResult> returns a value; Action<...> returns void; Predicate<T> is a Func<T,bool> used for tests.
Func<int,bool> isEven = n => n%2==0;
Action greet = () => Console.Write("hi");
Real-world example Passing isEven to List.FindAll to filter numbers.
Previous question What is a delegate in C#? Next question What is a delegate in C#, and what does it represent conceptually?
All 17 Delegates, Events & Lambdas 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.