All fields

“Lambda Expressions” in Information Technology

18 questions across 3 technologies.

Information Technology

18 questions in 3 technologies

#QuestionTechnologyTopicLevel
1What is a lambda expression in C++? C++ › Lambda ExpressionsC++Lambda ExpressionsBeginner
2What is the capture list in a lambda? C++ › Lambda ExpressionsC++Lambda ExpressionsBeginner
3Where are lambdas most commonly used? C++ › Lambda ExpressionsC++Lambda ExpressionsBeginner
4Can a lambda be recursive? C++ › Lambda ExpressionsC++Lambda ExpressionsBeginner
5What is a mutable lambda? C++ › Lambda ExpressionsC++Lambda ExpressionsIntermediate
6How do you specify a lambda's return type? C++ › Lambda ExpressionsC++Lambda ExpressionsIntermediate
7What is std::function and how does it relate to lambdas? C++ › Lambda ExpressionsC++Lambda ExpressionsIntermediate
8What is an immediately invoked lambda expression (IILE) and why use it? C++ › Lambda ExpressionsC++Lambda ExpressionsIntermediate
9What is a generic (template) lambda? C++ › Lambda ExpressionsC++Lambda ExpressionsAdvanced
10How are lambdas implemented under the hood? C++ › Lambda ExpressionsC++Lambda ExpressionsAdvanced
11What is the difference between capturing by value and by reference? C++ › Lambda ExpressionsC++Lambda ExpressionsIntermediate
12What is capturing by move (init capture) and when is it needed? C++ › Lambda ExpressionsC++Lambda ExpressionsAdvanced
13How do C# 12's default parameter values on LAMBDA expressions work, and what limitation did they remove compared to earlier C# versions? C# › Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)C#Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)Advanced
14How would you implement a callback or event listener using an anonymous class, and how does this same use case increasingly get replaced by lambda expressions for functional interfaces in modern Java? Java › Inner Classes & Anonymous ClassesJavaInner Classes & Anonymous ClassesIntermediate
15How do lambda expressions get compiled at the bytecode level using invokedynamic, and how does this differ from how an anonymous inner class implementing the same functional interface would be compiled? Java › Functional Interfaces & Method ReferencesJavaFunctional Interfaces & Method ReferencesAdvanced
16What is a view in the ranges library? C++ › Ranges & ViewsC++Ranges & ViewsBeginner
17What does the pipe operator | do with ranges? C++ › Ranges & ViewsC++Ranges & ViewsIntermediate
18What is a projection in range algorithms? C++ › Ranges & ViewsC++Ranges & ViewsAdvanced