Page 131 - CG_v2.1_flipBooks_class_5
P. 131

C.  Match the following:

                         Code                                                      Output


                     1.
                                                                                   a. -10.0





                     2.
                                                                                   b. 14.0



                     3.
                                                                                   c. 15.0


                     4.                                                            d. 1.0

                 D.  Answer the following questions:
                    1.  Write the difference between Repeat and Repeat while loop.



                    2.  What is round up and round down? Give one example for each.





                    3.  Write any two uses of math blocks.





                    4.  Write code to add two numbers, 14 and 21.









                      FUN ZONE                                                        Computational Thinking



                  Write the output of the following codes:
                  1.                                                    2.

















                                                                                  Math Operators and Loops    129
   126   127   128   129   130   131   132   133   134   135   136