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

Loop Until a Condition

תצוגה מקדימה

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

Loop Until a Condition

A robot should keep driving forward until its light sensor detects a dark line, then stop. Which programming structure is most suitable for this task?

  1. A single move command with no sensor reading

  2. A repeat loop that runs exactly 10 times

  3. A conditional loop that repeats until the sensor detects the dark line

  4. A command that only turns the robot in place


The number of repetitions is not known in advance; it depends on what the sensor reports while the robot is moving.

פרטים

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

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

תגובות

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