26 questions for “Closures”

Found in 2 fields. Select a question to see its full answer.

Information Technology

25 questions in 4 technologies

#QuestionTechnologyTopicLevel
1What are arrow functions introduced in PHP 7.4, and how do they simplify writing short closures compared to traditional anonymous functions? PHP › Closures & Anonymous FunctionsPHPClosures & Anonymous FunctionsIntermediate
2How can closures be used to implement simple dependency injection or callback based customization within a class? PHP › Closures & Anonymous FunctionsPHPClosures & Anonymous FunctionsIntermediate
3How do closures unintentionally keep large objects alive longer than expected? JavaScript › Memory Management & Garbage CollectionJavaScriptMemory Management & Garbage CollectionIntermediate
4How does variable capture (closures) work in a C# lambda expression, and what pitfall occurs when capturing a loop variable? C# › Delegates, Events & LambdasC#Delegates, Events & LambdasIntermediate
5How do you implement a debounce function using closures, and how is it a functional programming technique? JavaScript › Functional ProgrammingJavaScriptFunctional ProgrammingAdvanced
6How does a closure capture variables from its enclosing scope, and what pitfall occurs when creating multiple closures inside a loop? Python › Functions & ScopePythonFunctions & ScopeAdvanced
7What is an anonymous function in PHP, and how does it differ from a regular named function? PHP › Closures & Anonymous FunctionsPHPClosures & Anonymous FunctionsBeginner
8What is the use keyword in a PHP closure, and why is it needed to access outside variables from within an anonymous function? PHP › Closures & Anonymous FunctionsPHPClosures & Anonymous FunctionsBeginner
9How does passing a variable by reference into a closure's use clause differ from the default pass by value behavior? PHP › Closures & Anonymous FunctionsPHPClosures & Anonymous FunctionsIntermediate
10How does binding a closure to a specific object or class using bindTo or Closure::bind allow it to access private properties and methods it otherwise could not? PHP › Closures & Anonymous FunctionsPHPClosures & Anonymous FunctionsAdvanced

Accounting & Finance

1 question in 1 technology

#QuestionTechnologyTopicLevel
1What disclosures are required when there is significant going concern doubt? Auditing & Assurance › Going ConcernAuditing & AssuranceGoing ConcernIntermediate