Page 81 - ThinkGPT_V2.1_C7_Flipbook
P. 81

Periodic Assessment 2



                                                     (Based on chapters 4 & 5)





                 A.  Colour the boxes as per the program.

                                                                    
                      IF (box has *) THEN
                          Colour it red                                  
                      ELSE
                                                                             
                          Colour it yellow


                 B.  Write an IF-THEN-ELSE condition to check if a triangle is equilateral triangle or not.















                 C.   Create an IF-THEN-ELSE statement to determine whether a student has passed or failed an exam.
                    The passing score is 60.














                 D.  Define the following terms:

                    1.   Variables:


                    2.  Initialisation:



                    3.  Math Blocks:



                    4.  Logic Blocks:





                                                                                      Periodic Assessment 2   79
   76   77   78   79   80   81   82   83   84   85   86