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

Decision Making in Robot Logic

תצוגה מקדימה

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

Decision Making in Robot Logic

A line-following robot must turn left when its left sensor detects a dark line and go straight otherwise. Which programming structure is needed to choose between these two actions based on a sensor reading?

  1. A loop that repeats forever without checking anything

  2. A function definition with no inputs

  3. A conditional statement (if-else)

  4. A variable declaration


Look for the structure that lets a program follow one path when a condition is true and another path when it is false.

פרטים

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

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

תגובות

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