QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 74

Assume total is a defined ordinary function that accepts these arguments, and count and value are defined and both return normally. For total(count(), text=value()), which evaluation statements are true? Select all that apply.

  1. The expressions wait and run lazily inside total.
  2. Both argument expressions finish before total starts.Ճիշտ պատասխան
  3. The keyword expression must run before every positional expression.
  4. count() is evaluated before value().Ճիշտ պատասխան

Բացատրություն

Python evaluates count() and then value() in their written left-to-right order before entering total. The keyword spelling controls parameter binding, but it does not move that expression ahead of an earlier positional expression.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 74: Assume total is a defined ordinary function that accepts… · Python Fundamentals · Questena