Page 31 - Touchcode_C7_Flipbook
P. 31

c.  A fault in a program that generates incorrect output.
                         d.  All of the above

                     4.  Which loop repeats a statement or group of statements when a given condition is ‘true’?

                         a.  While                                    b.  For
                         c.  Nested                                   d.  If

                     5.  Which loop triggers the inner loop, when the outer loop condition  is ‘true’?

                         a.  While                                    b.  For
                         c.  Nested                                   d.  If


                 B.  State whether the following statements are true (T) or false (F).

                     1.  Selection can be described as making a choice based on criteria.

                     2.  The sequencing can also be set to run for a specific number of times.


                     3.  We can reduce the number of steps of the sequence by using a loop.


                     4.  Loop condition should result false at a certain point of time.

                     5.  To move to the next iteration, you need to increase the count of iteration to two.

                 C.  Fill in the blanks.

                                             HELP BOX     complex, bug, logical, loop, temp

                    1.  Sequence of programming reflects ........................... thinking.

                    2.  Building blocks help us to convert any ........................... problem into a well-defined solution.

                    3.  To swap two numbers, assign the value of num1 to a ........................... .

                    4.  ........................... is used to describe any unexpected problem.

                    5.  A ........................... statement allows you to execute a statement.

                 D.  Match the following:

                     1.  Selection                      a.  Loop inside another loop
                     2.  Iteration                      b.  Reduce the number of steps of the sequence

                     3.  Loop                           c.   Executes for a specific number of times till the condition
                                                            is true

                     4.  for loop                       d.  Repeating situations

                     5.  Nested Loop                    e.  To make a choice



                                                                                 Sequencing with Block Coding    29
   26   27   28   29   30   31   32   33   34   35   36