📋 المحتوى المنظم
📖 محتوى تعليمي مفصّل
تدريب 2
نوع: محتوى تعليمي
تدريب 2
نوع: QUESTION_HOMEWORK
اكتب رقم اللبنة البرمجية أمام الأمر الصحيح بلغة بايثون.
نوع: METADATA
وزارة التعليم
Ministry of Education
2025 - 1447
نوع: METADATA
362
🔍 عناصر مرئية
A blue programming block labeled with the number 1. It contains the text 'اضبط سرعة القيادة إلى 20 %' (Set drive speed to 20%). It has a dropdown for '20' and a '%' symbol.
An orange programming block labeled with the number 2. It contains the text 'مجموعة speed إلى 20' (Set speed to 20). It has a dropdown for 'speed' and a numerical input '20'.
An orange C-shaped programming block labeled with the number 3. It contains the text 'تكرار 20' (Repeat 20) and has a numerical input '20'. The C-shape indicates a loop structure.
A blue programming block labeled with the number 4. It contains the text 'تحرك إلى الأمام 300 عدد mm' (Move forward 300 mm). It has dropdowns for 'إلى الأمام' (forward) and 'mm' (millimeters), and a numerical input '300'.
A blue programming block labeled with the number 5. It contains the text 'تحرك إلى الخلف 300 عدد mm' (Move backward 300 mm). It has dropdowns for 'إلى الخلف' (backward) and 'mm' (millimeters), and a numerical input '300'.
A text box containing the Python code: 'speed = 20'. There is an empty circle to its right, indicating a place for a matching answer.
A text box containing the Python code: 'drivetrain.set drive velocity(20, PERCENT)'. There is an empty circle to its right, indicating a place for a matching answer.
A text box containing the Python code: 'drivetrain.drive_for(FORWARD, 300, MM)'. There is an empty circle to its right, indicating a place for a matching answer.
A text box containing the Python code: 'for repeat_count in range(20):'. There is an empty circle to its right, indicating a place for a matching answer.
A text box containing the Python code: 'drivetrain.drive_for(REVERSE, 300, MM)'. There is an empty circle to its right, indicating a place for a matching answer.
The logo of the Ministry of Education, with text 'وزارة التعليم' (Ministry of Education) and 'Ministry of Education 2025 - 1447' below it.
The page number '362' printed at the bottom right corner of the page.
📄 النص الكامل للصفحة
--- SECTION: تدريب 2 ---
تدريب 2
اكتب رقم اللبنة البرمجية أمام الأمر الصحيح بلغة بايثون.
1. speed = 20
2. drivetrain.set drive velocity(20, PERCENT)
3. drivetrain.drive_for(FORWARD, 300, MM)
4. for repeat_count in range(20):
5. drivetrain.drive_for(REVERSE, 300, MM)
وزارة التعليم
Ministry of Education
2025 - 1447
362
--- VISUAL CONTEXT ---
**PROGRAMMING_BLOCK**: Untitled
Description: A blue programming block labeled with the number 1. It contains the text 'اضبط سرعة القيادة إلى 20 %' (Set drive speed to 20%). It has a dropdown for '20' and a '%' symbol.
Key Values: 20%
Context: Represents a command to set the robot's drive velocity.
**PROGRAMMING_BLOCK**: Untitled
Description: An orange programming block labeled with the number 2. It contains the text 'مجموعة speed إلى 20' (Set speed to 20). It has a dropdown for 'speed' and a numerical input '20'.
Key Values: 20
Context: Represents a command to assign a value to a variable named 'speed'.
**PROGRAMMING_BLOCK**: Untitled
Description: An orange C-shaped programming block labeled with the number 3. It contains the text 'تكرار 20' (Repeat 20) and has a numerical input '20'. The C-shape indicates a loop structure.
Key Values: 20
Context: Represents a loop structure that repeats an action 20 times.
**PROGRAMMING_BLOCK**: Untitled
Description: A blue programming block labeled with the number 4. It contains the text 'تحرك إلى الأمام 300 عدد mm' (Move forward 300 mm). It has dropdowns for 'إلى الأمام' (forward) and 'mm' (millimeters), and a numerical input '300'.
Key Values: 300
Context: Represents a command to move the robot forward by a specified distance.
**PROGRAMMING_BLOCK**: Untitled
Description: A blue programming block labeled with the number 5. It contains the text 'تحرك إلى الخلف 300 عدد mm' (Move backward 300 mm). It has dropdowns for 'إلى الخلف' (backward) and 'mm' (millimeters), and a numerical input '300'.
Key Values: 300
Context: Represents a command to move the robot backward by a specified distance.
**CODE_SNIPPET**: Untitled
Description: A text box containing the Python code: 'speed = 20'. There is an empty circle to its right, indicating a place for a matching answer.
Key Values: 20
Context: Python command for variable assignment.
**CODE_SNIPPET**: Untitled
Description: A text box containing the Python code: 'drivetrain.set drive velocity(20, PERCENT)'. There is an empty circle to its right, indicating a place for a matching answer.
Key Values: 20, PERCENT
Context: Python command to set the drive velocity of a robot's drivetrain.
**CODE_SNIPPET**: Untitled
Description: A text box containing the Python code: 'drivetrain.drive_for(FORWARD, 300, MM)'. There is an empty circle to its right, indicating a place for a matching answer.
Key Values: FORWARD, 300, MM
Context: Python command to drive a robot forward for a specified distance in millimeters.
**CODE_SNIPPET**: Untitled
Description: A text box containing the Python code: 'for repeat_count in range(20):'. There is an empty circle to its right, indicating a place for a matching answer.
Key Values: 20
Context: Python command for a 'for' loop that iterates 20 times.
**CODE_SNIPPET**: Untitled
Description: A text box containing the Python code: 'drivetrain.drive_for(REVERSE, 300, MM)'. There is an empty circle to its right, indicating a place for a matching answer.
Key Values: REVERSE, 300, MM
Context: Python command to drive a robot in reverse for a specified distance in millimeters.
**FIGURE**: Untitled
Description: The logo of the Ministry of Education, with text 'وزارة التعليم' (Ministry of Education) and 'Ministry of Education 2025 - 1447' below it.
Context: Metadata indicating the publisher and copyright year.
**TEXT**: Untitled
Description: The page number '362' printed at the bottom right corner of the page.
Context: Page navigation metadata.
🎴 بطاقات تعليمية للمراجعة
عدد البطاقات: 5 بطاقة لهذه الصفحة
ما رقم اللبنة البرمجية التي تطابق الأمر `speed = 20` بلغة بايثون؟
الإجابة الصحيحة: b
الإجابة: 2
الشرح: 1. الأمر `speed = 20` بلغة بايثون يقوم بتعيين القيمة 20 للمتغير `speed`.
2. اللبنة البرمجية التي تعبر عن هذا هي 'مجموعة speed إلى 20'.
3. هذه اللبنة تحمل الرقم 2.
تلميح: ركز على وظيفة الأمر (تعيين قيمة لمتغير) ومطابقتها مع اللبنة التي تؤدي نفس الوظيفة.
التصنيف: مسألة تدريبية | المستوى: سهل
ما رقم اللبنة البرمجية التي تطابق الأمر `for repeat_count in range(20):` بلغة بايثون؟
الإجابة الصحيحة: c
الإجابة: 3
الشرح: 1. الأمر `for repeat_count in range(20):` ينشئ حلقة تكرارية لتنفيذ مجموعة من التعليمات 20 مرة.
2. اللبنة البرمجية التي تمثل حلقة التكرار هي 'تكرار 20'.
3. هذه اللبنة تحمل الرقم 3.
تلميح: تذكر أن الأمر 'for' يستخدم لإنشاء حلقات التكرار.
التصنيف: مسألة تدريبية | المستوى: متوسط
ما رقم اللبنة البرمجية التي تطابق الأمر `drivetrain.set_drive_velocity(20, PERCENT)` بلغة بايثون؟
الإجابة الصحيحة: a
الإجابة: 1
الشرح: 1. الأمر `drivetrain.set_drive_velocity(20, PERCENT)` يحدد سرعة حركة الروبوت بنسبة مئوية.
2. اللبنة البرمجية التي تؤدي هذه الوظيفة هي 'اضبط سرعة القيادة إلى 20 %'.
3. هذه اللبنة تحمل الرقم 1.
تلميح: ابحث عن اللبنة التي تتحكم في سرعة القيادة أو الحركة بنسبة مئوية.
التصنيف: مسألة تدريبية | المستوى: متوسط
ما رقم اللبنة البرمجية التي تطابق الأمر `drivetrain.drive_for(FORWARD, 300, MM)` بلغة بايثون؟
الإجابة الصحيحة: c
الإجابة: 4
الشرح: 1. الأمر `drivetrain.drive_for(FORWARD, 300, MM)` يوجه الروبوت للتحرك للأمام لمسافة 300 مليمتر.
2. اللبنة البرمجية التي تؤدي هذه الوظيفة هي 'تحرك إلى الأمام 300 عدد mm'.
3. هذه اللبنة تحمل الرقم 4.
تلميح: ابحث عن اللبنة التي تصف حركة الروبوت للأمام لمسافة محددة.
التصنيف: مسألة تدريبية | المستوى: سهل
ما رقم اللبنة البرمجية التي تطابق الأمر `drivetrain.drive_for(REVERSE, 300, MM)` بلغة بايثون؟
الإجابة الصحيحة: d
الإجابة: 5
الشرح: 1. الأمر `drivetrain.drive_for(REVERSE, 300, MM)` يوجه الروبوت للتحرك للخلف لمسافة 300 مليمتر.
2. اللبنة البرمجية التي تؤدي هذه الوظيفة هي 'تحرك إلى الخلف 300 عدد mm'.
3. هذه اللبنة تحمل الرقم 5.
تلميح: ابحث عن اللبنة التي تصف حركة الروبوت للخلف لمسافة محددة.
التصنيف: مسألة تدريبية | المستوى: سهل