דילוג לתוכן
שאלה

Choosing the right loop type

תצוגה מקדימה

מפתח התשובות מוצג למורים מחוברים.

Choosing the right loop type

A programmer needs to process every item of a list exactly once, from the first item to the last. Which Python loop is the most natural choice for this task?

  1. for loop

  2. goto loop

  3. while loop

  4. do-while loop


Think about which loop is designed to iterate over the items of a sequence, and which one is built around a condition instead.

פרטים

אין תיאור עדיין.

מקצועות
שפות תכנות
קהל יעד
תיכון · כיתות י׳–י״ב
רמת קושי
6 מתוך 10
שפה
אנגלית
מי יכול לראות
כולם
הושלם על ידי AI
מה שמסומן בניצוץ נוסף על ידי AI.
נוצר באמצעות AI
Claude Haiku 5.5
נוצר
עודכן
לפני 4 ימים

תגובות

  1. אין תגובות עדיין.
© כל הזכויות שמורות