Page 39 - Touchcode_C8_Flipbook
P. 39

D.  Match the following:

                     1.  While loop               a.  Repetitive task.
                     2.  For loop                 b.  Loop inside another loop.

                     3.  Nested loop              c.   Condition that must be met before completing a specific task.

                     4.  Loops                    d.   Executes  a statement or group  of  statements till  a given
                                                      condition is true.
                     5.  Exit criteria            e.  Iterating over sequence a specific number of times.


                 E.  Answer the following questions:

                     1.  What are the different types of control structures?
                         .............................................................................................................................................................

                         .............................................................................................................................................................

                     2.  What are logical operators?

                         .............................................................................................................................................................

                         .............................................................................................................................................................

                     3.  What are the different types of loops?
                         .............................................................................................................................................................

                         .............................................................................................................................................................

                     4.  Write the difference between While loop and For loop.

                         .............................................................................................................................................................

                         .............................................................................................................................................................
































                                                                                                 Test Sheet 1    37
   34   35   36   37   38   39   40   41   42   43   44