Questenaتدريب يوضح لك ما ينبغي مراجعته لاحقًا
السؤال 83

Which capability follows from Python functions being first-class objects?

  1. A function can be referenced only by its def name.
  2. A function cannot be used as an argument.
  3. It can be stored, passed, or returned.الإجابة الصحيحة
  4. Calling a function converts it into data.

الشرح

A function object can participate in ordinary object operations such as assignment, argument passing, and returning from another function. Restricting references to the original function name would deny that first-class behavior.

تابع هذا الاختبار

بدء التدريب
السؤال 83: Which capability follows from Python functions being… · Python Fundamentals · Questena