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

Unit 4: VB Programming Fundamentals



                  4. The highest Watch scope meaningful to a variable declared in a module using the Private
                    keyword is
                     (a) Global                   (b) Module-level
                     (c) Procedure-level          (d) Indeterminate
                  5. The with Events Keyword is valid only in class modules.
                     (a) False                    (b) True

               4.7  Review Questions

                  1. Dim x, y as integer. What is x and y data type?

                  2. What are the scopes of the variables?
                  3. Explain about declaring variables in Visual basic.
                  4. Describe the different scopes of variables in VB.
                  5. What is Implicit?

                  6. What is Explicit?
                  7. What is variable scope lifetime?
               Answers for Self Assessment Questions

                    1. (a) (b) and (c)   2. (b) and (c)      3. (a)               4. (b)
                    5. (b)

               4.8  Further Readings

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




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






















                                      LOVELY PROFESSIONAL UNIVERSITY                         91
   92   93   94   95   96   97   98   99   100   101   102