Page 98 - TP_Play_V2.2_Class8
P. 98

Scratch Your Brain.                                                  Century   #Critical Thinking
                                                                                             21 st
                                                                                            Skills  #Productivity & Accountability
                      1.  Write the output of the following programs:
                         a.
                             Repeat 2 times
                             {
                                Enter num
                             }
                             If num1 > num2
                             Then
                                Print “num1 is greater”                   Num1      4      7      87     45     22
                             Else                                         Num2      7      5      34     32     90
                                Print “num2 is greater”
                                                                           Print
                         b.
                             Repeat 5
                             {
                                Read marks
                                If marks is > 50
                                Then
                                    Print Pass
                                Else                                        Marks    45     40    55     49     85
                                    Print Fail
                             }                                              Result


                         c.                                                start
                             Repeat 5 times
                             (
                                Put a cross
                                Move 1 step right
                                Put a tick
                                Move 1 step down
                             )


                         d.    Repeat 5 times                                                            start

                             (
                                write “8”
                                Move 1 step left
                             )






                      2.  Read the program and do as directed.
                         a.
                             Repeat 3 times
                             (
                              Colour Yellow
                              Skip One Triangle
                             )                                        start




                  96  Plus (Ver. 4.0)-VIII
   93   94   95   96   97   98   99   100   101   102   103