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

Conditional decisions in programs

תצוגה מקדימה

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

Conditional decisions in programs

A robot must turn its wheels forward if the distance to an obstacle is greater than 20 cm, and stop them otherwise. Which programming structure is most suitable for choosing between these two actions?

  1. A variable declaration

  2. A while loop with no condition

  3. An if-else statement

  4. A function definition


The robot must pick one of two actions depending on whether a condition is true or false.

פרטים

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

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

תגובות

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