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

Loops and Conditions Together

תצוגה מקדימה

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

Loops and Conditions Together

A robot repeats the instruction 'move forward' inside a loop, and within each repetition checks whether the line sensor sees black. The loop should stop when the robot reaches the black line. Which loop type is most suitable for this task?

  1. A loop that runs a fixed 10 times

  2. A loop that runs only once

  3. A loop that repeats until a condition becomes true

  4. A loop with no commands inside


The number of repetitions is not known in advance; it depends on what the sensor detects.

פרטים

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

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

תגובות

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