☰ خطة العام · تكنولوجيا المعلومات والاتصالات (بالإنجليزية)

Algorithms and flowcharts

الأسبوع 4 · الدرس ٢ «خوارزميات الذكاء الاصطناعي» (١): تعريف الخوارزمية وأشكال خريطة التدفق والخوارزميات التسلسلية والشرطية والتكرارية · 3 دروس
Answers are for parents and teachers.
1
Write five ordered steps for tidying your school desk. Swap two steps and say what goes wrong.
2
Name the shape for each: Start, read num, num > 0 ?, total = a + b.
3
What does the program in the picture show?
Python
1for i in range(3):
2    print("Hi")
4
The positive-or-not program shows Not positive for 0. Why is this message better than Negative, and what would you add to show a special message for 0?
5
Is “repeat a step until the bag is full” a sequential, conditional or loop algorithm? Give a reason.