21 real Delegates & Events questions from the C# bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.
1. What is Delegate?
Junior
A.a type-safe reference to one or more methods with a matching signature, invokable like a function and assignable to variables
B.a family of built-in generic delegates whose last type argument is the return type and whose earlier arguments are parameter types, used for methods that return a value
C.a concise inline anonymous function written with the => token, often used to supply a delegate or expression-tree argument
D.a family of built-in generic delegates representing methods that take zero or more parameters and return no value
A.Delegate — a type-safe reference to one or more methods with a matching signature, invokable like a function and assignable to variables
B.Delegate — a family of built-in generic delegates whose last type argument is the return type and whose earlier arguments are parameter types, used for methods that return a value
C.Delegate — a member built on a delegate that restricts outside code to only subscribing or unsubscribing handlers, preventing external invocation or wholesale reassignment
D.Delegate — a concise inline anonymous function written with the => token, often used to supply a delegate or expression-tree argument
A.a family of built-in generic delegates representing methods that take zero or more parameters and return no value
B.a type-safe reference to one or more methods with a matching signature, invokable like a function and assignable to variables
C.a family of built-in generic delegates whose last type argument is the return type and whose earlier arguments are parameter types, used for methods that return a value
D.the capture of surrounding local variables by an anonymous function so they remain accessible and shared by reference after the enclosing method returns
5. Which term means: "a family of built-in generic delegates whose last type argument is the return type and whose earlier arguments are parameter types, used for methods that return a value"?
A.Func delegate — a family of built-in generic delegates whose last type argument is the return type and whose earlier arguments are parameter types, used for methods that return a value
B.Func delegate — a concise inline anonymous function written with the => token, often used to supply a delegate or expression-tree argument
C.Func delegate — the capture of surrounding local variables by an anonymous function so they remain accessible and shared by reference after the enclosing method returns
D.Func delegate — a family of built-in generic delegates representing methods that take zero or more parameters and return no value
A.a type-safe reference to one or more methods with a matching signature, invokable like a function and assignable to variables
B.a concise inline anonymous function written with the => token, often used to supply a delegate or expression-tree argument
C.the capture of surrounding local variables by an anonymous function so they remain accessible and shared by reference after the enclosing method returns
D.a family of built-in generic delegates representing methods that take zero or more parameters and return no value
A.Action delegate — the classic bug where anonymous functions created inside a loop in older language versions shared one variable, so all saw its final value; modern foreach gives each iteration a fresh variable
B.Action delegate — a family of built-in generic delegates representing methods that take zero or more parameters and return no value
C.Action delegate — a type-safe reference to one or more methods with a matching signature, invokable like a function and assignable to variables
D.Action delegate — a concise inline anonymous function written with the => token, often used to supply a delegate or expression-tree argument
A.a concise inline anonymous function written with the => token, often used to supply a delegate or expression-tree argument
B.a family of built-in generic delegates whose last type argument is the return type and whose earlier arguments are parameter types, used for methods that return a value
C.a family of built-in generic delegates representing methods that take zero or more parameters and return no value
D.the classic bug where anonymous functions created inside a loop in older language versions shared one variable, so all saw its final value; modern foreach gives each iteration a fresh variable
A.Lambda expression — a member built on a delegate that restricts outside code to only subscribing or unsubscribing handlers, preventing external invocation or wholesale reassignment
B.Lambda expression — the classic bug where anonymous functions created inside a loop in older language versions shared one variable, so all saw its final value; modern foreach gives each iteration a fresh variable
C.Lambda expression — the capture of surrounding local variables by an anonymous function so they remain accessible and shared by reference after the enclosing method returns
D.Lambda expression — a concise inline anonymous function written with the => token, often used to supply a delegate or expression-tree argument
A.the classic bug where anonymous functions created inside a loop in older language versions shared one variable, so all saw its final value; modern foreach gives each iteration a fresh variable
B.a member built on a delegate that restricts outside code to only subscribing or unsubscribing handlers, preventing external invocation or wholesale reassignment
C.the capture of surrounding local variables by an anonymous function so they remain accessible and shared by reference after the enclosing method returns
D.a family of built-in generic delegates whose last type argument is the return type and whose earlier arguments are parameter types, used for methods that return a value
14. Which term means: "a member built on a delegate that restricts outside code to only subscribing or unsubscribing handlers, preventing external invocation or wholesale reassignment"?
A.Event — a family of built-in generic delegates representing methods that take zero or more parameters and return no value
B.Event — a family of built-in generic delegates whose last type argument is the return type and whose earlier arguments are parameter types, used for methods that return a value
C.Event — a concise inline anonymous function written with the => token, often used to supply a delegate or expression-tree argument
D.Event — a member built on a delegate that restricts outside code to only subscribing or unsubscribing handlers, preventing external invocation or wholesale reassignment
A.a type-safe reference to one or more methods with a matching signature, invokable like a function and assignable to variables
B.the classic bug where anonymous functions created inside a loop in older language versions shared one variable, so all saw its final value; modern foreach gives each iteration a fresh variable
C.the capture of surrounding local variables by an anonymous function so they remain accessible and shared by reference after the enclosing method returns
D.a member built on a delegate that restricts outside code to only subscribing or unsubscribing handlers, preventing external invocation or wholesale reassignment
17. Which term means: "the capture of surrounding local variables by an anonymous function so they remain accessible and shared by reference after the enclosing method returns"?
A.Closure — a member built on a delegate that restricts outside code to only subscribing or unsubscribing handlers, preventing external invocation or wholesale reassignment
B.Closure — the classic bug where anonymous functions created inside a loop in older language versions shared one variable, so all saw its final value; modern foreach gives each iteration a fresh variable
C.Closure — the capture of surrounding local variables by an anonymous function so they remain accessible and shared by reference after the enclosing method returns
D.Closure — a type-safe reference to one or more methods with a matching signature, invokable like a function and assignable to variables
A.a type-safe reference to one or more methods with a matching signature, invokable like a function and assignable to variables
B.the classic bug where anonymous functions created inside a loop in older language versions shared one variable, so all saw its final value; modern foreach gives each iteration a fresh variable
C.a concise inline anonymous function written with the => token, often used to supply a delegate or expression-tree argument
D.the capture of surrounding local variables by an anonymous function so they remain accessible and shared by reference after the enclosing method returns
20. Which term means: "the classic bug where anonymous functions created inside a loop in older language versions shared one variable, so all saw its final value; modern foreach gives each iteration a fresh variable"?
A.Captured loop variable trap — a family of built-in generic delegates representing methods that take zero or more parameters and return no value
B.Captured loop variable trap — a concise inline anonymous function written with the => token, often used to supply a delegate or expression-tree argument
C.Captured loop variable trap — the classic bug where anonymous functions created inside a loop in older language versions shared one variable, so all saw its final value; modern foreach gives each iteration a fresh variable
D.Captured loop variable trap — the capture of surrounding local variables by an anonymous function so they remain accessible and shared by reference after the enclosing method returns
Answers, AI explanations, and a scored voice mock interview
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.