MIT App Inventor Blocks - كتاب هندسة البرمجيات - الصف 12 - الفصل 1 - المملكة العربية السعودية

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

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

الدرس: MIT App Inventor Blocks

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

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

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

نوع المحتوى: درس تعليمي

مستوى الصعوبة: متوسط

📝 ملخص الصفحة

تقدم هذه الصفحة شرحاً مفصلاً لاستخدام كتل MIT App Inventor في تطوير تطبيقات الجوال، مع التركيز على ثلاثة أنواع رئيسية من الكتل البرمجية.

الجزء الأول يوضح كتل معالجة الأحداث (Event Blocks) الخاصة بمكون القائمة 'riyadh_list'، حيث يتم عرض أربعة أحداث مختلفة: 'AfterPicking'، 'BeforePicking'، 'GotFocus'، و'LostFocus'. يظهر الرسم التوضيحي واجهة MIT App Inventor مع التركيز على كيفية تفعيل هذه الأحداث في التطبيق 'Visit_SA_App'.

الجزء الثاني يركز على كتل المنطق الشرطي (Conditional Logic Blocks) مثل 'if then' و'if then else'، مع شرح كيفية توسيعها باستخدام 'else if' لإنشاء شروط أكثر تعقيداً. يبين الرسم التوضيحي كيفية الوصول إلى هذه الكتل من خلال فئة 'Control' في لوحة 'Blocks'.

الجزء الثالث يشرح كتل المنطق البولياني والمقارنة (Boolean and Comparison Logic Blocks) مثل 'true'، 'false'، 'not'، '='، و'and'. يُظهر كيف يتم دمج هذه الكتل داخل الهياكل الشرطية 'if then else if then' لبناء منطق برمجي متقدم، مع إبراز فئة 'Logic' في الواجهة.

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

وزارة التعليم Ministry of Education 2025 - 1447 160 --- VISUAL CONTEXT --- **DIAGRAM**: MIT App Inventor Interface - Event Blocks Description: A screenshot of the MIT App Inventor interface for the 'Visit_SA_App'. The top bar shows the 'MIT APP INVENTOR' logo and menu options: 'Projects', 'Connect', 'Build', 'Settings', 'Help'. Below that, the app name 'Visit_SA_App' is displayed with buttons: 'Cities', 'Add Screen', 'Remove Screen', 'Publish to Gallery'. The main workspace is divided into two panels: 'Blocks' (left) and 'Viewer' (right). The 'Blocks' panel lists 'Built-in' categories (Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures) and a 'Cities' component. The 'Viewer' panel displays four event blocks for 'riyadh_list': 'when riyadh_list AfterPicking do', 'when riyadh_list BeforePicking do', 'when riyadh_list GotFocus do', and 'when riyadh_list LostFocus do'. A blue numbered circle '1' points from the 'when riyadh_list BeforePicking do' block in the main viewer to an identical, isolated 'when riyadh_list BeforePicking do' block on the right, emphasizing it. Key Values: MIT APP INVENTOR, Projects, Connect, Build, Settings, Help, Visit_SA_App, Cities, Add Screen, Remove Screen, Publish to Gallery, Blocks, Viewer, Built-in, Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures, Cities, when riyadh_list AfterPicking do, when riyadh_list BeforePicking do, when riyadh_list GotFocus do, when riyadh_list LostFocus do Context: This diagram illustrates how to use event handler blocks in MIT App Inventor, specifically for a list component named 'riyadh_list', showing different events like 'AfterPicking', 'BeforePicking', 'GotFocus', and 'LostFocus'. **DIAGRAM**: MIT App Inventor Interface - Conditional Logic Blocks Description: A second screenshot of the MIT App Inventor interface for the 'Visit_SA_App'. The top bar and app name/buttons are identical to the first screenshot. In the 'Blocks' panel, the 'Control' category under 'Built-in' is highlighted. The 'Viewer' panel displays two conditional blocks: 'if then' and 'if then else'. A blue numbered circle '2' points from the 'if then else' block in the main viewer to a callout on the right. This callout shows two smaller blocks, 'else if' and 'else', which are options to modify conditional blocks, and a larger, expanded conditional block: 'if then else if then'. Key Values: MIT APP INVENTOR, Projects, Connect, Build, Settings, Help, Visit_SA_App, Cities, Add Screen, Remove Screen, Publish to Gallery, Blocks, Viewer, Built-in, Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures, Cities, if then, if then else, else if, else Context: This diagram demonstrates the basic conditional logic blocks ('if then', 'if then else') available in MIT App Inventor, and how they can be extended with 'else if' clauses for more complex decision-making. **DIAGRAM**: MIT App Inventor Interface - Boolean and Comparison Logic Blocks Description: A third screenshot of the MIT App Inventor interface for the 'Visit_SA_App'. The top bar and app name/buttons are identical to the previous screenshots. In the 'Blocks' panel, the 'Logic' category under 'Built-in' is highlighted. The 'Viewer' panel displays several logic blocks: 'true', 'false', 'not', a comparison block with an equals sign '=', and an 'and' block. A blue numbered circle '3' points from the '=' block in the main viewer to a callout on the right. This callout shows an 'if then else if then' block, similar to the one in the previous figure, but with two '=' comparison blocks inserted into its conditional slots, demonstrating how logic blocks are used within conditional statements. Key Values: MIT APP INVENTOR, Projects, Connect, Build, Settings, Help, Visit_SA_App, Cities, Add Screen, Remove Screen, Publish to Gallery, Blocks, Viewer, Built-in, Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures, Cities, true, false, not, =, and, if then else if then Context: This diagram illustrates various boolean and comparison logic blocks ('true', 'false', 'not', '=', 'and') in MIT App Inventor and shows how they are integrated into conditional 'if then else if then' structures to build program logic.

🎴 بطاقات تعليمية للمراجعة

عدد البطاقات: 5 بطاقة لهذه الصفحة

ما هي كتل المنطق الشرطي الأساسية (Conditional Logic Blocks) في MIT App Inventor؟

الإجابة: الكتل الأساسية هي: 'if then' (إذا - إذن) و 'if then else' (إذا - إذن - وإلا).

الشرح: يظهر الشكل الثاني في واجهة MIT App Inventor كتلتين شرطيتين أساسيتين هما نقطة البداية لبناء هياكل اتخاذ القرار في التطبيق.

تلميح: ركز على الكتل الموضحة في لوحة المشاهد (Viewer) في الشكل الثاني قبل التوسعة.

التصنيف: تعريف | المستوى: سهل

كيف يمكن توسيع كتلة 'if then else' الأساسية في MIT App Inventor لاتخاذ قرارات أكثر تعقيداً؟

الإجابة: يمكن توسيعها بإضافة بند 'else if' (وإلا إذا) لفحص شروط إضافية بين الشرط الرئيسي والنتيجة الافتراضية.

الشرح: يوضح الشكل الثاني أن كتلة 'if then else' يمكن تعديلها لتصبح 'if then else if then'، مما يسمح بفحص سلسلة من الشروط المتتالية.

تلميح: انظر إلى خيارات التعديل (options to modify) الموضحة في الإطار المنبثق في الشكل الثاني.

التصنيف: صيغة/خطوات | المستوى: متوسط

ما هي أنواع كتل المنطق (Logic Blocks) المتاحة في فئة 'Logic' في MIT App Inventor؟

الإجابة: تشمل كتل المنطق: القيم المنطقية ('true' صحيح، 'false' خطأ)، عامل النفي ('not' ليس)، كتل المقارنة (مثل '=' يساوي)، وعامل الربط ('and' و).

الشرح: يوفر MIT App Inventor مجموعة من الكتل تحت فئة 'Logic' لتمثيل وتنفيذ العمليات المنطقية والقياسات الضرورية لبرمجة التطبيقات.

تلميح: راجع الكتل المعروضة في لوحة المشاهد (Viewer) في الشكل الثالث عندما تكون فئة 'Logic' مظللة.

التصنيف: مفهوم جوهري | المستوى: متوسط

كيف يتم دمج كتل المنطق (مثل كتل المقارنة) مع كتل التحكم الشرطية في MIT App Inventor؟

الإجابة: يتم إدخال كتل المنطق (مثل كتلة المقارنة '=') في فتحات (slots) الشروط الخاصة بكتل 'if' أو 'else if' لبناء منطق البرنامج.

الشرح: يظهر الشكل الثالث تطبيقاً عملياً لاستخدام كتل المنطق، حيث تم إدخال كتلتين للمقارنة داخل كتلة شرطية موسعة لتحديد مسار تنفيذ البرنامج بناءً على تقييم تلك المقارنات.

تلميح: لاحظ كيف تم إدخال كتلتين من المقارنة '=' داخل كتلة 'if then else if then' في الإطار المنبثق في الشكل الثالث.

التصنيف: مفهوم جوهري | المستوى: صعب

ما هو الغرض من استخدام حدث 'BeforePicking' لمكون القائمة في MIT App Inventor؟

الإجابة: يتم تنفيذ الكتل البرمجية المرتبطة بحدث 'BeforePicking' قبل أن يقوم المستخدم باختيار عنصر من القائمة.

الشرح: يسمح هذا الحدث للمبرمج بإعداد البيانات أو تنفيذ إجراءات معينة (مثل التصفية أو التحديث) مباشرة قبل أن يتفاعل المستخدم مع القائمة لاختيار عنصر منها.

تلميح: فكر في التوقيت: 'قبل' حدوث فعل الاختيار من قبل المستخدم.

التصنيف: مفهوم جوهري | المستوى: متوسط