صفحة 151 - كتاب التقنية الرقمية - الصف 12 - الفصل 1 - المملكة العربية السعودية

الكتاب: كتاب التقنية الرقمية - الصف 12 - الفصل 1 | المادة: التقنية الرقمية | المرحلة: الصف 12 | الفصل الدراسي: 1

الدولة: المملكة العربية السعودية | المنهج: المنهج السعودي - وزارة التعليم

📚 معلومات الصفحة

الكتاب: كتاب التقنية الرقمية - الصف 12 - الفصل 1 | المادة: التقنية الرقمية | المرحلة: الصف 12 | الفصل الدراسي: 1

الدولة: المملكة العربية السعودية | المنهج: المنهج السعودي - وزارة التعليم

📋 المحتوى المنظم

📖 محتوى تعليمي مفصّل

نوع: محتوى تعليمي

سيتم تشغيل هذا الحدث بعد اختيار عنصر من القائمة؛ يُرجع منتقي القائمة (ListPicker) نتائجه والخصائص التي تم ملؤها فيه.

نوع: METADATA

151 وزارة التعليم Ministry of Education 2025 - 1447

🔍 عناصر مرئية

واجهة برمجة تطبيق Healthy_Food (الجزء العلوي)

A screenshot of a blocks-based programming environment (similar to App Inventor) for an application named 'Healthy_Food'. It displays the 'Blocks' palette on the left (labeled 4) and the 'Viewer' area on the right (labeled 5) where programming logic is assembled. The numbers 4 and 5 are internal labels for areas within the diagram, not external question numbers.

واجهة برمجة تطبيق Healthy_Food (الجزء السفلي)

A continuation of the blocks-based programming environment for the 'Healthy_Food' app. It shows the 'Blocks' palette on the left (labeled 6) with the 'Foods' component expanded, and the 'Viewer' area on the right (labeled 7 and 8) with more blocks, alongside the 'Properties' panel (labeled 9). The numbers 6, 7, 8, and 9 are internal labels for areas within the diagram, not external question numbers.

كتلة حدث AfterPicking لمنتقي القائمة

A highlighted yellow programming block illustrating the 'AfterPicking' event for a ListPicker component named 'Foods'. This block is directly explained by the Arabic text above it.

📄 النص الكامل للصفحة

سيتم تشغيل هذا الحدث بعد اختيار عنصر من القائمة؛ يُرجع منتقي القائمة (ListPicker) نتائجه والخصائص التي تم ملؤها فيه. 151 وزارة التعليم Ministry of Education 2025 - 1447 --- VISUAL CONTEXT --- **DIAGRAM**: واجهة برمجة تطبيق Healthy_Food (الجزء العلوي) Description: A screenshot of a blocks-based programming environment (similar to App Inventor) for an application named 'Healthy_Food'. It displays the 'Blocks' palette on the left (labeled 4) and the 'Viewer' area on the right (labeled 5) where programming logic is assembled. The numbers 4 and 5 are internal labels for areas within the diagram, not external question numbers. Context: This diagram illustrates the initial setup of an App Inventor project, including global variable declarations, list initialization for a ListPicker component, and basic event handling for screen navigation and ListPicker population. **DIAGRAM**: واجهة برمجة تطبيق Healthy_Food (الجزء السفلي) Description: A continuation of the blocks-based programming environment for the 'Healthy_Food' app. It shows the 'Blocks' palette on the left (labeled 6) with the 'Foods' component expanded, and the 'Viewer' area on the right (labeled 7 and 8) with more blocks, alongside the 'Properties' panel (labeled 9). The numbers 6, 7, 8, and 9 are internal labels for areas within the diagram, not external question numbers. Context: This diagram further elaborates on component property manipulation and event handling in App Inventor, specifically demonstrating how to interact with a ListPicker component and its associated properties and events. **DIAGRAM**: كتلة حدث AfterPicking لمنتقي القائمة Description: A highlighted yellow programming block illustrating the 'AfterPicking' event for a ListPicker component named 'Foods'. This block is directly explained by the Arabic text above it. Context: This block is a specific example of how to capture and utilize the user's selection from a ListPicker component, which is a common UI interaction pattern in mobile app development. The accompanying text explains its function.

✅ حلول أسئلة الكتاب الرسمية

عدد الأسئلة: 1

سؤال مربع-1: سيتم تشغيل هذا الحدث بعد اختيار عنصر من القائمة؛ يُرجع منتقي القائمة (ListPicker) نتائجه والخصائص التي تم ملؤها فيه.

الإجابة: Foods .Selection

خطوات الحل:

  1. **الشرح:** لنفهم هذا السؤال. يتحدث السؤال عن حدث (Event) في البرمجة، وهو حدث يتم تشغيله بعد أن يقوم المستخدم باختيار عنصر من قائمة (List). الأداة المسؤولة عن هذه القائمة تسمى "منتقي القائمة" أو ListPicker. الفكرة هنا هي أن هذه الأداة، بعد أن يختار المستخدم عنصراً، تُرجع أو تعطي نتيجتين رئيسيتين: أولاً، العنصر الذي تم اختياره (النتيجة)، وثانياً، المعلومات أو الخصائص (Properties) المرتبطة بهذا العنصر والتي تم تعبئتها مسبقاً داخل الأداة. السؤال يطلب منا كتابة الكود أو التعبير البرمجي الصحيح للوصول إلى العنصر المختار من القائمة المسماة "Foods". في لغة البرمجة، عادةً ما نصل إلى العنصر المختار في قائمة (ListPicker) باستخدام خاصية اسمها `.Selection`، والتي تعني "الاختيار". إذن، للوصول إلى العنصر المختار من قائمة الأطعمة (Foods)، نكتب اسم القائمة ثم نضيف نقطة ثم كلمة `Selection`. لذلك الإجابة هي: **Foods.Selection**