QuestenaUn entraînement qui indique quoi revoir ensuite
Question 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.Bonne réponse
  4. Calling a function converts it into data.

Explication

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.

Continuer avec ce test

Commencer l’entraînement
Question 83: Which capability follows from Python functions being… · Python Fundamentals · Questena