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

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

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

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

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

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

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

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

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

السؤال السادس

6

نوع: QUESTION_HOMEWORK

صل اللبنات الموجودة في العمود الأول مع الوظيفة المناسبة لها في العمود الثاني.

نوع: METADATA

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

نوع: METADATA

178

🔍 عناصر مرئية

A block-based code snippet representing an event handler. It starts with 'when Foods .AfterPicking do', indicating that the code inside this block will execute after an item is selected or 'picked' from a component named 'Foods'. This is typically used for handling user interaction with list pickers or dropdowns.

A block-based code snippet for an event handler. It starts with 'when Button1 .Click do', indicating a button click event. Inside this event, it uses 'initialize local a to "10" in' to declare and set the initial value of a local variable named 'a' to the string '10'. The 'in' keyword suggests a scope for this local variable.

A block-based code snippet for initializing a global variable. It reads 'initialize global name to', with an empty slot provided for the initial value. This block is used to declare a variable that is accessible throughout the entire program.

A block-based code snippet for creating a list data structure. It reads 'make a list' and shows multiple empty slots, indicating that items can be added to this list. This block is used to construct a collection of elements.

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

السؤال السادس --- SECTION: 6 --- صل اللبنات الموجودة في العمود الأول مع الوظيفة المناسبة لها في العمود الثاني. 1. تنشئ متغيرًا محليًا. 2. تُستخدم لتحديد ما يجب أن يحدث بعد أن يختار المستخدم عنصرًا من القائمة. 3. تنشئ قائمة بالعناصر. 4. تُستخدم لتعريف متغير عام. وزارة التعليم Ministry of Education 2025 - 1447 178 --- VISUAL CONTEXT --- **DIAGRAM**: Untitled Description: A block-based code snippet representing an event handler. It starts with 'when Foods .AfterPicking do', indicating that the code inside this block will execute after an item is selected or 'picked' from a component named 'Foods'. This is typically used for handling user interaction with list pickers or dropdowns. Context: This block is used to define actions that occur in response to a specific user event, such as selecting an item from a list. It is associated with the function 'تُستخدم لتحديد ما يجب أن يحدث بعد أن يختار المستخدم عنصرًا من القائمة.' (Used to determine what should happen after the user selects an item from the list.) **DIAGRAM**: Untitled Description: A block-based code snippet for an event handler. It starts with 'when Button1 .Click do', indicating a button click event. Inside this event, it uses 'initialize local a to "10" in' to declare and set the initial value of a local variable named 'a' to the string '10'. The 'in' keyword suggests a scope for this local variable. Context: This block is used to create and assign an initial value to a variable that is only accessible within a specific scope (local). It is associated with the function 'تنشئ متغيرًا محليًا.' (Creates a local variable.) **DIAGRAM**: Untitled Description: A block-based code snippet for initializing a global variable. It reads 'initialize global name to', with an empty slot provided for the initial value. This block is used to declare a variable that is accessible throughout the entire program. Context: This block is used to create and assign an initial value to a variable that is accessible from any part of the program (global). It is associated with the function 'تُستخدم لتعريف متغير عام.' (Used to define a global variable.) **DIAGRAM**: Untitled Description: A block-based code snippet for creating a list data structure. It reads 'make a list' and shows multiple empty slots, indicating that items can be added to this list. This block is used to construct a collection of elements. Context: This block is used to create a data structure that can hold multiple items in an ordered sequence. It is associated with the function 'تنشئ قائمة بالعناصر.' (Creates a list of items.)

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

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

سؤال 1: تنشئ متغيرًا محليًا.

الإجابة: الجواب: initialize local ... to ... in

خطوات الحل:

  1. **الشرح:** لنفهم هذا السؤال: عندما نريد إنشاء متغير في البرمجة، يجب أن نحدد نوعه واسمه وقيمته الأولية. المتغير المحلي هو متغير يُستخدم فقط داخل جزء معين من البرنامج (مثل داخل إجراء أو دالة). لذلك، عند إنشاء متغير محلي، نبدأ بكلمة تُشير إلى عملية الإنشاء والتخصيص الأولي، ثم نكتب اسم المتغير، ثم نحدد قيمته الأولية، وأخيرًا نحدد النطاق أو المكان الذي سيكون صالحًا للاستخدام فيه. إذن الإجابة هي: **initialize local ... to ... in**

سؤال 2: تُستخدم لتحديد ما يجب أن يحدث بعد أن يختار المستخدم عنصرًا من القائمة.

الإجابة: الجواب: when Foods .AfterPicking do

خطوات الحل:

  1. **الشرح:** الفكرة هنا هي التعامل مع الأحداث في البرمجة. عندما يختار المستخدم عنصرًا من قائمة، يحدث حدث معين. نحتاج إلى أمر يخبر البرنامج بما يجب فعله بعد حدوث هذا الحدث مباشرة. هذا الأمر عادة ما يبدأ بكلمة تربط الحدث (اختيار العنصر) بالإجراء المطلوب تنفيذه. ثم نكتب اسم القائمة المعنية، ونحدد أن الإجراء سيكون بعد عملية الاختيار. إذن الإجابة هي: **when Foods .AfterPicking do**

سؤال 3: تنشئ قائمة بالعناصر.

الإجابة: الجواب: make a list

خطوات الحل:

  1. **الشرح:** في البرمجة، القائمة هي هيكل بيانات يجمع عدة عناصر معًا. لإنشاء قائمة جديدة، نستخدم أمرًا يتكون من فعل يشير إلى عملية الإنشاء أو الصنع، ثم تحديد نوع الهيكل الذي نريد إنشاءه، وهو القائمة. هذا الأمر بسيط ويُستخدم لبدء قائمة فارغة أو مع عناصر أولية، حسب السياق. إذن الإجابة هي: **make a list**

سؤال 4: تُستخدم لتعريف متغير عام.

الإجابة: الجواب: initialize global ... to

خطوات الحل:

  1. **الشرح:** لنفهم هذا السؤال: المتغير العام هو متغير يمكن الوصول إليه واستخدامه من أي جزء في البرنامج، على عكس المتغير المحلي. عند تعريف متغير عام، نحتاج إلى أمر يبدأ عملية التهيئة أو التعريف، ثم نحدد أن هذا المتغير عام، ونكتب اسمه، ونعين له قيمة أولية. هذا يضمن أن المتغير معروف ومتاح في جميع أجزاء البرنامج. إذن الإجابة هي: **initialize global ... to**