Page 94 - 2502_Pakistan-kifayat_C-7
P. 94

2.   Competency-based/Application-based questions:

                         a.   Sofia wants her robot to wave five times. Which type of loop should she use?

                         b.   Saheen is creating a program that prints “Well done!” only if the user scores more than 80. Which
                            condition statement will he use?



                                                                                    21 st
                       DIY In The Lab                                             Century   #Technology Literacy
                                                                                       #Creativity
                                                                                    Skills
               To
               Subject   Programming

                 1.   Write an algorithm that checks the temperature and gives a message; If the temperature is below 10°C,
                    print “It is cold”.
                 2.  Write an algorithm that reads a person’s age and classifies it as either “Child”, or “Adult”.






              For The Teacher

                  Discuss about some real-life examples of conditional situations to teach the concept of conditions.
                  Explain the concept of loop with some real-life examples.


















































                  92  Premium Edition-VII
   89   90   91   92   93   94   95   96   97   98   99