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

For dictionary view objects, which statements are true? Select all that apply.

  1. Every view is a frozen list.
  2. A previously obtained keys view can show a later added key.Ճիշտ պատասխան
  3. A view captures a permanent snapshot at creation time.
  4. The objects returned by `keys`, `values`, and `items` are views.Ճիշտ պատասխան

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

The objects from `keys`, `values`, and `items` remain connected to their dictionary and reveal later content changes. Treating them as frozen lists or snapshots misses this live-view behavior.

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

Սկսել վարժանքը
Հարց 46: For dictionary view objects, which statements are true?… · Python Fundamentals · Questena