Page 83 - 2502_Pakistan-kifayat_C-8
P. 83

Tick ( ) the correct statements and cross ( ) the wrong ones.


                        1.  A Repeat loop runs a block a fixed number of times.


                        2.  A Forever loop is used to repeat a set of actions a fixed number of times.

                        3.  A sequence is a set of instructions that are carried out in order.

                        4.  Nested conditions are two conditions written one after another.

                        5.  A loop is used to repeat actions in a program.

                    A   Answer the following questions:
                  Q
                        1.   What is a constant?









                        2.   Explain the concept of nesting.









                        3.   What does the IF-THEN-ELSE statement do?









                        4.  Differentiate between a Repeat loop and a Forever loop with examples.








                        5.  Write an example of a nested loop using pseudocode.










                                                                                                   21 st
                        Scratch Your Brain.                                                      Century   #Critical Thinking
                                                                                                   Skills
                        1.  Guess! Who am I?
                            a.  I am a condition inside another condition.





                                                                                                          #Nesting  81
   78   79   80   81   82   83   84   85   86   87   88