Page 170 - Open Soource Technologies 304.indd
P. 170

Event Driven Programming



                            5. The ………… repeats a sequence of statements either as long as or until a certain condition
                               is true.
                                (a) Do loop                 (b) Do while loops

                                (c) If block                (d) If-else
                            6. For... Next loops are easy to read and write, and have features that make them ideal for
                               certain common tasks.
                                (a) For…Next loops          (b) If-else
                                (c) Do While loops          (d) While-Wind

                          6.10 Review Questions

                            1. With a single loop, determine whether the array is in ascending order, descending order,
                               both, or neither.
                            2. What is an array? Explain declaration and processing of one and two dimensional array.
                               How to create dynamic array?
                            3. Explain If-else block with the help of suitable examples.
                            4. Variables are rarely declared inside an If ... Then block or a Select Case block. If so, such
                               a variable has block-level scope; that is, the variable cannot be referred to by code outside
                               of the block.

                            5. What do you mean by Do while loops and give its syntex also?
                          Answers for Self Assessment Questions
                               1. (a)              2. (a)               3. (c)              4. (b)

                               5. (a)              6. (a)
                          6.11 Further Readings


                                        G. Cornell , “Visual Basic 6”, Tata McGraw-Hill, 1998.
                                        Null Dale, Michael Mc Millan, ”Visual Basic .Net.”




                                        http://microsoft.com/mspress/findabook/list/title.aspx


















                          164                    LOVELY PROFESSIONAL UNIVERSITY
   165   166   167   168   169   170   171   172   173   174   175